Sublime Forum

All installed packages missing from path after upgrade to Sublime 3.2.1

#1

Hi, I am a new Sublime text editor user.

So I opened up Sublime this morning and it prompted me to upgrade to a newer version, I thought nothing much of it, and it installed a new version of it (and deleted the old one) from my Mac.

I ran the same “build” command on a file I was working on yesterday, and it no longer works!

ImportError: No module named geopandas
[Finished in 0.6s with exit code 1]
[shell_cmd: python -u “/Users/mky/Documents/geo-map_demo.py”]
[dir: /Users/mky/Documents/]
[path: /anaconda3/bin:/anaconda3/condabin:/opt/local/bin:/opt/local/sbin:/anaconda2/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/mky/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin]

How do I fix this?

0 Likes

#2

The error ImportError: No module named geopandas is raised by the standalone python interpreter installed on your system, telling you one of the required import modules is missing. ST’s build system just runs the python -u “/Users/mky/Documents/geo-map_demo.py” shell command.

It is not (necessarily) related with installed packages which are executed by the internal python interpreter shipped with ST.

Maybe ST did not pick up the correct path environment?

2 Likes

#3

How do I change the default path environment to make use of Anaconda 3 packages (on Mac) on ST?

0 Likes

#4

Sublime Text should read the environment variables from your login shell, if "shell_environment": true is set in the preferences.

But the ImportError looks like you are missing the geopandas python package?

Opening the shell and type pip install geopandas should do the trick?

0 Likes