shiyanhui / monguo Goto Github PK
View Code? Open in Web Editor NEWAsynchronous MongoDB ORM for Tornado
Home Page: monguo.readthedocs.org
Asynchronous MongoDB ORM for Tornado
Home Page: monguo.readthedocs.org
I met some problems while i install monguo using pip3.
Here's the error log:
Collecting monguo
Using cached monguo-0.2.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/50/lns50q7941lbh71m9hx2vn1w0000gn/T/pip-build-tq7k5h91/monguo/setup.py", line 15, in
import monguo
File "/private/var/folders/50/lns50q7941lbh71m9hx2vn1w0000gn/T/pip-build-tq7k5h91/monguo/monguo/init.py", line 10, in
from connection import *
ModuleNotFoundError: No module named 'connection'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/50/lns50q7941lbh71m9hx2vn1w0000gn/T/pip-build-tq7k5h91/monguo/
Hi.
I've been using Monguo as ORM for an app.
Today I've tried to deploy at heroku but pip install -r requirements.txt
fails unless I install motor before.
The fail is logged below:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-22tPQB-build/setup.py", line 15, in <module>
import monguo
File "monguo/__init__.py", line 10, in <module>
from connection import *
File "monguo/connection.py", line 8, in <module>
import motor
ImportError: No module named motor
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-22tPQB-build/setup.py", line 15, in <module>
import monguo
File "monguo/__init__.py", line 10, in <module>
from connection import *
File "monguo/connection.py", line 8, in <module>
import motor
ImportError: No module named motor
Any hint to solve this?
Thanks in advance.
André
Hi @shiyanhui
It's me again.
Now I'm trying to use Monguo in Python3.4 and the result for a:
result = yield Organization.insert(obj)
is
File "/home/vagrant/app/venv/lib/python3.4/site-packages/tornado/web.py", line 1369, in _stack_context_handle_exception
raise_exc_info((type, value, traceback))
File "<string>", line 3, in raise_exc_info
File "/home/vagrant/app/venv/lib/python3.4/site-packages/tornado/stack_context.py", line 314, in wrapped
ret = fn(*args, **kwargs)
File "/home/vagrant/app/venv/lib/python3.4/site-packages/tornado/web.py", line 1581, in future_complete
f.result()
File "/home/vagrant/app/venv/lib/python3.4/site-packages/tornado/concurrent.py", line 215, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File "/home/vagrant/app/venv/lib/python3.4/site-packages/tornado/gen.py", line 230, in wrapper
yielded = next(result)
File "../db/import2mongodb.py", line 61, in post
result = yield Organization.insert(obj)
TypeError: 'MonguoOperation' object is not callable
Do you have any idea how to solve this problem?
I'm not so experienced in Python 3.
Thanks in advance.
Regards.
André
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.