Fail when building a windows executable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python2.7 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Before, the command :
python setup.py bdist_wininst
created a windows installer file for a pure python project from any platform (linux too).
Now, the command retunrs errors :
Warning: Can't read registry to find the necessary compiler setting
Make sure that Python modules _winreg, win32api or win32con are installed.
Traceback (most recent call last):
File "setup.py", line 28, in <module>
scripts = ['openfovea-gtk']
File "/usr/lib/
dist.
File "/usr/lib/
self.
File "/usr/lib/
cmd_obj.run()
File "/usr/lib/
self.
File "/usr/lib/
file.
File "/usr/lib/
raise DistutilsFileError, str(msg) + ', %s not included in the Debian packages.' % filename
NameError: global name 'DistutilsFileE
This error can be corrected by adding the DistutilsFileError in the import section (line 17, of the bdist_wininst.py file). When making so, the error is as follow :
Warning: Can't read registry to find the necessary compiler setting
Make sure that Python modules _winreg, win32api or win32con are installed.
error: [Errno 2] No such file or directory: '/usr/lib/
And there is no way to find this "wininst-6.0.exe" in any packages.
Thank for your help,
Charles
I'll fix the traceback, however we cannot include the .exe files, because these are not built from source. Hint: copy these from the source package