Closed aepyornis closed 6 years ago
Hey, I was able to recreate the issue here using docker. I think I will use something like this moving forward for cross-platform testing. I didn't go much further than that but I’ll try and take a deeper look later this week. @docmarionum1 may have some insight into this as well. In the meantime if you make any progress let me know or submit a pull request. Thanks!
Great! I'll take a look too and see if I can figure out a good solution. Being able to test across-platform would be helpful of course. I wouldn't want to make a change that fixes it for linux and breaks mac or windows.
Yikes. That's my fault. I copied over a bunch of bad characters from the geosupport docs.
Quick fix: I converted all the files to utf-8 using the command that @aepyornis gave. @ishiland see #3
I also had to make a change to the way that the geosupport library is being loaded for it to work for me. I tested it on RHEL 7.5.
I've used Travis before and could set up CI for Linux. But it doesn't support Windows. Appveyor looks like an option but I'm not familiar with it.
@docmarionum1 that sounds good, ill investigate appveyor. If all goes well, the latest PR should be on pypi within the next few days.
@ishiland @docmarionum1 Thanks!
First off, thanks for creating this library.
There is an issue with file encoding that occurs when running on linux (or at least on debian).
The package installs fine - both using git and pypi -- but running
import geosupport
raises this error:The CSV files located in
function_info/
are encoded with ISO-8859-1, but python on Linux appaers to assume by default that they are UTF-8 and raises an error.I did fix the issue by converting the files to UTF-8 via this shell command:
however, perhaps a solution should be incorporated into the program?