Opened 7 years ago

Closed 2 years ago

#54468 closed defect (fixed)

problem installing py36-ipython on Mac OS Sierra 10.12.5

Reported by: lpagani91 Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc:
Port: py-gnureadline

Description

Hello,

I tried to install py36-ipython (python-3.6 is installed and working) but failed. The first time it failed (repeatedly) on the last dependency installation (py36-wcwidth).

Opening XCode, it asked me to update some features. I did. I reinstalled XQuartz behind, to be sure. I reinstalled Macports itself, selfupdated, and upgraded outdated then I tried to install py36-ipython again and it failed at the first dependency installation (py36-gnureadline)! while it did not before!!!

I am lost...

Attachments (1)

main.log (29.3 KB) - added by lpagani91 7 years ago.
log file I was asked by the port install program to attach to this ticket

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by lpagani91

Attachment: main.log added

log file I was asked by the port install program to attach to this ticket

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Owner: set to stromnov
Port: py-gnureadline added; py36-ipython removed
Status: newassigned

In the future, please fill in the Port field with the port that actually fails to build and Cc that port's maintainers (port info --maintainers py36-gnureadline), if any.

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

Please provide the output of port provides /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/six-1.10.0.dist-info command.

comment:3 in reply to:  2 Changed 7 years ago by stromnov (Andrey Stromnov)

Replying to lpagani91:

Not sure to do it correctly (I am new to all this, sorry) :

sudo port provides /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/six-1.10.0.dist-info/ /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/six-1.10.0.dist-info is a directory

Ok. Please, provide output of port provides for one of the files from /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/six-1.10.0.dist-info directory.

It looks like you've installed six package (directly or undirectly) via sudo pip/easyinstall or sudo python setup.py install. And now that package interferes with MacPorts installation scripts.

comment:4 Changed 7 years ago by lpagani91

I did not follow up immediately.
Cleaning my macport install I stumbled against this problem again.
I uninstalled python35 and python36 and reinstalled them. Both were OK.
I installed py35-ipython (and its dependency py35-gnureadline) without problem but py36-gnureadline install still crashes :

:debug:build build phase started at Thu Oct 26 06:05:59 CEST 2017
:notice:build --->  Building py36-gnureadline
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build Executing org.macports.build (py36-gnureadline)
:debug:build Environment: 
:debug:build CC='/usr/bin/clang'
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-gnureadline/py36-gnureadline/work/.CC_PRINT_OPTIONS'
:debug:build CFLAGS='-arch x86_64'
:debug:build CPATH='/opt/local/include'
:debug:build CXX='/usr/bin/clang++'
:debug:build CXXFLAGS='-arch x86_64'
:debug:build F90FLAGS='-m64'
:debug:build FCFLAGS='-m64'
:debug:build FFLAGS='-m64'
:debug:build LDFLAGS='-arch x86_64'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='10.12'
:debug:build OBJC='/usr/bin/clang'
:debug:build OBJCFLAGS='-arch x86_64'
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-gnureadline/py36-gnureadline/work/python-gnureadline-38f917de65ff089a22d551775f41a7300eb13010" && /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 setup.py --no-user-cfg build 
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-gnureadline/py36-gnureadline/work/python-gnureadline-38f917de65ff089a22d551775f41a7300eb13010" && /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 setup.py --no-user-cfg build 
:info:build Traceback (most recent call last):
:info:build   File "setup.py", line 8, in <module>
:info:build     from setuptools import setup, Extension
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 10, in <module>
:info:build     from setuptools.extern.six.moves import filter, map
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/extern/__init__.py", line 1, in <module>
:info:build     from pkg_resources.extern import VendorImporter
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3138, in <module>
:info:build     @_call_aside
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3122, in _call_aside
:info:build     f(*args, * *kwargs)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3151, in _initialize_master_working_set
:info:build     working_set = WorkingSet._build_master()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 655, in _build_master
:info:build     ws = cls()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 648, in __init__
:info:build     self.add_entry(entry)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 704, in add_entry
:info:build     for dist in find_distributions(entry, True):
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2049, in find_on_path
:info:build     for dist in factory(fullpath):
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2111, in distributions_from_metadata
:info:build     if len(os.listdir(path)) == 0:
:info:build PermissionError: [Errno 13] Permission denied: '/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/scipy-0.19.1.dist-info'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-gnureadline/py36-gnureadline/work/python-gnureadline-38f917de65ff089a22d551775f41a7300eb13010" && /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 setup.py --no-user-cfg build 
:info:build Exit code: 1

there is no trace of six package in my Macports presently.

Last edited 6 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 6 years ago by jmroot (Joshua Root)

Looks like first six then scipy had incorrect permissions on files they installed, which caused setuptools to fail as described upstream: https://github.com/pypa/setuptools/issues/617

Is this a problem with the current versions of those packages?

comment:6 Changed 2 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

No response; assuming fixed.

Note: See TracTickets for help on using tickets.