Opened 11 years ago

Closed 11 years ago

#40303 closed defect (invalid)

py27-pylint @1.0.0: Destroot failure

Reported by: mark.chilenski@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: dh@…, stromnov (Andrey Stromnov)
Port: py27-pylint

Description

Running Macports 2.2.0 on OS X 10.6.8 with Xcode 3.2.6. Attempting to install py27-pylint gives the following error:

$ sudo port install py27-pylint
--->  Computing dependencies for py27-pylint
--->  Fetching archive for py27-pylint
--->  Attempting to fetch py27-pylint-1.0.0_0.darwin_10.noarch.tbz2 from http://packages.macports.org/py27-pylint
--->  Attempting to fetch py27-pylint-1.0.0_0.darwin_10.noarch.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/py27-pylint
--->  Attempting to fetch py27-pylint-1.0.0_0.darwin_10.noarch.tbz2 from http://lil.fr.packages.macports.org/py27-pylint
--->  Fetching distfiles for py27-pylint
--->  Verifying checksums for py27-pylint
--->  Extracting py27-pylint
--->  Configuring py27-pylint
--->  Building py27-pylint
--->  Staging py27-pylint into destroot
Error: org.macports.destroot for port py27-pylint returned: command execution failed
Please see the log file for port py27-pylint for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pylint/py27-pylint/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py27-pylint failed
juggernaut:~ markchilenski$ cp /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pylint/py27-pylint/main.log ~/Desktop/py27-pylint.main.log

My main.log file is attached.

Attachments (1)

py27-pylint.main.log (43.0 KB) - added by mark.chilenski@… 11 years ago.
main.log from failed install of py27-pylint

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by mark.chilenski@…

Attachment: py27-pylint.main.log added

main.log from failed install of py27-pylint

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

Cc: dh@… stromnov@… added
Owner: changed from macports-tickets@… to blair@…

comment:2 Changed 11 years ago by blair (Blair Zajac)

Owner: changed from blair@… to stromnov@…

Reassigning to stromnov@…, I'm not taking on an issue from an upgrade I didn't do ;)

comment:3 Changed 11 years ago by stromnov (Andrey Stromnov)

Can't reproduce. Looks like broken distutils/setuptools chain.

Please provide output of:

python2.7 -c "import sys, pprint; pprint.pprint(sys.path)"

and

echo $PYTHONNPATH

comment:4 Changed 11 years ago by mark.chilenski@…

Here are the requested outputs:

$ python2.7 -c "import sys, pprint; pprint.pprint(sys.path)"
['',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scikits.bootstrap-0.2dev-py2.7.egg',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MDSplus-4.0_2-py2.7.egg',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/infpy-0.4.11-py2.7.egg',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/readline',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyObjC',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa']

and

$ echo $PYTHONPATH

(Not set in my shell.)

Please advise for how to rectify this situation, thanks!

comment:5 Changed 11 years ago by stromnov (Andrey Stromnov)

It' s very interesting, is it a problem only with your system, or somebody have similar problems?

Probably (but I'm not sure), yours custom packages interfere with macports distutils/setuptools.

You have several non-macports packages, such as scikits.bootstrap-0.2dev, MDSplus-4.0_2 and infpy-0.4.11 installed globally (probably via sudo pip-2.7 install).

You can uninstall python27 with all py27-* packages, ensure, that '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/' is empty, and then reinstall python27 with py27-pylint.

comment:6 Changed 11 years ago by mark.chilenski@…

I was able to solve the problem by removing what is apparently an interfering version of setuptools in site-packages, no need to remove python27 and py27-*. The ticket may now be closed, thanks for the help!

For others' reference with similar issues, here are the details of what I did:

I tried uninstalling all three of the non-Macports packages (sudo pip-2.7 uninstall <NAME>) and it did not work.

I then tried uninstalling and reinstalling py27-setuptools (sudo port -f uninstall py27-setuptools followed by sudo port install py27-setuptools). py27-pylint still failed to install.

I then noticed that there were several redundant files in site-packages associated with setuptools:

drwxr-xr-x   35 root  wheel    1190 Aug 31 13:07 setuptools
drwxr-xr-x    3 root  wheel     102 Jun 19 15:12 setuptools-0.7.2-py2.7.egg-info
drwxr-xr-x    9 root  wheel     306 Jun 11 14:42 setuptools-0.7.2-py2.7.egg-info.OLD.1371669160.36
drwxr-xr-x    9 root  wheel     306 Aug 31 13:07 setuptools-1.1-py2.7.egg-info
drwxr-xr-x   30 root  wheel    1020 Jun 11 14:42 setuptools.OLD.1371669160.36

I verified that 1.1 is the active version in Macports and that all inactive ports had been uninstalled (sudo port -f uninstall inactive -- an overkill approach, I know), and yet all of those files remained.

So, I deleted the old directories one-by-one, testing after each deletion. py27-pylint finally installed when it was just setuptools and setuptools-1.1-py2.7.egg-info left.

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

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.