Coder Social home page Coder Social logo

Comments (5)

grant-humphries avatar grant-humphries commented on August 27, 2024

Looking at this project's setup.py I gathered that path that PROJ_DIR is set to needs to have subfolders called 'lib' and 'include' so given where my proj.4 is installed that makes me think /usr may be the proper path to set the variable. However I gave PROJ_DIR that value and ran pip install -vvv pyproj, but the output from pip was identical to when I had the variable set to /usr/share/proj so I'm still not clear as to whether my proj.4 installation is being used

from pyproj.

micahcochran avatar micahcochran commented on August 27, 2024

There are two additional undocumented environment variables: PROJ_LIBDIR and PROJ_INCDIR.

PROJ_LIBDIR - this is the path PROJ_DIR + '/lib' and PROJ_DIR + '/lib64'
PROJ_INCDIR - this is the path PROJ_DIR + '/include'

If set in the environment, that setting will be used over the defaults.

If you want to see where pyproj data files are installed, print the variable: pyproj.pyproj_datadir

from pyproj.

grant-humphries avatar grant-humphries commented on August 27, 2024

Thanks for getting back to me. FWIW these are install locations of my proj.4 package:

/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/lib/x86_64-linux-gnu/pkgconfig/proj.pc
/usr/lib/x86_64-linux-gnu/libproj.la
/usr/lib/x86_64-linux-gnu/libproj.a
/usr/include
/usr/include/org_proj4_PJ_Type.h
/usr/include/projects.h
/usr/include/org_proj4_PJ.h
/usr/include/geodesic.h
/usr/include/org_proj4_Projections.h
/usr/include/proj_api.h
/usr/share
/usr/share/doc
/usr/share/doc/libproj-dev
/usr/share/doc/libproj-dev/copyright
/usr/share/man
/usr/share/man/man3
/usr/share/man/man3/pj_init.3.gz
/usr/share/man/man3/geodesic.3.gz
/usr/lib/x86_64-linux-gnu/libproj.so
/usr/share/doc/libproj-dev/changelog.Debian.gz
/usr/share/doc/libproj-dev/NEWS.Debian.gz
/usr/share/man/man3/proj.3.gz

Do you have a recommendation as to how I should set the environment variables? It looks like setting PROJ_DIR to /usr would be about right, but there is no lib64 directory on my system. Maybe set PROJ_DIR to /usr and PROJ_LIBDIR to /usr/lib/x86_64-linux-gnu?

For a previous install I had PROJ_DIR set to /usr/share/proj and pyproj.data_dir was set to /usr/share/proj/share/proj

from pyproj.

micahcochran avatar micahcochran commented on August 27, 2024

If you set PROJ_DIR to /usr for the library portion it would default to adding the directories /usr/lib and /usr/lib64 to search for the library.

Actually for Ubuntu 16.04 if you are using a default installation of PROJ.4, I'd recommend installing the Ubuntu repository package for pyproj.
$ apt install pyproj
Probably want to install it with administrative privileges, (sudo).
The Debian GIS maintainer, Bas, keeps on top of packaging.

from pyproj.

grant-humphries avatar grant-humphries commented on August 27, 2024

I don't want to install this to my system python, so that solution isn't ideal for me. Thanks for your responses though, it sounds like pointing PROJ_DIR to /usr may be the correct setting, I'm going to go ahead and close the ticket

from pyproj.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.