Giter VIP home page Giter VIP logo

monguo's People

Contributors

billyellow avatar movermeyer avatar shiyanhui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

monguo's Issues

install error in pip3

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/

Install from requirements.txt fails

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é

Use Monguo in Python3.4

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é

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.