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)
Change History (17)
Changed 11 years ago by amdt (Alastair M. D. Touw)
comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)
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)
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 follow-up: 8 Changed 11 years ago by larryv (Lawrence Velázquez)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This looks like #39357.
comment:8 Changed 11 years ago by larryv (Lawrence Velázquez)
comment:12 Changed 11 years ago by dcecchin@…
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
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:15 Changed 11 years ago by anddam (Andrea D'Amore)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
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.
Have you used
port select
to choose a default python at all? What doesport select python
return for you?