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

Python error calculating isochrone #14

Closed
jesbrz opened this issue Jan 27, 2019 · 4 comments
Closed

Python error calculating isochrone #14

jesbrz opened this issue Jan 27, 2019 · 4 comments

Comments

@jesbrz
Copy link

jesbrz commented Jan 27, 2019

I get this error when trying to calculate isochrones:

ValueError: invalid literal for int() with base 10: '' 
Traceback (most recent call last):
  File "/Volumes/Suevia/Users/jesus/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/HEREqgis/hereqgis.py", line 766, in getIsochronesSingle
    ranges = [int(x) for x in intervalArray]
  File "/Volumes/Suevia/Users/jesus/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/HEREqgis/hereqgis.py", line 766, in 
    ranges = [int(x) for x in intervalArray]
ValueError: invalid literal for int() with base 10: ''


Versión de Python: 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 03:02:14) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] 
Versión de QGIS: 3.2.0-Bonn Bonn, exported 
@riccardoklinger
Copy link
Owner

Can you please copy paste the distance string you were using? The format should be integers, comma separated. Example: To get 3min, 5min, 10min intervals you should use the string '180,300,600'

@jesbrz
Copy link
Author

jesbrz commented Jan 28, 2019

Yes I use same string: 180,360,720. Now when click to get coordinates I get this error:

UnicodeEncodeError: 'ascii' codec can't encode character '\xf3' in position 591: ordinal not in range(128) 
Traceback (most recent call last):
  File "/Volumes/Suevia/Users/jesus/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/HEREqgis/GetMapCoordinates.py", line 79, in clicked
    print(r.text)
UnicodeEncodeError: 'ascii' codec can't encode character '\xf3' in position 591: ordinal not in range(128)
Versión de Python: 3.6.8 (v3.6.8:3c6b436a57, Dec 24 2018, 02:04:31) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] 
Versión de QGIS: 3.2.0-Bonn Bonn, exported 

@riccardoklinger
Copy link
Owner

Please share the searched/shown address in the geocode field in a new issue... It is most likely an issues with special characters

@riccardoklinger
Copy link
Owner

Just tried it with special characters and still wokred. Yet I have removed the print statement in the above mentioned coding block.

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

2 participants