[MacPorts] #57557: py36-montage: TypeError: 'Version' object is not subscriptable
MacPorts
noreply at macports.org
Sat Nov 10 18:03:56 UTC 2018
#57557: py36-montage: TypeError: 'Version' object is not subscriptable
------------------------+--------------------------
Reporter: ryandesign | Owner: robitaille@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: py-montage
------------------------+--------------------------
[https://build.macports.org/builders/ports-10.14_x86_64-builder/builds/12222/steps
/install-port/logs/stdio py36-montage doesn't build]:
{{{
git submodule command failed unexpectedly:
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "setup.py", line 8, in <module>
import ah_bootstrap
File "/opt/local/var/macports/build
/_opt_bblocal_var_buildworker_ports_build_ports_python_py-
montage/py36-montage/work/montage-wrapper-0.9.8/ah_bootstrap.py", line
748, in <module>
_main()
File "/opt/local/var/macports/build
/_opt_bblocal_var_buildworker_ports_build_ports_python_py-
montage/py36-montage/work/montage-wrapper-0.9.8/ah_bootstrap.py", line
745, in _main
use_astropy_helpers(**kwargs)
File "/opt/local/var/macports/build
/_opt_bblocal_var_buildworker_ports_build_ports_python_py-
montage/py36-montage/work/montage-wrapper-0.9.8/ah_bootstrap.py", line
249, in use_astropy_helpers
upgrade = _do_upgrade(dist, index_url)
File "/opt/local/var/macports/build
/_opt_bblocal_var_buildworker_ports_build_ports_python_py-
montage/py36-montage/work/montage-wrapper-0.9.8/ah_bootstrap.py", line
340, in _do_upgrade
major, minor = (int(part) for part in dist.parsed_version[:2])
TypeError: 'Version' object is not subscriptable
}}}
With py27-montage we have a similar-looking error:
{{{
git submodule command failed unexpectedly:
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "setup.py", line 8, in <module>
import ah_bootstrap
File "/opt/local/var/macports/build/_Users_rschmidt_macports_macports-
ports-svn-trunk-new_python_py-montage/py27-montage/work/montage-
wrapper-0.9.8/ah_bootstrap.py", line 748, in <module>
_main()
File "/opt/local/var/macports/build/_Users_rschmidt_macports_macports-
ports-svn-trunk-new_python_py-montage/py27-montage/work/montage-
wrapper-0.9.8/ah_bootstrap.py", line 745, in _main
use_astropy_helpers(**kwargs)
File "/opt/local/var/macports/build/_Users_rschmidt_macports_macports-
ports-svn-trunk-new_python_py-montage/py27-montage/work/montage-
wrapper-0.9.8/ah_bootstrap.py", line 249, in use_astropy_helpers
upgrade = _do_upgrade(dist, index_url)
File "/opt/local/var/macports/build/_Users_rschmidt_macports_macports-
ports-svn-trunk-new_python_py-montage/py27-montage/work/montage-
wrapper-0.9.8/ah_bootstrap.py", line 340, in _do_upgrade
major, minor = (int(part) for part in dist.parsed_version[:2])
TypeError: 'Version' object has no attribute '__getitem__'
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57557>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list