Git Product home page Git Product logo

mongokit-ng's Issues

Project status

This project ports mongokit to Python 3 and the latest pymongo version.

Current status

Summary

This project can works in common Python 3 projects now, but there are some issues to be fixed.

Environment

OS: MacOS 10.14.6 or Linux
MongoDB version: 4.0
Python 3.5~3.8

Unit Test result:

https://travis-ci.org/Windfarer/mongokit-ng
Ran 277 tests all passed.

TODO:

  • Travis CI setup
  • Upload to pypi
  • Documentation
  • Fix unit tests
  • Fix deprecations

Known issues to be fixed:

  • Collection.save() is deprecated. => insert_one() or replace_one()
  • Collection.insert() is deprecated. => insert_one() or insert_many()
  • Collection.update() is deprecated. => replace_one, update_one or update_many
  • cursor.count() is deprecated. => Collection.count_documents()
  • Collection.find_and_modify is deprecated, use find_one_and_delete, find_one_and_replace, or find_one_and_update instead

ImportError: cannot import name 'ALL' from 'pymongo' (Python 3.10, pymongo 4.0)

  • mongokit-ng version: 0.1.1
  • Python version: 3.10
  • Operating System: Windows 11

Description

Updating a project that uses discord.py and mongokit-ng to use Python 3.10. Created a new venv for the project and installed the latest dependencies, which are mongokit-ng (and therefore pymongo) and discord.py. This increased pymongo from v3 to v4, whereas the mongokit-ng version was previously 0.1.1. The application connects to MongoDB Atlas. The error in the issue title (and below) occurs when running the application.

What I Did

D:\Documents\GitHub\Mines-RPG\venv\Scripts\python.exe D:/Documents/GitHub/Mines-RPG/bot.py
Traceback (most recent call last):
  File "D:\Documents\GitHub\Mines-RPG\bot.py", line 4, in <module>
    from mongokit_ng import Connection
  File "D:\Documents\GitHub\Mines-RPG\venv\lib\site-packages\mongokit_ng\__init__.py", line 43, in <module>
    from pymongo import (
ImportError: cannot import name 'ALL' from 'pymongo' (D:\Documents\GitHub\Mines-RPG\venv\lib\site-packages\pymongo\__init__.py)

Process finished with exit code 1

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.