Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys.path is missing library directories in Python 3 #68

Closed
nickjacobson opened this issue Jun 3, 2016 · 1 comment
Closed

sys.path is missing library directories in Python 3 #68

nickjacobson opened this issue Jun 3, 2016 · 1 comment

Comments

@nickjacobson
Copy link

nickjacobson commented Jun 3, 2016

What steps will reproduce the problem?

  1. Install ActiveState Python 3.4.3.2
  2. In Start menu select DreamPie > Add Intepreter and choose C:\Python34\python.exe
  3. Open a DreamPie window
  4. import sys
  5. print(sys.path)

What is the expected result?
sys.path should by default contain 'C:\Python34\lib\site-packages', 'C:\Python34\lib\site-packages\win32', 'C:\Python34\lib\site-packages\win32\lib', and 'C:\Python34\lib\site-packages\PythonWin'. (DreamPie for Python 2.7 does contain the corresponding entries.)

What happens instead?
It only returns: ['', 'C:\Program Files (x86)\DreamPie\data', 'C:\Windows\system32\python34.zip', 'C:\Python34\DLLs', 'C:\Python34\lib', 'C:\Python34'], so the library entries are missing.

Therefore, 3rd party libraries can't be imported until the directories are added to sys.path, every time.

Please provide any additional information below. To submit a screenshot, you can go to imgur.com, upload the image, and paste the URL.

Note that in the Python Interactive Shell for Python 3.4, sys.path by default contains:
['', 'C:\Windows\system32\python34.zip', 'C:\Python34\DLLs', 'C:\Python34\lib', 'C:\Python34', 'C:\Python34\lib\site-packages', 'C:\Python34\lib\site-packages\win32', 'C:\Python34\lib\site-packages\win32\lib', 'C:\Python34\lib\site-packages\Pythonwin']. This is what Dreampie's sys.path should be too.


Diagnostic information:

DreamPie version: 1.2.1
git commit: None from 2016/06/03
platform: Windows-2008ServerR2-6.1.7601-SP1
architecture: ('32bit', 'WindowsPE')
python_version: 2.7.3
python_implementation: CPython
executable: C:\Program Files (x86)\DreamPie\dreampie.exe
subprocess executable: C:\Python34\python.exe
subprocess description: Python 3.4.3 (default, Aug 21 2015, 11:25:47) [MSC v.1600 64 bit (AMD64)] on win32

@nickjacobson nickjacobson changed the title sys.path is missing library directory in Python 3 sys.path is missing libraries directory in Python 3 Jun 3, 2016
@nickjacobson nickjacobson changed the title sys.path is missing libraries directory in Python 3 sys.path is missing library directories in Python 3 Jun 3, 2016
@nickjacobson
Copy link
Author

This is a duplicate of #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant