Opened 11 years ago

Closed 11 years ago

#39337 closed defect (fixed)

weechat @0.4.0 +python: build cannot find Python

Reported by: amdt (Alastair M. D. Touw) Owned by: nefar@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: cooljeanius (Eric Gallager), dcecchin@…, anddam (Andrea D'Amore)
Port: weechat

Description

Building on Mac OS X 10.8.3 with Xcode 4.6.2 results in:

Error: org.macports.build for port weechat returned: command execution failed

Relevant section of log file could be lines 604 and 605 as follows:

:info:build Linking C shared module python.so
:info:build clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python'

However, python27 @2.7.5_0+universal is active.

Attachments (2)

main.log (55.2 KB) - added by amdt (Alastair M. D. Touw) 11 years ago.
main2.log (55.2 KB) - added by amdt (Alastair M. D. Touw) 11 years ago.

Download all attachments as: .zip

Change History (17)

Changed 11 years ago by amdt (Alastair M. D. Touw)

Attachment: main.log added

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

Have you used port select to choose a default python at all? What does port select python return for you?

Last edited 11 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:2 Changed 11 years ago by larryv (Lawrence Velázquez)

Owner: changed from macports-tickets@… to nefar@…
Summary: weechat @0.4.0 +python Build failure (Clang, Python)weechat @0.4.0 +python: build cannot find Python

Please Cc relevant port maintainers in the future.

comment:3 Changed 11 years ago by mf2k (Frank Schima)

The python chosen via port select should never affect the installation of a port.

comment:4 Changed 11 years ago by amdt (Alastair M. D. Touw)

port select python returned the following:

Available versions for python:
        none (active)
        python25-apple
        python26-apple
        python27
        python27-apple

sudo port select --set python python27 returned the following:

Selecting 'python27' for 'python' failed: symlink: /opt/local/etc/select/python/
current -> python27: file already exists

I then ran sudo rm /opt/local/etc/select/python/current.

At this point, sudo port select --set python python27 succeeded with:

Selecting 'python27' for 'python' succeeded. 'python27' is now active.

However, the build continues to fail with:

Error: org.macports.build for port weechat returned: command execution failed

Python can still not be found (main2.log, lines 574-575, to be attached):

:info:build clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python'
:info:build make[2]: *** [src/plugins/python/python.so] Error 1

Changed 11 years ago by amdt (Alastair M. D. Touw)

Attachment: main2.log added

comment:5 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:6 Changed 11 years ago by amdt (Alastair M. D. Touw)

I had a related problem with Vim not being able to find Python, and reinstalled MacPorts. I now have no problems installing this port.

I do not know the exact reason for the problem with my Python port installation, but even if reproducible it would not be related to this port.

I dot not appear to be able to modify the status of this ticket, so I hereby request it be closed.

comment:7 Changed 11 years ago by larryv (Lawrence Velázquez)

Resolution: duplicate
Status: newclosed

This looks like #39357.

comment:8 in reply to:  7 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to larryv@…:

This looks like #39357.

nvm, actually #39223.

comment:9 Changed 11 years ago by dcecchin@…

Cc: dcecchin@… added

Cc Me!

comment:10 Changed 11 years ago by dcecchin@…

Cc: dcecchin@… removed

Cc Me!

comment:11 Changed 11 years ago by dcecchin@…

Cc: dcecchin@… added

Cc Me!

comment:12 Changed 11 years ago by dcecchin@…

Resolution: duplicate
Status: closedreopened

I'm not sure if that bug is actually a duplicate

I did notice this https://github.com/mxcl/homebrew/issues/21013

Seems to be an issue with that version of python? I wonder what we can do to resolve this?

comment:13 Changed 11 years ago by jmroot (Joshua Root)

The python version chosen with port select does affect weechat even though it shouldn't, that's #37048. The other problem here is that, as discussed in #39223, LINKFORSHARED is only useful when building python itself and is not a valid way for other programs to find out how to link with python. For that, you have to use pythonX.Y-config --ldflags.

comment:14 Changed 11 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

Cc Me!

comment:15 Changed 11 years ago by anddam (Andrea D'Amore)

Resolution: fixed
Status: reopenedclosed

Should be fixed in r111398, it could probably be done better by passing appropriate arguments to cmake at configure phase rather than patching link.txt afterwards, any cmake-savvy person welcome to adjust it.

Note: See TracTickets for help on using tickets.