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

No module named 'json' #106

Closed
serjflint opened this issue Feb 22, 2022 · 3 comments
Closed

No module named 'json' #106

serjflint opened this issue Feb 22, 2022 · 3 comments

Comments

@serjflint
Copy link

I installed bass on Ubuntu 18.04 and somehow got this error when calling bass

Traceback (most recent call last):
  File "/home/serjflint/.config/fish/functions/__bass.py", line 12, in <module>
    import json
ModuleNotFoundError: No module named 'json'

fish: 3.3.1
python: 2.7.17
python3: 3.7.5

Please tell me which info I should provide for diagnostics.

@edc
Copy link
Owner

edc commented Feb 27, 2022

Could you try edit Line 12 of the file /home/serjflint/.config/fish/functions/__bass.py and replace import json with import simplejson and see if it helps?

@serjflint
Copy link
Author

@edc It didn't help

Traceback (most recent call last):
  File "/home/serjflint/.config/fish/functions/__bass.py", line 12, in <module>
    import simplejson as json
ModuleNotFoundError: No module named 'simplejson'

@edc
Copy link
Owner

edc commented Mar 13, 2022

There is some issue with your Python setup, so I am going to close this because it is not really related to Bass. If you want to debug, you can add import pdb;pdb.set_trace() before Line 12 of the file /home/serjflint/.config/fish/functions/__bass.py and then try to use pdb to see why your Python has no json or simplejson.

@edc edc closed this as completed Mar 13, 2022
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