tbrlpld / PlotGraph

Sublime Text package to plot number columns as graphs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In some environments, the Python library cant be found and has to be set explicitly

tbrlpld opened this issue · comments

I had the following issue at work:

window.run_command("exec", {"shell_cmd" :  '"/clients/bin/python" "/mnt/nfs/home/leupoldt/.config/sublime-text-3/Packages/PlotGraph/plotvectors/plotvectors.py" -list_str="[[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 18.0], [0.0, 4.0, 3.0, 5.0, 5.0, 5.0, 4.0, 0.0]]"'})
# /clients/bin/python: error while loading shared libraries: libpython3.4m.so.1.0: cannot open shared object file: No such file or directory

window.run_command("exec", {"shell_cmd" :  'ldd "/clients/bin/python"'})
# libpython3.4m.so.1.0 => not found

window.run_command("exec", {"shell_cmd" :  'ldd "/clients/Python/bin/python3"'})
# libpython3.4m.so.1.0 => not found

# In Terminal:
# ldd /clients/bin/python
#
# Leads to:
# libpython3.4m.so.1.0 => /clients/Python/lib/libpython3.4m.so.1.0 (0x00002b64980ae000)

window.run_command("exec", {"shell_cmd" :  'LD_LIBRARY_PATH=/clients/Python/lib "/clients/Python/bin/python3"'})
# Returns no error. Actually returns nothing

window.run_command("exec", {"shell_cmd" :  'LD_LIBRARY_PATH=/clients/Python/lib "/clients/bin/python" "/mnt/nfs/home/leupoldt/.config/sublime-text-3/Packages/PlotGraph/plotvectors/plotvectors.py" -list_str="[[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 18.0], [0.0, 4.0, 3.0, 5.0, 5.0, 5.0, 4.0, 0.0]]"'})
# works!