Comments (6)
Thanks for raising this, I made a pull request to fix it.
pymongo>=3.0
txmongo>=14.0
Can you help validate this?
Technically, lower twisted versions should work... but only for python 2.7, not 3.
from txmongo.
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.
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.
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.
Is this issue still relevant? Seems like minimum twisted version is now specified in setup.py as 14.0.0.
from txmongo.
I think so. We have a simplified setup.py.as a result.
from txmongo.
Related Issues (20)
- In disconnect: RuntimeError: dictionary changed size during iteration HOT 2
- When txmongo fails to connect mongodb, there is a memory leak HOT 8
- latest txmongo does not work with pymongo 3.7 HOT 3
- do not connect to mongodb+srv:// scheme HOT 1
- Does txmongo support compressors option? HOT 1
- builtins.AttributeError: '_CaseInsensitiveDictionary' object has no attribute 'copy' HOT 3
- Crash create_index: pymongo.errors.OperationFailure: cannot write to 'remains.system.indexes' HOT 2
- AssertionError: Tried to stop a LoopingCall that was not running. HOT 3
- txmongo not working with azure cosmos db HOT 19
- There should be a limit on the number of retries HOT 1
- insert_many does not work properly HOT 6
- maxIdleTimeMS support HOT 4
- does txmongo support transaction? HOT 2
- Proposing a PR to fix a few small typos HOT 1
- insert_many: unexpected keyword argument 'bypass_document_validation' in calling pymongo `_Bulk` HOT 2
- Import error with PyMongo==4.1.1. HOT 3
- Incompatible with mongodb >= 5.1 due to usage of deprecated `OP_QUERY` commands HOT 2
- txmongo with DocumentDB
- Incompatible with any version of DocumentDB HOT 3
- pymongo.errors.OperationFailure: TxMongo: not authorized for query on foo.test HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from txmongo.