edc/bass

No module named 'json'

Closed this issue · 3 comments

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 commented

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?

@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 commented

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.