Comments (7)
It is choking on this line, from pyproj import _proj
. This is where pyproj imports the Cython portion (which in C code interfaces with the C library PROJ.4).
I did properly add the source folders & eggs in pythonpath.
If you install with pip, You have less to worry about those types of details because it will compile it for you. Run C:\..> pip install pyproj
from pyproj.
Thanks Micah for a swift reply.
I did this and the standalone Python works fine. It is only the ECLIPSE issue. It does not recognize the pyproj path.
from pyproj.
I don't have ECLIPSE installed. I've got two questions that *might* help.
What is the value of the variable pyproj.pyproj_datadir
?
Where is PROJ.4 installed on your box?
from pyproj.
Following your e-mail I used the pip installation without setting the PROJ.4. So, I assume it is using the src. Thus, I should not link it to the environment variable PROJ_DIR. With this installation, Python IDLE works fine as shown in the previous attachmen (bottom left). Eclipse does not!
However, I also have a standalone installation of PROJ.4 located under:
C:\Python27\Lib\site-packages\proj.4
The datadir file has the following contents.
if 'PROJ_DIR' in os.environ:
pyproj_datadir = os.environ['PROJ_DIR']
else:
pyproj_datadir = os.sep.join([os.path.dirname(file), 'data'])
Eclipse setup is like this:
from pyproj.
Resolution:
The main problem was the compilation of the PROJ.4. It was using ./configure in the cygwin.
Then I ran the preinstalled MSVC 8 command prompt via the start menu and ran nmake. It created the share/ folder in the installation path (set by editing the nmake*.opt file (INSTDIR = c:\Proj). After this, the eggs of pyproj were correctly build by running the pyproj (using python setup.py pyproj).
I have seen many users suffered in the Eclipse to properly do this.
from pyproj.
I'm glad you figure it out. Thanks for sharing the solution.
from pyproj.
Closing as solution found. Thanks for sharing!
from pyproj.
Related Issues (20)
- DEP: PROJ 9.3
- Leading space in WKT raises `CRSError` HOT 9
- Functions of `loxodrome` or `rhumb line` is needed HOT 6
- Help with PROJ 9.3 CRS comparison issue HOT 26
- Request: release a patch version that pins cython<3.0 HOT 24
- error installl pyproj==3.2.1 on debian:12 HOT 3
- UserWarning: Valid PROJ data directory not found HOT 16
- What happened to the `pyproj/aoi.py` module in releases? HOT 1
- Deprecation warning when transforming a single point enclosed in numpy array HOT 1
- LibTiff Vulnerabilities and Dependencies HOT 4
- DOC: Converting from fiona CRS to pyproj.crs.CRS HOT 7
- Add JSON serializeability with PROJJSON? HOT 7
- to_CF for polar_stereographic, with latitude_true_scale, should include latitude_of_projection_origin HOT 2
- Reverse transformation does not produce initial coordinates
- DeprecationWarning: pkg_resources is deprecated as an API. HOT 1
- Support for deprecated and non-deprecated objects HOT 3
- Invert lat lon "Transformer" HOT 1
- Internal Proj Error: proj_create: unrecognized format / unknown name HOT 4
- Inverted x/y for transformation from WSG84 to LV95 (EPSG:2056) HOT 3
- muslinux wheel missing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyproj.