Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

could not convert string to float in prepare_data function in module arcgis.learn

See original GitHub issue

Describe the bug Due to my Slovak locale settings my system is using comma (,) in float number values. But the code to convert a string to float using float() function requires a dot (.) value.

To Reproduce Steps to reproduce the behavior:


could not convert string to float: '395,31'

Screenshots Snímka+obrazovky+(15)

Expected behavior I believe the user should not handle this type of error simply because the code is not written well. There should be a some kind of pre-check function that determines what locale is being used in the system and based on that a numerical value representation of arcgis API should be adjusted automatically. So that a user should not dwelve for 2 weeks the root of this problem just to find out that his locale has to be changed to some friendly country code as depicted here by a blue color

Platform (please complete the following information):

  • OS: Windows 10 64bit
  • Browser Chrome latest
  • Python API Version 1.6.2

Additional context Whole problem is described at the bottom of this issue:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

priyankatutejacommented, Jan 15, 2020

You’re Welcome! No worries @CMPeng I will do that as it gets fixed. Will also migrate it to Pro team backlogs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

could not convert string to float: '0,00' - Esri Community
On my system, the "Export Training Data for Deep Learning" Tool seems to export label xml files with a comma as decimal separator...
Read more >
arcgis.learn module | ArcGIS API for Python
Optional float. The minimum overlap percentage for a feature to be included in the training data. If the percentage overlap is less than...
Read more >
ValueError: could not convert string to float, NumPy
I have a script where I am writing a JSON web-service to an Esri file geodatabase. I am receiving ...
Read more >
Using 3rd party PASCAL_VOC in arcgis.learn prepare_data ...
Has anyone had luck using the prepare_data method with data not exported from the Export Training Data tool in ArcGIS Pro?
Read more >
GEOG 489 - John A. Dutton e-Education Institute
Differences between ArcGIS Desktop and ArcGIS Pro's arcpy functions. ... You will also learn more about Python packet managers in the next lesson....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found