Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install error #1

Open
chenjr0719 opened this issue Apr 26, 2017 · 2 comments
Open

pip install error #1

chenjr0719 opened this issue Apr 26, 2017 · 2 comments

Comments

@chenjr0719
Copy link

Hi, I want to use pip to install this module, but there is a error happened.

In your setup.py, there is a typo about required module.

The "1motor>=1.1" should be "motor>=1.1"

Please fix this
Thanks

@hsz1273327
Copy link
Member

hsz1273327 commented Apr 26, 2017 via email

@chenjr0719
Copy link
Author

Hi, I use pip install from this git alternatively. And the installation is success, but when I use it in my code, it still have error.

The error:

Traceback (most recent call last):
  File "main.py", line 4, in <module>
  from sanic_mongo import Mongo
  File "/home/jacob/Python/Part_Time/website/VENV/lib/python3.5/site-packages/sanic_mongo/__init__.py", line 9, in <module>
  from sanic_mongo.mongo import Core as MongoCore
  File "/home/jacob/Python/Part_Time/website/VENV/lib/python3.5/site-packages/sanic_mongo/mongo.py", line 17, in <module>
  from sanic_mongo.standalone import MongoConnection
ImportError: No module named 'sanic_mongo.standalone'

This is because of you were missed to add sanic_mongo.standalone in setup.py.

It should looks like:

packages=['sanic_mongo', 'sanic_mongo.standalone'],

After this modify, I can import with no error.
But still can't use. 😢 😢 😢
Maybe I will open another issue after some test.

Thanks

@chenjr0719 chenjr0719 reopened this Apr 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants