#56150 closed defect (fixed)
py36-cartopy @0.15.1_2: install fails: setup.py can't find proj
Reported by: | mndavidoff (Monte Davidoff) | Owned by: | petrrr |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.2 |
Keywords: | Cc: | Veence (Vincent), scrallen, anowacki (Andy Nowacki), dbevans (David B. Evans), Chergnat | |
Port: | py-cartopy |
Description
Installing py36-cartopy gets this error:
$ sudo port -vs install py36-cartopy ---> Computing dependencies for py36-cartopy. ---> Fetching distfiles for py36-cartopy ---> Verifying checksums for py36-cartopy ---> Checksumming cartopy-0.15.1.tar.gz ---> Extracting py36-cartopy ---> Extracting cartopy-0.15.1.tar.gz Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-cartopy/py36-cartopy/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/py-cartopy/cartopy-0.15.1.tar.gz' | /usr/bin/tar -xf - ---> Configuring py36-cartopy ---> Building py36-cartopy Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-cartopy/py36-cartopy/work/cartopy-0.15.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 setup.py --no-user-cfg build Proj4 4.9.0 must be installed. Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-cartopy/py36-cartopy/work/cartopy-0.15.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 setup.py --no-user-cfg build Exit code: 1 Error: Failed to build py36-cartopy: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-cartopy/py36-cartopy/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port py36-cartopy failed
The proj4 port installs /opt/local/lib/proj49/bin/proj
, so maybe the py-cartopy setup.py can't find the proj
executable there.
Attachments (1)
Change History (11)
Changed 7 years ago by mndavidoff (Monte Davidoff)
Attachment: | main.log.gz added |
---|
comment:1 Changed 7 years ago by mf2k (Frank Schima)
Cc: | petr@… removed |
---|---|
Owner: | set to petrrr |
Status: | new → assigned |
comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | Veence added |
---|
comment:3 Changed 7 years ago by scrallen
Cc: | scrallen added |
---|
comment:4 follow-up: 8 Changed 7 years ago by news24lor
comment:5 Changed 7 years ago by platipodium (Carsten Lemmen)
Just to confirm @news24lor solution works for me, and for py27-spatialite
comment:6 Changed 7 years ago by anowacki (Andy Nowacki)
Cc: | anowacki added |
---|
comment:7 Changed 7 years ago by dbevans (David B. Evans)
Cc: | dbevans added |
---|
This appears to be the result of the recent commit that allows both proj4 and proj (version 5) to install in parallel by installing them in versioned directories under ${prefix}/lib
See e3710d6800e803ebaa9528d3bdb38fb2fcade513/macports-ports
The proj executables are now installed in
${prefix]/lib/proj49/bin/proj ${prefix}/lib/proj5/bin/proj
Adding the symbolic links would cause these two ports to conflict once again.
A better solution would be to configure and/or patch this port and the others effected to correctly find the proj/proj5 install path.
As stated above, python ports that depends on proj4 are
py-cartopy py-spatialite
Python ports that depend directly on proj 5.0 are
py-pyproj (fixed, builds with either, proj by default)
comment:8 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | Chergnat added |
---|
comment:9 Changed 7 years ago by dbevans (David B. Evans)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Hi
Yes. It does not see proj49 folder. This problem is similar to other packages (py-spatialite, ...)
I've resolved with symbolic link.