-
Notifications
You must be signed in to change notification settings - Fork 138
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
Error when try to make iris locally. #592
Comments
Hi, Iris has been on Python3 only since last year as 2.7 is now EOL-ed. You would need to use Python3 in your docker image for this app. |
Hi, We are using py3 branch of Iris, but still we get errors during build. Do we need to adapt something or it is adapted in this branch(py3). Regards |
I think the master is already on python3? Can you switch to the master and show the exact problem? Because the snippet you showed earlier, i.e.
Is definitely a "Python 3 code being run in Python 2" problem ( |
Hello, We have tested with master, unfortunately we couldn't build a container. We've checkout "py3" and with it we managed to build a container, but when we try to start it, this is the output:
We managed to adapt iris.yaml file to use python3 for virtualenv and pip3:
but still same error when trying to start container. Please advise. Valentin |
Did you mange to fix this issue? |
With the context of the repository root, use this dockerfile:
Gets further, but does not quite work still. I get ascii ordinal errors when trying to build the ui. |
See #573 issue, which seems to be related/duplicate and is more alive. |
Hi All,
We encounter following error when try to test iris locally:
____________________________________________________________________________________ ERROR collecting test/test_irisapi.py _____________________________________________________________________________________ ImportError while importing test module '/Users/i505939/Projects/iris/test/test_irisapi.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: env/lib/python2.7/site-packages/_pytest/python.py:507: in _importtestmodule mod = self.fspath.pyimport(ensuresyspath=importmode) env/lib/python2.7/site-packages/py/_path/local.py:704: in pyimport __import__(modname) env/lib/python2.7/site-packages/gevent-1.4.0-py2.7-macosx-10.15-x86_64.egg/gevent/builtins.py:96: in __import__ result = _import(*args, **kwargs) env/lib/python2.7/site-packages/_pytest/assertion/rewrite.py:304: in load_module exec(co, mod.__dict__) test/test_irisapi.py:7: in <module> from iris.api import ReqBodyMiddleware, AuthMiddleware, Healthcheck env/lib/python2.7/site-packages/gevent-1.4.0-py2.7-macosx-10.15-x86_64.egg/gevent/builtins.py:96: in __import__ result = _import(*args, **kwargs) src/iris/api.py:17: in <module> from urllib.parse import parse_qs env/lib/python2.7/site-packages/gevent-1.4.0-py2.7-macosx-10.15-x86_64.egg/gevent/builtins.py:96: in __import__ result = _import(*args, **kwargs) E ImportError: No module named parse _____________________________________________________________________________________ ERROR collecting test/test_sender.py _____________________________________________________________________________________ ImportError while importing test module '/Users/i505939/Projects/iris/test/test_sender.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: env/lib/python2.7/site-packages/_pytest/python.py:507: in _importtestmodule mod = self.fspath.pyimport(ensuresyspath=importmode) env/lib/python2.7/site-packages/py/_path/local.py:704: in pyimport __import__(modname) env/lib/python2.7/site-packages/gevent-1.4.0-py2.7-macosx-10.15-x86_64.egg/gevent/builtins.py:96: in __import__ result = _import(*args, **kwargs) env/lib/python2.7/site-packages/_pytest/assertion/rewrite.py:304: in load_module exec(co, mod.__dict__) test/test_sender.py:9: in <module> from iris.bin.sender import init_sender env/lib/python2.7/site-packages/gevent-1.4.0-py2.7-macosx-10.15-x86_64.egg/gevent/builtins.py:96: in __import__ result = _import(*args, **kwargs) src/iris/bin/sender.py:26: in <module> from iris.api import load_config env/lib/python2.7/site-packages/gevent-1.4.0-py2.7-macosx-10.15-x86_64.egg/gevent/builtins.py:96: in __import__ result = _import(*args, **kwargs) src/iris/api.py:17: in <module> from urllib.parse import parse_qs env/lib/python2.7/site-packages/gevent-1.4.0-py2.7-macosx-10.15-x86_64.egg/gevent/builtins.py:96: in __import__ result = _import(*args, **kwargs) E ImportError: No module named parse
We've installed python parse module and the error still persists.
The same error we get during docker image creation as well.
Please advise.
Regards
Valentin
The text was updated successfully, but these errors were encountered: