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

Problems with search #232

Open
ivanhigueram opened this issue Jun 11, 2017 · 2 comments
Open

Problems with search #232

ivanhigueram opened this issue Jun 11, 2017 · 2 comments

Comments

@ivanhigueram
Copy link

ivanhigueram commented Jun 11, 2017

Hello!

I've been trying to search some L8 images using landsat-util. I run the examples on the documentation:

$: landsat search --lat 38.9004204 --lon -77.0237117

But after a few seconds the command raises the following error:

Traceback (most recent call last):
  File "/Users/ivan/anaconda3/envs/landsat-util/bin/landsat", line 11, in <module>
    sys.exit(__main__())
  File "/Users/ivan/anaconda3/envs/landsat-util/lib/python3.5/site-packages/landsat/landsat.py", line 488, in __main__
    print(main(args))
  File "/Users/ivan/anaconda3/envs/landsat-util/lib/python3.5/site-packages/landsat/landsat.py", line 357, in main
    geojson=args.geojson)
  File "/Users/ivan/anaconda3/envs/landsat-util/lib/python3.5/site-packages/landsat/search.py", line 98, in search
    r_dict = json.loads(r.text)
  File "/Users/ivan/anaconda3/envs/landsat-util/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/Users/ivan/anaconda3/envs/landsat-util/lib/python3.5/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Users/ivan/anaconda3/envs/landsat-util/lib/python3.5/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I have used different machines (AWS Ubuntu instance and a Mac box), but the result is the same for both. I have installed the landsat-util utility in a virtual environment with Python=3.5 and with the requirements of the package. I am doing anything wrong? I've update the geojson library, but the errors persists.

Thank you so much.

@neeraj9194
Copy link

neeraj9194 commented Jun 11, 2017

I think the development seed's API is down... see here.

@drewbo
Copy link
Contributor

drewbo commented Jun 11, 2017

Should be back up now, thanks for the feedback @neeraj9194 @ivanhigueram

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

No branches or pull requests

3 participants