Opened 6 years ago

Closed 6 years ago

#57199 closed defect (fixed)

py27-setuptools_scm @3.1.0: ImportError: 'module' object has no attribute 'FILES_COMMAND'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py27-setuptools_scm

Description

:info:destroot Traceback (most recent call last):
:info:destroot   File "setup.py", line 116, in <module>
:info:destroot     setuptools.setup(**arguments)
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/__init__.py", line 140, in setup
:info:destroot     return distutils.core.setup(**attrs)
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
:info:destroot     dist.run_commands()
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
:info:destroot     self.run_command(cmd)
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
:info:destroot     cmd_obj.run()
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
:info:destroot     return orig.install.run(self)
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 575, in run
:info:destroot     self.run_command(cmd_name)
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
:info:destroot     self.distribution.run_command(command)
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
:info:destroot     cmd_obj.run()
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/command/install_egg_info.py", line 34, in run
:info:destroot     self.run_command('egg_info')
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
:info:destroot     self.distribution.run_command(command)
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
:info:destroot     cmd_obj.run()
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 296, in run
:info:destroot     self.find_sources()
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 303, in find_sources
:info:destroot     mm.run()
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 534, in run
:info:destroot     self.add_defaults()
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 573, in add_defaults
:info:destroot     rcfiles = list(walk_revctrl())
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/command/sdist.py", line 20, in walk_revctrl
:info:destroot     for item in ep.load()(dirname):
:info:destroot   File "/opt/bblocal/var/macports/build/_opt_bblocal_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-setuptools_scm/py27-setuptools_scm/work/setuptools_scm-3.1.0/src/setuptools_scm/integration.py", line 28, in find_files
:info:destroot     command = ep.load()
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2332, in load
:info:destroot     return self.resolve()
:info:destroot   File "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2342, in resolve
:info:destroot     raise ImportError(str(exc))
:info:destroot ImportError: 'module' object has no attribute 'FILES_COMMAND'

Attachments (1)

main.log (34.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

This happened when upgrading py27-setuptools_scm from @2.0.0_0 to @3.1.0_0. The problem went away if I deactivated @2.0.0_0 first.

The setup.py file says:

important note:

the setup of setuptools_scm is self-using,
the first execution of `python setup.py egg_info`
will generate partial data
its critical to run `python setup.py egg_info`
once before running sdist or easy_install on a fresh checkouts

pip usage is recommended

Is the port doing that?

comment:2 Changed 6 years ago by stromnov (Andrey Stromnov)

Resolution: fixed
Status: assignedclosed

In 764f566ceffd312137e398df0ca94deba4adde5b/macports-ports (master):

py-setuptools_scm: update build sequence

Closes: #57199

Note: See TracTickets for help on using tickets.