jessebot / dot_files

Default dot files for onboardme including bash, neovim, powerline, neomutt, w3m, wezterm, and more :)
https://jessebot.github.io/onboardme
GNU Affero General Public License v3.0
5 stars 3 forks source link

pip_packages location mismatch between Darwin/Linux #26

Closed cloudymax closed 1 year ago

cloudymax commented 1 year ago

When installing on a fresh Xbuntu 22.04 or Debian12 host, python3.11 and pip3.11 are installed in ~/.local/ instead of ~/.local/python which causes the system to lose track all pip-installed packages.

To recreate:

Example of error:

testadmin@test:~$ echo $pip_packages
/home/testadmin/.local/share/python/lib/python3.11/site-packages

testadmin@test:~$ ls $pip_packages
lsd: /home/testadmin/.local/share/python/lib/python3.11/site-packages: No such file or directory (os error 2).

testadmin@test:~$ onboardme --help
Traceback (most recent call last):
  File "/home/testadmin/.local/bin/onboardme", line 5, in <module>
    from onboardme import main
ModuleNotFoundError: No module named 'onboardme'
testadmin@test:~$
jessebot commented 1 year ago

I think we fixed this in here: https://github.com/jessebot/dot_files/blob/main/.config/bash/path.sh#L10

And in onbaordme here: https://github.com/jessebot/onboardme/blob/main/setup.sh#L11

If not, feel free to reopen!