-
Notifications
You must be signed in to change notification settings - Fork 43
As a user I want a clearer user-facing warning #714
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
Comments
thoughts @VincentVerelst @soxofaan ? |
Hi @HansVRP , when trying to create a new job database, the pre-defined classes in the Python Client (like This method will throw a However, is the error in your screenshot above related to the database existing or not? |
its a snapshot of a user who tried to rerun a preexisting notebook, I think the situation is that the csv already exists and that the jobs were completed, and we try to run the job manager again of the existing csv file |
Does the user have the full logs? Locally, I've managed to restart jobs from existing CSV files in the past |
do you have a copy of that CSV on which this fails? |
recreated the issue: 1) initiate a database and run all jobs to completion. job_tracker = 'jobs.csv' manager.run_jobs(start_job=start_job, job_db=job_db) 2) keep the database with fulfilled jobs and run the the job mnager again: manager.run_jobs(start_job=start_job, job_db=job_db) results in:
|
To summarize, it might be useful for users to create a more clear value error, or am I overlooking something? |
I agree that that error message is quite unhelpful, but at first sight it seems an internal pandas thing, it's a bit unclear at the moment to me how we could improve that. |
ok I can actually reproduce much simpler with that CSV: from openeo.extra.job_management import CsvJobDatabase
CsvJobDatabase(path='jobs.csv').read() which fails with
so it is failing in trying to read that file as geopandas dataframe |
failing to read the CSV is apparently because of the presence of a column named "crs": I can confirm that removing the "crs" column eliminates the reading problem |
not sure how to address this properly if I understand geopandas/geopandas#2944 correctly, the situation should be better with geopandas>0.13.2 what geopandas version are you using atm? |
1.0.1 |
hmm ok , it seems this bug geopandas/geopandas#2942 was only fixed for this usage pattern: geopandas.GeoDataFrame(
{
"crs": [1],
"geometry": [shapely.geometry.Point(2, 3)]
}
) but it still exists (e.g. in geopandas 1.0.1) for the following (which we use in openeo python client): geopandas.GeoDataFrame(
{
"crs": [1],
},
geometry=[shapely.geometry.Point(2, 3)]
) |
created a geopandas issue for it: |
added workaround with 0d295dc |
When trying to create a database, which already exist, we currently don't give a clear cut error to our users.
The text was updated successfully, but these errors were encountered: