Python Forum
Help with environment path variables
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with environment path variables
#1
I searched high and mighty on stackoverflow and still can't find what the issue is or how to fix it, found some threads that mentioned the $PYTHONHOME variable and tried to follow some troubleshooting but to no avail

Basically i use sublime text + virtualenv and dropbox to create a simple dev environment that i can keep with synced settings across two machines.

Works flawlessly on one but not the other, it gives me this error.

I know the "ModuleNotFoundError: No module named 'encodings'" is because it's not able to load the environment since that specific env has all the required modules, must be something with the reference to that env or such but i can't seem to figure it out. Appreciate your help!

I tried reinstalling virtual env loader module in sublime text

I could give a code example but this happens with anything i try to run even just a print(10) statement

Here is the debug error results:

Quote:Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x000000010e37a5c0 (most recent call first):
[Finished in 0.1s with exit code -6]
[cmd: ['/bin/bash', '-c', 'python -u "/Users/kashour/Dropbox (Personal)/Reference/Coding/Environment/python.py"']]
[dir: /Users/kashour/Dropbox (Personal)/Reference/Coding/Environment]
[path: /opt/facebook/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public/:/opt/facebook/bin/biggrep:/opt/facebook/nuclide/latest/nuclide/pkg/fb-on-demand-cli/bin:/opt/facebook/ops/scripts/chef:/opt/homebrew/bin:/usr/local/munki:/opt/facebook/hg/bin:/opt/X11/bin]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  File path by adding various variables Mishal0488 2 1,040 Apr-28-2023, 07:17 PM
Last Post: deanhystad
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,217 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  Virtual environment path? Led_Zeppelin 1 2,310 Jul-22-2021, 01:40 PM
Last Post: snippsat
  sys.path for virtual environment ErnestTBass 2 2,569 Sep-10-2020, 06:36 PM
Last Post: ErnestTBass
  Virtual environment base folder is not add to sys.path on Linux AbdelrahmanMSaid 0 1,969 Mar-16-2020, 11:44 PM
Last Post: AbdelrahmanMSaid
  setting pythonpath variable in environment variables saisankalpj 3 3,477 Dec-05-2018, 10:33 PM
Last Post: Gribouillis
  python environment variables riyengar 1 2,364 Jul-11-2018, 10:21 PM
Last Post: micseydel
  .pth file does not show up in sys.path when configuring path. arjunsingh2908 2 5,777 Jul-03-2018, 11:16 AM
Last Post: arjunsingh2908
  Python environment variables Nuttall 2 2,717 Mar-26-2018, 07:30 PM
Last Post: Nuttall
  Python "Automate the Boring Stuff" wants me to change Windows environment variables? Atomike 8 8,885 Dec-13-2016, 03:53 PM
Last Post: Atomike

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020