edc / bass

Make Bash utilities usable in Fish shell
MIT License
2.2k stars 70 forks source link

No module named 'json' #106

Closed serjflint closed 2 years ago

serjflint commented 2 years ago

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 2 years ago

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 commented 2 years ago

@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 2 years ago

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.