MoiseRousseau / PyGeoStudio

Python library allowing reading/writing GeoStudio .gsz file
https://pygeostudio.readthedocs.io
22 stars 2 forks source link

package import failure #11

Closed RB-HGG closed 4 months ago

RB-HGG commented 4 months ago

High there,

I've successfully installed PyGeoStudio via pip, but run into an error when I try to load it in a Jupyter Notebook.

I get the following error below. Any help would be greatly appreciated!

Traceback (most recent call last):

File c:\Users\XXXXX\anaconda3\lib\site-packages\IPython\core\interactiveshell.py:3369 in run_code exec(code_obj, self.user_global_ns, self.user_ns)

Input In [6] in <cell line: 1> import PyGeoStudio as pgs

File c:\Users\XXXXX\anaconda3\lib\site-packages\PyGeoStudio__init__.py:1 in from .PyGeoStudio import GeoStudioFile

File c:\Users\XXXXX\anaconda3\lib\site-packages\PyGeoStudio\PyGeoStudio.py:72 match item: ^ SyntaxError: invalid syntax

MoiseRousseau commented 4 months ago

It seems to me you are using Python version 3.9 or below. You must have Python 3.10 or above to run PyGeoStudio. Can you upgrade your Python version ? I can have a look tomorrow or later to make compatible with older Python versions.

Le lun. 11 mars 2024 22:19, RB-HGG @.***> a écrit :

High there,

I've successfully installed PyGeoStudio via pip, but run into an error when I try to load it in a Jupyter Notebook.

I get the following error below. Any help would be greatly appreciated!

Traceback (most recent call last):

File c:\Users\XXXXX\anaconda3\lib\site-packages\IPython\core\interactiveshell.py:3369 in run_code exec(code_obj, self.user_global_ns, self.user_ns)

Input In [6] in <cell line: 1> import PyGeoStudio as pgs

File c:\Users\XXXXX\anaconda3\lib\site-packages\PyGeoStudioinit.py:1 in from .PyGeoStudio import GeoStudioFile

File c:\Users\XXXXX\anaconda3\lib\site-packages\PyGeoStudio\PyGeoStudio.py:72 match item: ^ SyntaxError: invalid syntax

— Reply to this email directly, view it on GitHub https://github.com/MoiseRousseau/PyGeoStudio/issues/11, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKRTDJU53G4VPM7EA6YWLSLYXZQ4PAVCNFSM6AAAAABERMFRF6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4DANJYG4YTMNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

RB-HGG commented 4 months ago

All good now with Python update. Thanks!