0

I'm trying to run some Python scripts in Atom using the platformio-ide-terminal, but it's not running the scripts as when I just open a terminal. I have Anaconda installed and that's how I'm running my scripts in a normal terminal window, but I get all kinds of errors in the Atom package. I changed the Shell Override option in platformio-ide-terminal to be /bin/bash instead of /bin/sh like it was on default, but still no luck.

Any idea on where I can get this working in Atom?

Specifically the error I get in platformio is

Traceback (most recent call last):
  File "/home/bojohnson/Documents/MagPhyxP/magphyxp.py", line 14, in swig_import_helper
    return importlib.import_module(mname)
  File "/home/bojohnson/.anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 670, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 583, in module_from_spec

  File "<frozen importlib._bootstrap_external>", line 1043, in create_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: libgsl.so.23: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "bifurcation.py", line 1, in <module>
    import magphyxp
  File "/home/bojohnson/Documents/MagPhyxP/magphyxp.py", line 17, in <module>
    _magphyxp = swig_import_helper()
  File "/home/bojohnson/Documents/MagPhyxP/magphyxp.py", line 16, in swig_import_helper
    return importlib.import_module('_magphyxp')
  File "/home/bojohnson/.anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libgsl.so.23: cannot open shared object file: No such file or directory

whereas I don't get this error in a normal terminal.

Looking into it further when I make the project from the platformio-ide I get a fatal error, where the gsl libraries aren't found. This doesn't happen however when I do this with a normal terminal. Can platformio not see all the installed libraries on my computer?

I'm running Fedora 29 as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.