Skip to content
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

"pip install pyepr" on the windows10 python3.8 pyepr1.1.5, this is a error #14

Open
LooperzZ opened this issue Jun 9, 2024 · 4 comments
Assignees

Comments

@LooperzZ
Copy link

LooperzZ commented Jun 9, 2024

Traceback (most recent call last):
File "D:\Python_code\sea_ice_drift-master\MODIS_convert.py", line 10, in
product = epr.Product(file_name)
File "src\epr.pyx", line 2273, in epr.Product.cinit
File "src\epr.pyx", line 262, in epr.pyepr_check_errors
epr.EPRValueError: ('epr_open_product: invalid product identifier', 203)

@LooperzZ
Copy link
Author

LooperzZ commented Jun 9, 2024

import epr
file_name = './ASA_WSM_1PNDSI20120309_155143_000003363112_00270_52439_0000.N1'
product = epr.Product(file_name)
datasets = product.datasets()
print(datasets)

@avalentino
Copy link
Owner

Sorry I do not have a Windows machine to reproduce.
For sure it is not a problem with the product, your example works for me (on linux):

>>> import epr
>>> file_name = './ASA_WSM_1PNDSI20120309_155143_000003363112_00270_52439_0000.N1'
>>> product = epr.Product(file_name)
>>> datasets = product.datasets()
>>> print(datasets)

[epr.Dataset(MDS1_SQ_ADS) 6 records,
 epr.Dataset(MAIN_PROCESSING_PARAMS_ADS) 6 records,
 epr.Dataset(DOP_CENTROID_COEFFS_ADS) 55 records,
 epr.Dataset(SR_GR_ADS) 55 records,
 epr.Dataset(CHIRP_PARAMS_ADS) 340 records,
 epr.Dataset(GEOLOCATION_GRID_ADS) 55 records,
 epr.Dataset(MDS1) 29700 records]

Could you please provide more info?

@avalentino avalentino self-assigned this Jun 12, 2024
@avalentino
Copy link
Owner

Just triggered a new CI build and, apparently, all works fine in Windows with Python 3.8:
https://github.com/avalentino/pyepr/actions/runs/9490846455/job/26155144169

@avalentino
Copy link
Owner

@LooperzZ do you have the chance to build pyepr from sources?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants