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
Fails with pythin3: 'ascii' codec can't decode byte 0xc3 #34
Comments
What version of cyipopt is this from? |
0.1.8 |
The offending file: ipopt/version.py |
I need more information that you are providing. Can you try to open the file and read the contents and report the error here? The file does have a unicode character in it so I'm not sure why ascii decoding is being used. I can't reproduce this with Python 3.6 on ubuntu, the file opens fine. What OS are you using? |
I had to apply this patch:
|
Here is what I get:
|
I'd prefer to keep Matthais name spelled correctly in the files and find our why this fails on your machine. Python 3.6 should be able to read unicode just fine. |
It's not on my machine. This is in the FreeBSD port. This happened before, but I never understood why this happens. |
Are you packaging it for FreeBSD or something? If so, then just apply the patch downstream. Otherwise, I am not sure if enough details are provided. I am not familiar with FreeBSD and don't have an easy way to reproduce this. Maybe the Python on FreeBSD has an issue? |
I am investigating, and asked FreeBSD this question: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231650 |
As it turned out, the |
@moorepants This patch fixes the problem. |
Open version.py with utf-8 encoding, fixes #34.
There is now a 0.1.9 on pypi with this fix. Thanks for the help. |
The text was updated successfully, but these errors were encountered: