qpython-android / qpython.org

QPython contributor & sugguestion & question homepage
http://qpython.org
58 stars 11 forks source link

pymongo qpython #169

Closed JIMhackKING closed 7 years ago

JIMhackKING commented 7 years ago

The phone can't open the mongodb server,so the qpython can't use the pymongo?

riverfor commented 7 years ago

Can you install pymongo through pip_client.py ?

Which version qpython are you using ?

JIMhackKING commented 7 years ago

1.2.9 of qpython2, 1.0.3 of qpython3, but the qpython3 installed a wrong package, when I import pymongo, it raise a SyntaxError.The qpython2 can't connect to mongo server.

来自 银河系信息系统

-------- 原始邮件 -------- 发件人:River notifications@github.com 时间:周二 7月25日 09:52 收件人:"qpython-android/qpython.org" qpython.org@noreply.github.com 抄送:Wu Jianmin a601767890@sina.com,Author author@noreply.github.com 主题:Re: [qpython-android/qpython.org] pymongo qpython (#169)

Can you install pymongo through pip_client.py ?

Which version qpython are you using ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/qpython-android/qpython.org","title":"qpython-android/qpython.org","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/qpython-android/qpython.org"}},"updates":{"snippets":[{"icon":"PERSON","message":"@riverfor in #169: Can you install pymongo through pip_client.py ?\r\n\r\nWhich version qpython are you using ?"}],"action":{"name":"View Issue","url":"https://github.com/qpython-android/qpython.org/issues/169#issuecomment-317605212"}}}

riverfor commented 7 years ago

Maybe the old python2.7.2 isn't compatible with the pymongo.

Can you install 1.4.1 (which python is 2.7.12) from https://github.com/qpython-android/qpython/releases ? (Maybe you need to uninstall and reinstall it)

2.0 alpha is OK also.

After then , you can install pymongo through pip_client.

JIMhackKING commented 7 years ago

WOW, the 2.0 alpha is so beautiful,but I still don't know how to open the mongo server.Can you tell me the steps to this?Thanks for your help.

来自 银河系信息系统

riverfor commented 7 years ago

You could see the Examples in https://pypi.python.org/pypi/pymongo/3.4.0 .