[Bug 1081155] Re: Fail when building a windows executable

Launchpad Bug Tracker 1081155 at bugs.launchpad.net
Wed Nov 28 18:21:54 UTC 2012


** Branch linked: lp:ubuntu/raring-proposed/python2.7

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

Title:
  Fail when building a windows executable

Status in “python2.7” package in Ubuntu:
  Triaged

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/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

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




More information about the foundations-bugs mailing list