Code Monkey home page Code Monkey logo

Comments (6)

psi29a avatar psi29a commented on July 23, 2024

Thanks for raising this, I made a pull request to fix it.

pymongo>=3.0
txmongo>=14.0

#136

Can you help validate this?

Technically, lower twisted versions should work... but only for python 2.7, not 3.

from txmongo.

jvanasco avatar jvanasco commented on July 23, 2024

If i can spare some cycles, sure. I've got all our machines running simulations in prep for a large data migration (moving our read-only archive of searchindex snapshots from postgres to mongo via twisted for the wiredtiger compression!)

Everything works on "current", and I think its safe to peg minimums to that. The big issue I encountered was that I'm used to packages updating components, and a few machines had older twisteds+mongos.

This should technically work on all mongodb versions, with the exception of some "newer" functions. for example "aggregate" started around 2.2 (so epic failures if you're running 2.0!)

I can tell you that I loosely recall: (python 2.7.5)
• the example worked on pymongo 2.6 and current twisted. aggregate wasn't introduced until 2.2, and that caused a lot of issues. we could update to 2.6 on this architecture.
• Most tests passed under twisted 13.2, a few didn't. I think more tests passed on 15 than 13.

from txmongo.

psi29a avatar psi29a commented on July 23, 2024

In order to hold to our self-imposed mandate of 1:1 with PyMongo, we've had to make some sacrifices with older versions of PyMongo and Python. While most things will still work with 2.6, we only make guarantees with 2.7 and 3.0 so with that: caveat emptor.

Twisted is a bit more tricky, as you said. We make use of Twisted's compat library to bridge 2.x and 3.0, but that is mostly in our test cases. We originally had Tox handling twisted back to 13.0 but with the push for 3.0 support, we had to back off to >=14.0

I wish you success in your postgres2mongodb migration. :) WT is great stuff to be sure, I'm just worried about the rest surrounding it. ;)

from txmongo.

jvanasco avatar jvanasco commented on July 23, 2024

This definitely needs >=14. I tried on 13 when I had a moment, and it failed.

We're using Mongo for a data archive, so not worried too much. it just needs to write and hopefully not corrupt if we ever have to read.

from txmongo.

IlyaSkriblovsky avatar IlyaSkriblovsky commented on July 23, 2024

Is this issue still relevant? Seems like minimum twisted version is now specified in setup.py as 14.0.0.

from txmongo.

psi29a avatar psi29a commented on July 23, 2024

I think so. We have a simplified setup.py.as a result.

from txmongo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.