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

Value error #277

Closed
AryanAdhau opened this issue Sep 17, 2024 · 8 comments
Closed

Value error #277

AryanAdhau opened this issue Sep 17, 2024 · 8 comments

Comments

@AryanAdhau
Copy link

I am getting Value error while downloading the imagery.

The error says value error due to invalid literal for int() with base 10: '0.0'.

Here's is the screenshot:
Screenshot 2024-09-17 162510

Thanks

@dbuscombe-usgs
Copy link
Member

dbuscombe-usgs commented Sep 24, 2024

Thanks @AryanAdhau for this. The developer team is taking a break at the moment, and will be back in a few weeks to work on this issue. This is not something we have encountered before. In the meantime, if you provided your ROI, shoreline, transect and any other relevant files, we can better troubleshoot the issue.

@AryanAdhau
Copy link
Author

Thanks @dbuscombe-usgs for helping out. The information is as follows:

ROI: ID oqt4

Shoreline details:

ID: onm18
Mean Sig Waveheight: 1.687268
Tidal Range: 2.423294
Erodibility: High
River: moderate river discharge
Sinuosity: straight
Slope: sloping
Turbid: clear
CSU_ID: 20194

Transect details

Id: region_8_1182
Slope: 0.06
Distance btw slope and transect: 0.0
Transect (x,y):(-121.809815,36.703034)
Nearest Slope (x,y):(-121.809805,36.703159)

Now the error is Attempt 3/3 failed with error: ValueError
invalid literal for int() with base 10: '1.1'

However, I tried to change the ROI and shoreline but the error is same everywhere for all coastlines.

Cheers,
Aryan

@naresh-341
Copy link

I am facing the same issue, hey @AryanAdhau did you find a way to resolve it?

@2320sharon
Copy link
Collaborator

Hi @AryanAdhau and @naresh-341 thank you both for reporting your issues. We found the cause of this bug and we are working on getting it fixed.

@AryanAdhau
Copy link
Author

"Hi @2320sharon , I tried with the new release, but the problem remains the same while downloading.

Max retries 3/3 exceeded for download_tif due to ValueError

The download for satellite L8 image 'LANDSAT/LC08/C02/T1_TOA/LC08_043035_20181203' failed due to ValueError
invalid literal for int() with base 10: '1.3'
Attempt 1/3 failed with error: ValueError
Attempt 2/3 failed with error: ValueError
Attempt 3/3 failed with error: ValueError
Max retries 3/3 exceeded for download_tif due to ValueError

@2320sharon
Copy link
Collaborator

2320sharon commented Oct 25, 2024

Hi @AryanAdhau I've been testing the newest version of CoastSeg 1.2.15 this morning and its been working for me.

In your coastseg environment can you run the commands below so we can verify you have the correct coastseg version installed:

conda list coastseg

conda list conda list coastsat-package

Ideally these should return

(coastseg) C:\development\coastseg_user_copy\CoastSeg>conda list coastseg
# packages in environment at C:\Users\sf230\anaconda3\envs\coastseg:
#
# Name                    Version                   Build  Channel
coastseg                  1.2.15                  pypi_0    pypi
(coastseg) C:\development\coastseg_user_copy\CoastSeg>conda list coastsat-package
# packages in environment at C:\Users\sf230\anaconda3\envs\coastseg:
#
# Name                    Version                   Build  Channel
coastsat-package          0.1.74                   pypi_0    pypi

The bug came from coastsat-package so make sure that package is 0.1.74

If that still doesn't work you may need to pull the latest code from github

@AryanAdhau
Copy link
Author

Hi @2320sharon, Thank you for your help. It worked after reinstalling.

@2320sharon
Copy link
Collaborator

Awesome, glad to hear it!

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

No branches or pull requests

4 participants