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

Unable to use CSV file as ComplexInput #567

Open
1 of 5 tasks
nikola-rados opened this issue Jan 26, 2021 · 2 comments
Open
1 of 5 tasks

Unable to use CSV file as ComplexInput #567

nikola-rados opened this issue Jan 26, 2021 · 2 comments
Labels

Comments

@nikola-rados
Copy link

Description

When using a ComplexInput with support_formats=[Format("text/csv", extension=".csv")], pywps is unable to read the csv file when the process is running from a docker container.

Environment

  • operating system: ubuntu-20.04
  • Python version: 3.8
  • PyWPS version: 4.2.10
  • source/distribution
  • git clone
  • Debian
  • PyPI
  • zip/tar.gz
  • other (please specify):

Additional Information

We have checked that the csv with the mimetypes package:

>>> mimetypes.guess_type("/path/to/csv")
('text/csv', None)

There is no encoding listed and by the time the input is accesses with a csv reader it is a bytes stream (with an illegal start byte).

@cehbrecht cehbrecht added the bug label Mar 8, 2021
@cehbrecht
Copy link
Collaborator

cehbrecht commented Mar 28, 2021

@cehbrecht
Copy link
Collaborator

I have added an example process with a CSV file input:
bird-house/emu#111

This one works.

@nikola-rados is the csv send as "reference" or embedded? There might be issues with the encoding ...

@cehbrecht cehbrecht mentioned this issue Mar 29, 2021
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants