-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuring it with ECLIPSE PyDev #68
Comments
It is choking on this line,
If you install with pip, You have less to worry about those types of details because it will compile it for you. Run |
I don't have ECLIPSE installed. I've got two questions that *might* help. What is the value of the variable Where is PROJ.4 installed on your box? |
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: Eclipse setup is like this: |
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. |
I'm glad you figure it out. Thanks for sharing the solution. |
Closing as solution found. Thanks for sharing! |
I wasn't able to configure pyproj with ECLIPSE. However, I was able to do it with standalone Py IDE.
Did any one try? What do I have to do it to properly run it in Eclipse.
I did properly add the source folders & eggs in pythonpath. I always get this error:
console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0.
Traceback (most recent call last):
File "X:\Eclipse_Java_Workspace\CoordConv\src\subset.py", line 11, in
from pyproj import Proj, transform
File "C:\Python27\Lib\site-packages\pyproj-1.9.5.1-py2.7-win32.egg\pyproj__init__.py", line 51, in
from pyproj import _proj
File "C:\Python27\Lib\site-packages\pyproj-1.9.5.1-py2.7-win32.egg\pyproj_proj.py", line 7, in
bootstrap()
File "C:\Python27\Lib\site-packages\pyproj-1.9.5.1-py2.7-win32.egg\pyproj_proj.py", line 6, in bootstrap
imp.load_dynamic(name,file)
ImportError: No module named pyproj._proj
The text was updated successfully, but these errors were encountered: