Skip to content
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

ImportError: No module named json #3

Open
mimoccc opened this issue Nov 19, 2019 · 8 comments
Open

ImportError: No module named json #3

mimoccc opened this issue Nov 19, 2019 · 8 comments

Comments

@mimoccc
Copy link

mimoccc commented Nov 19, 2019

ImportError: No module named json after start

@mimoccc
Copy link
Author

mimoccc commented Nov 19, 2019

mimo@mimo-laptop-2:/Desktop/kalliope_starter_cs-master$ kalliope start
Traceback (most recent call last):
File "/usr/local/bin/kalliope", line 11, in
load_entry_point('kalliope==0.5.5', 'console_scripts', 'kalliope')()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2852, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2443, in load
return self.resolve()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2449, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.5-py2.7.egg/kalliope/init.py", line 12, in
from flask import Flask
File "/usr/local/lib/python2.7/dist-packages/Flask-1.1.1-py2.7.egg/flask/init.py", line 21, in
from .app import Flask
File "/usr/local/lib/python2.7/dist-packages/Flask-1.1.1-py2.7.egg/flask/app.py", line 69, in
from .wrappers import Request
File "/usr/local/lib/python2.7/dist-packages/Flask-1.1.1-py2.7.egg/flask/wrappers.py", line 14, in
from werkzeug.wrappers.json import JSONMixin as _JSONMixin
ImportError: No module named json
mimo@mimo-laptop-2:
/Desktop/kalliope_starter_cs-master$

@Sispheor
Copy link
Member

If you have installed kalliope you should have json installed.
Try sudo pip install json.

@mimoccc
Copy link
Author

mimoccc commented Nov 19, 2019

pip list --outdated --format=freeze | grep -v '^-e' | cut -d = -f 1 | xargs -n1 pip install -U

@Sispheor
Copy link
Member

Json is not declared in the setup but I think it's installed by flask.

@mimoccc
Copy link
Author

mimoccc commented Nov 19, 2019 via email

@mimoccc
Copy link
Author

mimoccc commented Nov 19, 2019 via email

@Sispheor
Copy link
Member

The installer calls the setup.py which contains all required lib and dependencies. So it should be ok. How did you install?

@mimoccc
Copy link
Author

mimoccc commented Nov 20, 2019 via email

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

No branches or pull requests

2 participants