[MacPorts] #48603: py27-astropy build fails with AttributeError
#48603: py27-astropy build fails with AttributeError --------------------+-------------------------- Reporter: ram@… | Owner: robitaille@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: py-astropy --------------------+-------------------------- I'm trying to install `py27-astropy-1.0.4_0` on a Mavericks machine and it's failing with the following: {{{ :info:build running build_py :info:build Traceback (most recent call last): :info:build File "setup.py", line 122, in <module> :info:build **package_info :info:build File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup :info:build dist.run_commands() :info:build File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands :info:build self.run_command(cmd) :info:build File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command :info:build cmd_obj.run() :info:build File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build.py", line 127, in run :info:build self.run_command(cmd_name) :info:build File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command :info:build self.distribution.run_command(command) :info:build File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 971, in run_command :info:build cmd_obj.ensure_finalized() :info:build File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized :info:build self.finalize_options() :info:build File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- astropy/py27-astropy/work/astropy-1.0.4/astropy_helpers/astropy_helpers/commands/build_py.py", line 22, in finalize_options :info:build SetuptoolsBuildPy.finalize_options(self) :info:build File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/setuptools/command/build_py.py", line 30, in finalize_options :info:build self.exclude_package_data = (self.distribution.exclude_package_data or :info:build AttributeError: Distribution instance has no attribute 'exclude_package_data' }}} Full build log is attached. -- Ticket URL: <https://trac.macports.org/ticket/48603> MacPorts <https://www.macports.org/> Ports system for OS X
#48603: py27-astropy build fails with AttributeError -------------------------+-------------------------- Reporter: ram@… | Owner: robitaille@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-astropy | -------------------------+-------------------------- Comment (by robitaille@…): Which version of setuptools do you have installed currently? -- Ticket URL: <https://trac.macports.org/ticket/48603#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#48603: py27-astropy build fails with AttributeError -------------------------+-------------------------- Reporter: ram@… | Owner: robitaille@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-astropy | -------------------------+-------------------------- Comment (by ram@…): Replying to [comment:2 robitaille@…]:
Which version of setuptools do you have installed currently?
{{{ $ port installed py27-setuptools The following ports are currently installed: py27-setuptools @18.0.1_0 (active) $ }}} -- Ticket URL: <https://trac.macports.org/ticket/48603#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#48603: py27-astropy build fails with AttributeError -------------------------+-------------------------- Reporter: ram@… | Owner: robitaille@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-astropy | -------------------------+-------------------------- Comment (by robitaille@…): This looks like an issue with the installation of setuptools, given the following warnings: {{{ 00 :info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires' 101 :info:build warnings.warn(msg) 102 :info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'setup_requires' 103 :info:build warnings.warn(msg) 104 :info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'use_2to3' 105 :info:build warnings.warn(msg) 106 :info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe' 107 :info:build warnings.warn(msg) 108 :info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points' 109 :info:build warnings.warn(msg) }}} Could you try and uninstall setuptools, clean, and install again, then try astropy again? -- Ticket URL: <https://trac.macports.org/ticket/48603#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#48603: py27-astropy build fails with AttributeError -------------------------+-------------------------- Reporter: ram@… | Owner: robitaille@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-astropy | -------------------------+-------------------------- Comment (by ram@…): After uninstalling and reinstalling `py27-setuptools` I got the same error, I noticed that my system was downloading the package of `py27-setuptools` so I removed it again and forced a build from source. This also fails, the new main.log is [[attachment:main.20150821.log|attached]]. -- Ticket URL: <https://trac.macports.org/ticket/48603#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#48603: py27-astropy build fails with AttributeError -------------------------+-------------------------- Reporter: ram@… | Owner: robitaille@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-astropy | -------------------------+-------------------------- Comment (by robitaille@…): I'm puzzled by this failure. The exclude_package_data option exists in setuptools since 0.6a9 which is a very old version. I just tried installing MacPorts from scratch and doing ``sudo port install py27-astropy`` and I don't see any issues, though this is on 10.8 (but not sure why this should matter?) Do you have PYTHONPATH set by any chance? -- Ticket URL: <https://trac.macports.org/ticket/48603#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#48603: py27-astropy build fails with AttributeError -------------------------+-------------------------- Reporter: ram@… | Owner: robitaille@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-astropy | -------------------------+-------------------------- Comment (by ram@…): Replying to [comment:6 robitaille@…]:
Do you have PYTHONPATH set by any chance?
No. {{{ $ echo $PYTHONPATH $ }}} -- Ticket URL: <https://trac.macports.org/ticket/48603#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#48603: py27-astropy build fails with AttributeError -------------------------+-------------------------- Reporter: ram@… | Owner: robitaille@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-astropy | -------------------------+-------------------------- Comment (by ram@…): Updated my ports tree, `py27-setuptools` was updated to `18.2_0` and `py27-astropy` to `1.0.4_0` and this still fails. Build log [[attachment:main-20140822.log|attached]]. -- Ticket URL: <https://trac.macports.org/ticket/48603#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#48603: py27-astropy build fails with AttributeError -------------------------+-------------------------- Reporter: ram@… | Owner: robitaille@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-astropy | -------------------------+-------------------------- Comment (by ram@…): Just tested on another machine, this one running Yosemite, and it built without issue on that. I have another Mavericks machine at work which I'll test on Monday... -- Ticket URL: <https://trac.macports.org/ticket/48603#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#48603: py27-astropy build fails with AttributeError -------------------------+-------------------------- Reporter: ram@… | Owner: robitaille@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-astropy | -------------------------+-------------------------- Comment (by ram@…): On a Mavericks VM, running on a Yosemite host, `py27-astropy` builds fine. I've performed a clean MacPorts install on the machine I'm seeing this problem and it still fails with the same error. Any ideas about what could be different on this machine that could cause this? -- Ticket URL: <https://trac.macports.org/ticket/48603#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts