Public bug reported:

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/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/bdist_wininst.py", line 189, in run
    self.create_exe(arcname, fullname, self.bitmap)
  File "/usr/lib/python2.7/distutils/command/bdist_wininst.py", line 271, in 
create_exe
    file.write(self.get_exe_bytes())
  File "/usr/lib/python2.7/distutils/command/bdist_wininst.py", line 366, in 
get_exe_bytes
    raise DistutilsFileError, str(msg) + ', %s not included in the Debian 
packages.' % filename
NameError: global name 'DistutilsFileError' is not defined

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/python2.7/distutils/command/wininst-6.0.exe', 
/usr/lib/python2.7/distutils/command/wininst-6.0.exe not included in the Debian 
packages.

And there is no way to find this "wininst-6.0.exe" in any packages.

Thank for your help,

Charles

** Affects: python2.7 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1081155

Title:
  Fail when building a windows executable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1081155/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to