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

HOMEDRIVE environment variable does not exist in Windows 10 #6

Closed
rootbsd opened this issue May 27, 2016 · 5 comments
Closed

HOMEDRIVE environment variable does not exist in Windows 10 #6

rootbsd opened this issue May 27, 2016 · 5 comments

Comments

@rootbsd
Copy link

rootbsd commented May 27, 2016

The HOMEDRIVE Variable does not exist in Windows 10.

C:\Users\pouf\Downloads>FastIR_x64.exe --profile fastir.conf
Traceback (most recent call last):
  File "<string>", line 20, in <module>
  File "C:\pylibs\pyinstaller-exedir\PyInstaller\loader\pyi_importers.py", line 270, in load_module
  File "C:\CatchEvidence\build\pyinstaller\out00-PYZ.pyz\factory.factory", line 3, in <module>
  File "C:\pylibs\pyinstaller-exedir\PyInstaller\loader\pyi_importers.py", line 270, in load_module
  File "C:\CatchEvidence\build\pyinstaller\out00-PYZ.pyz\settings", line 61, in <module>
  File "C:\CatchEvidence\build\pyinstaller\out00-PYZ.pyz\os", line 425, in __getitem__
KeyError: u'HOMEDRIVE'
@thansau239
Copy link

have the same issue

@na1984
Copy link

na1984 commented Nov 6, 2016

The same here, a couple of win10 machines without HOMEDRIVE :(.
Any hints for a rookie python programmer;)?

@DarkSurferZA
Copy link

Fix which can be added to the settings.py file on line 60. This happens when executing as a service or network account without a full environment variable stack. This fix will assume the default c:\ as the HOMEDRIVE. If OP could commit to master, you wont have to patch manually.

if 'HOMEDRIVE' not in os.environ:
os.environ['HOMEDRIVE'} = 'c:\'

@dubierthomas
Copy link

Same issue in a cmd, run as administrator on Windows XP (32bits)
C:\Documents and Settings\TestFastIR\Mes documents\Collecte_PC3>FastIR_x86.exe
Traceback (most recent call last):
File "", line 20, in
File "C:\pyinstaller-exedir\PyInstaller\loader\pyi_importers.py", line 270, in
load_module
File "C:\CatchEvidence\build\pyinstaller\out00-PYZ.pyz\factory.factory", line
3, in
File "C:\pyinstaller-exedir\PyInstaller\loader\pyi_importers.py", line 270, in
load_module
File "C:\CatchEvidence\build\pyinstaller\out00-PYZ.pyz\settings", line 61, in

File "C:\CatchEvidence\build\pyinstaller\out00-PYZ.pyz\os", line 425, in get
item

KeyError: u'HOMEDRIVE'

@sebdraven
Copy link
Contributor

Yep it's normal on Windows XP this env variable doesn't exist. So it's your profile file is not correctly configured

@SyBen SyBen closed this as completed in fc029e7 May 16, 2017
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

6 participants