Issue #159 duplicate

2.7-trunk regression: no __file__

Sridhar Ratnakumar avatarSridhar Ratnakumar created an issue

To reproduce run zc.buildout 1.5.0b2 on Python-trunk 2.7 (as of today) using Distribute 0.6.12.

  distribute version 0.6.12;
Generated script 'F:\\as\\pypm\\trunk\\bin\\buildout'.
Setting socket time out to 5 seconds
Develop: 'F:\\as\\pypm\\trunk\\.'
Traceback (most recent call last):
  File "c:\docume~1\apy\locals~1\temp\tmprclrig", line 11, in <module>
  File "F:\as\pypm\trunk\.\", line 59, in <module>
    'notifications=pypm.notifications.command:main [backend]',
  File "C:\Python26\lib\distutils\", line 138, in setup
    ok = dist.parse_command_line()
  File "c:\home\eggs\distribute-0.6.12-py2.6.egg\setuptools\", line 232, in parse_command_line
    result = _Distribution.parse_command_line(self)
  File "C:\Python26\lib\distutils\", line 460, in parse_command_line
    args = self._parse_command_opts(parser, args)
  File "c:\home\eggs\distribute-0.6.12-py2.6.egg\setuptools\", line 556, in _parse_command_opts
    nargs = _Distribution._parse_command_opts(self, parser, args)
  File "C:\Python26\lib\distutils\", line 518, in _parse_command_opts
    cmd_class = self.get_command_class(command)
  File "c:\home\eggs\distribute-0.6.12-py2.6.egg\setuptools\", line 361, in get_command_class
    self.cmdclass[command] = cmdclass = ep.load()
  File "c:\home\eggs\distribute-0.6.12-py2.6.egg\", line 1953, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "c:\home\eggs\distribute-0.6.12-py2.6.egg\setuptools\command\", line 1, in <module>
    from setuptools.command.easy_install import easy_install
  File "c:\home\eggs\distribute-0.6.12-py2.6.egg\setuptools\command\", line 16, in <module>
    from setuptools.sandbox import run_setup
  File "c:\home\eggs\distribute-0.6.12-py2.6.egg\setuptools\", line 163, in <module>
AttributeError: 'module' object has no attribute '__file__'
  Processing develop directory 'F:\\as\\pypm\\trunk\\.'.

Comments (1)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.