Skip to content

Update setup.py#52

Open
cmarshak wants to merge 3 commits intonasa:mainfrom
cmarshak:patch-1
Open

Update setup.py#52
cmarshak wants to merge 3 commits intonasa:mainfrom
cmarshak:patch-1

Conversation

@cmarshak
Copy link

Resolves #51

'bin/dswx_compare.py'],
install_requires=['argparse', 'numpy', 'yamale',
'osgeo', 'scipy', 'pytest', 'requests'],
'scipy', 'pytest', 'requests'],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

osgeo contains access to gdal, which is a necessary dependency for PROTEUS.

If this dependency is removed, and then a user tries to install and run PROTEUS in a fresh conda environment, then it will fail due to the missing dependency.

If this fix worked on your system and you were still able to run PROTEUS, by chance, were you working in an existing conda environment, where osgeo / gdal were previously installed for a different application?

Copy link
Author

@cmarshak cmarshak Dec 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

osgeo contains access to gdal, which is a necessary dependency for PROTEUS.

If this dependency is removed, and then a user tries to install and run PROTEUS in a fresh conda environment, then it will fail due to the missing dependency.

If this fix worked on your system and you were still able to run PROTEUS, by chance, were you working in an existing conda environment, where osgeo / gdal were previously installed for a different application?

osgeo is not the proper name for the library listed on PyPI from what I have read and tried locally e.g. https://pypi.org/project/osgeo/

Not negating from osgeo import gdal just highlighting the package name should be updated in setup.py as it is here too: https://github.com/nasa/PROTEUS/blob/main/docker/requirements.txt#L1

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried adding gdal but now it's not passing CircleCI - I will let you figure out how to fix this or maybe it's not necessary.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That doesn't surprise me that it failed. Please see this comment: #51 (comment)

Updating PROTEUS to be installed via pip and not setup.py would likely be considered a new feature development.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: osgeo in setup.py

2 participants