Issue with Pyproj

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with Pyproj

Simon Hochstöger
Hi everyone,

I'm trying to use pyinstaller for a python script which uses pyproj.
If i run the .exe I get the following error:

Traceback (most recent call last):
  File "digitize_pylon_design.py", line 367, in <module>
  File "digitize_pylon_design.py", line 361, in main
  File "digitize_pylon_design.py", line 56, in create_dataframe
  File "digitize_pylon_design.py", line 257, in crs_transformation
  File "site-packages\pyproj\__init__.py", line 362, in __new__
  File "_proj.pyx", line 129, in _proj.Proj.__cinit__
RuntimeError: b'no arguments in initialization list'

I tried to include a hook-pyproj.py file with pyinstaller my_python_script.py --additional-hooks-dir=d:\Data\dir\hooks
But I still get the same error.

Is there anyone who also uses pyproj in a python script and got a similar error?

I appreciate any help!
Cheers, Simon

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Pyproj

Stefano Giostra
Hi, 
i had a similar problem with argparse and bottle. 
Wath this link and check if You have a similar condition on Your code.
good luck.

Stefano

Il giorno gio 28 feb 2019 alle ore 20:31 Simon Hochstöger <[hidden email]> ha scritto:
Hi everyone,

I'm trying to use pyinstaller for a python script which uses pyproj.
If i run the .exe I get the following error:

Traceback (most recent call last):
  File "digitize_pylon_design.py", line 367, in <module>
  File "digitize_pylon_design.py", line 361, in main
  File "digitize_pylon_design.py", line 56, in create_dataframe
  File "digitize_pylon_design.py", line 257, in crs_transformation
  File "site-packages\pyproj\__init__.py", line 362, in __new__
  File "_proj.pyx", line 129, in _proj.Proj.__cinit__
RuntimeError: b'no arguments in initialization list'

I tried to include a hook-pyproj.py file with pyinstaller my_python_script.py --additional-hooks-dir=d:\Data\dir\hooks
But I still get the same error.

Is there anyone who also uses pyproj in a python script and got a similar error?

I appreciate any help!
Cheers, Simon

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.