[MacPorts] #56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj

MacPorts
#56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj
------------------------+------------------------
 Reporter:  mndavidoff  |      Owner:
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.4.2
 Keywords:              |       Port:  py-cartopy
------------------------+------------------------
 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.

--
Ticket URL: <https://trac.macports.org/ticket/56150>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj

MacPorts
#56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj
-------------------------+-------------------
  Reporter:  mndavidoff  |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.2
Resolution:              |   Keywords:
      Port:  py-cartopy  |
-------------------------+-------------------
Changes (by mndavidoff):

 * Attachment "main.log.gz" added.


--
Ticket URL: <https://trac.macports.org/ticket/56150>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj

MacPorts
In reply to this post by MacPorts
#56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj
-------------------------+----------------------
  Reporter:  mndavidoff  |      Owner:  petrrr
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.2
Resolution:              |   Keywords:
      Port:  py-cartopy  |
-------------------------+----------------------
Changes (by mf2k):

 * status:  new => assigned
 * cc: petr@… (removed)
 * owner:   => petrrr


--
Ticket URL: <https://trac.macports.org/ticket/56150#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj

MacPorts
In reply to this post by MacPorts
#56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj
-------------------------+----------------------
  Reporter:  mndavidoff  |      Owner:  petrrr
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.2
Resolution:              |   Keywords:
      Port:  py-cartopy  |
-------------------------+----------------------
Changes (by ryandesign):

 * cc: Veence (added)


--
Ticket URL: <https://trac.macports.org/ticket/56150#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj

MacPorts
In reply to this post by MacPorts
#56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj
-------------------------+----------------------
  Reporter:  mndavidoff  |      Owner:  petrrr
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.2
Resolution:              |   Keywords:
      Port:  py-cartopy  |
-------------------------+----------------------

Comment (by news24lor):

 Hi\\

 Yes. It does not see proj49 folder. This problem is similar to other
 packages (py-spatialite, ...)

 I've resolved with symbolic link.

 {{{
 $ sudo ln -s /opt/local/lib/proj49/bin/geod /opt/local/bin/
 $ sudo ln -s /opt/local/lib/proj49/bin/nad2bin /opt/local/bin/
 $ sudo ln -s /opt/local/lib/proj49/bin/proj /opt/local/bin/
 $ sudo ln -s /opt/local/lib/proj49/lib/libproj.dylib /opt/local/lib/
 $ sudo ln -s /opt/local/lib/proj49/lib/libproj.a /opt/local/lib/
 $
 $ sudo ln -s /opt/local/lib/proj49/include/proj_api.h /opt/local/include
 $ sudo ln -s /opt/local/lib/proj49/include/geodesic.h /opt/local/include/
 $ sudo ln -s /opt/local/lib/proj49/include/org_proj4_PJ.h
 /opt/local/include/
 $ sudo ln -s /opt/local/lib/proj49/include/org_proj4_Projections.h
 /opt/local/include/

 }}}

--
Ticket URL: <https://trac.macports.org/ticket/56150#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj

MacPorts
In reply to this post by MacPorts
#56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj
-------------------------+----------------------
  Reporter:  mndavidoff  |      Owner:  petrrr
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.2
Resolution:              |   Keywords:
      Port:  py-cartopy  |
-------------------------+----------------------

Comment (by platipodium):

 Just to confirm @news24lor solution works for me, and for
 `py27-spatialite`

--
Ticket URL: <https://trac.macports.org/ticket/56150#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj

MacPorts
In reply to this post by MacPorts
#56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj
-------------------------+----------------------
  Reporter:  mndavidoff  |      Owner:  petrrr
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.2
Resolution:              |   Keywords:
      Port:  py-cartopy  |
-------------------------+----------------------
Changes (by dbevans):

 * cc: dbevans (added)


Comment:

 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 [changeset:e3710d6800e803ebaa9528d3bdb38fb2fcade513/macports-ports]

 The proj executables are now  installed in

 {{{
 ${prefix]/lib/proj4/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 on proj 5.0 are
 {{{
 py-geopandas
 py-obspy
 py-owslib
 py-pygrib
 py-pyproj
 py-reproject
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/56150#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj

MacPorts
In reply to this post by MacPorts
#56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj
-------------------------+----------------------
  Reporter:  mndavidoff  |      Owner:  petrrr
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.2
Resolution:              |   Keywords:
      Port:  py-cartopy  |
-------------------------+----------------------
Changes (by ryandesign):

 * cc: Chergnat (added)


Comment:

 Has duplicate #56266.

 Replying to [comment:4 news24lor]:
 > I've resolved with symbolic link.

 Make sure you remove those symlinks later. The files were moved around for
 a reason; creating these symlinks subverts that.

--
Ticket URL: <https://trac.macports.org/ticket/56150#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj

MacPorts
In reply to this post by MacPorts
#56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj
-------------------------+--------------------
  Reporter:  mndavidoff  |      Owner:  petrrr
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.2
Resolution:  fixed       |   Keywords:
      Port:  py-cartopy  |
-------------------------+--------------------
Changes (by dbevans):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"0c5b6630d7069764bc950a02c71ea93011ae75ff/macports-ports"
 0c5b6630d7069764bc950a02c71ea93011ae75ff/macports-ports]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="0c5b6630d7069764bc950a02c71ea93011ae75ff"
 py-cartopy: update to version 0.16.0, dependencies, configuration

 * build requires pkgconfig
 * add search paths for proj4 binary and pkgconfig files to build/destroot
 env
 * allows setup.py to identify proj4 non-standard location and build flags

 Closes https://trac.macports.org/ticket/56150
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/56150#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj

MacPorts
In reply to this post by MacPorts
#56150: py36-cartopy @0.15.1_2: install fails: setup.py can't find proj
-------------------------+--------------------
  Reporter:  mndavidoff  |      Owner:  petrrr
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.2
Resolution:  fixed       |   Keywords:
      Port:  py-cartopy  |
-------------------------+--------------------

Comment (by dbevans):

 In [changeset:"7bd182906a0fdcff28a5a53b1a2791059886b399/macports-ports"
 7bd182906a0fdcff28a5a53b1a2791059886b399/macports-ports]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="7bd182906a0fdcff28a5a53b1a2791059886b399"
 py-spatialite: build fix for relocated proj4

 Add proj4 include and lib paths to setup.py.

 See https://trac.macports.org/ticket/56150
 Closes https://trac.macports.org/ticket/56175
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/56150#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS