Hello All, I am using Pyinstaller to generate an executable for a Python program that uses the scikit-learn library. I am able to create this executable and run it without error on my Windows 7 machine, but when I run the same executable in a VirtualBox Windows 7 virtual machine (in order to determine if the executable will run on a "fresh" Windows installation) I receive the following error:
C:\Users\CleanInstall\Desktop\packaged-deployed-driver>deployed-driver.exe LOADER: executable is C:\Users\CLEANI~1\Desktop\PACKAG~1\deployed-driver.exe LOADER: homepath is C:\Users\CLEANI~1\Desktop\PACKAG~1 LOADER: _MEIPASS2 is NULL LOADER: archivename is C:\Users\CLEANI~1\Desktop\PACKAG~1\deployed-driver.exe LOADER: Extracting binaries LOADER: Executing self as child LOADER: Setting up to run child LOADER: Creating child process LOADER: Waiting for child process to finish... LOADER: executable is C:\Users\CLEANI~1\Desktop\PACKAG~1\deployed-driver.exe LOADER: homepath is C:\Users\CLEANI~1\Desktop\PACKAG~1 LOADER: _MEIPASS2 is C:\Users\CLEANI~1\AppData\Local\Temp\_MEI24282 LOADER: archivename is C:\Users\CLEANI~1\Desktop\PACKAG~1\deployed-driver.exe LOADER: Already in the child - running user's code. LOADER: manifestpath: C:\Users\CLEANI~1\AppData\Local\Temp\_MEI24282\deployed-dr iver.exe.manifest LOADER: Activation context created LOADER: Activation context activated LOADER: Python library: C:\Users\CLEANI~1\AppData\Local\Temp\_MEI24282\python27. dll LOADER: Manipulating evironment LOADER: PYTHONPATH=C:\Users\CLEANI~1\AppData\Local\Temp\_MEI24282 LOADER: PYTHONHOME=C:\Users\CLEANI~1\AppData\Local\Temp\_MEI24282 LOADER: Manipulating Python's sys.path LOADER: importing modules from CArchive LOADER: extracted struct LOADER: extracted pyi_os_path LOADER: extracted pyi_archive LOADER: extracted pyi_importers LOADER: Installing import hooks LOADER: out00-PYZ.pyz LOADER: Running scripts Traceback (most recent call last): File "<string>", line 24, in <module> File "C:\pyinstaller-develop\PyInstaller\loader\pyi_importers.py", line 268, i n load_module File "C:\pyinstaller-develop\deployed-driver\build\pyi.win32\deployed-driver\o ut00-PYZ.pyz\Detectors.MultiDetector", line 6, in <module> File "C:\pyinstaller-develop\PyInstaller\loader\pyi_importers.py", line 268, i n load_module File "C:\pyinstaller-develop\deployed-driver\build\pyi.win32\deployed-driver\o ut00-PYZ.pyz\sklearn", line 31, in <module> File "C:\pyinstaller-develop\PyInstaller\loader\pyi_importers.py", line 268, i n load_module File "C:\pyinstaller-develop\deployed-driver\build\pyi.win32\deployed-driver\o ut00-PYZ.pyz\sklearn.__check_build", line 47, in <module> File "C:\pyinstaller-develop\deployed-driver\build\pyi.win32\deployed-driver\o ut00-PYZ.pyz\sklearn.__check_build", line 26, in raise_build_error WindowsError: [Error 3] The system cannot find the path specified: 'C:\\Users\\C LEANI~1\\AppData\\Local\\Temp\\_MEI24282\\sklearn\\__check_build/*.*' LOADER: RC: -1 from deployed-driver LOADER: OK. LOADER: Deactivating activation context LOADER: Releasing activation context LOADER: Done LOADER: Cleaning up Python interpreter. LOADER: Back to parent LOADER: Doing cleanup LOADER: Freeing archive status for C:\Users\CLEANI~1\Desktop\PACKAG~1\deployed-d river.exe My development machine is running Windows 7 64-bit, Python 2.7.3 32-bit, the latest development version of Pyinstaller (pulled today), and the latest development version of scikit-learn (also pulled today). I was able to reproduce this error by creating an executable from a Python script with the following line: from sklearn.utils import weight_vector I am executing the following command in order to create the executable: python pyinstaller.py --onefile --debug path\to\code\deployed-driver.py Can anyone suggest a reason why my executable is not running properly in the virtual machine? Let me know if you need any additional information to help identify the problem. Thanks, Jonathan -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyinstaller?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
