Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

No module named 'mo_future' #11

Closed
evan-burke opened this issue May 13, 2018 · 3 comments
Closed

No module named 'mo_future' #11

evan-burke opened this issue May 13, 2018 · 3 comments

Comments

@evan-burke
Copy link

evan-burke commented May 13, 2018

Getting this error in Jupyter, with Anaconda python 3.6.3.

Installed in Anaconda via pip-
Successfully installed moz-sql-parser-1.3.18033

from moz_sql_parser import parse

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-18-9c8bbc990e39> in <module>()
----> 1 from moz_sql_parser import parse

~\Anaconda3\lib\site-packages\moz_sql_parser\__init__.py in <module>()
     14 import json
     15 
---> 16 from mo_future import text_type, number_types, binary_type
     17 from pyparsing import ParseException
     18 

ModuleNotFoundError: No module named 'mo_future'

Also tried in centos7 under py 3.6.3, same error.

Successfully installed moz-sql-parser-1.3.18033 pyparsing-2.2.0

> python3 test.py

Traceback (most recent call last):
  File "test.py", line 5, in <module>
    from moz_sql_parser import parse
  File "/home/vagrant/python/sqlparser/ve/lib/python3.6/site-packages/moz_sql_parser/__init__.py", line 16, in <module>
    from mo_future import text_type, number_types, binary_type
ModuleNotFoundError: No module named 'mo_future'
@evan-burke
Copy link
Author

Looks like the mo_future module in requirements.txt wasn't installed automatically by pip. Manually installing mo_future fixed that, so the workaround is easy, though the expectation is that pip installs will take care of all dependencies.

@klahnakoski
Copy link
Contributor

The problem appears to be in setup.py. I will fix it and deploy to pypi, but not until later this week. I hope to add an install test so this does not happen in the future.

@klahnakoski
Copy link
Contributor

I think this is fixed now with cb41d12 . Deployed as https://pypi.org/project/moz-sql-parser/2.15.18155/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants