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

UnicodeDecodeError when sending a request #51

Closed
fishy15 opened this issue Jun 4, 2020 · 4 comments
Closed

UnicodeDecodeError when sending a request #51

fishy15 opened this issue Jun 4, 2020 · 4 comments
Assignees

Comments

@fishy15
Copy link

fishy15 commented Jun 4, 2020

Hello,

When trying to set up camisole onto a computer running Ubuntu Server 20.04, I used the instructions on the documentation page for manual installation. I got through all of the steps, but when I run camisole test or try to send the request given in the README, I get a UnicodeDecodeError. Specifically, I get:

Traceback (most recent call last):
  File "/usr/local/bin/camisole", line 11, in <module>
    load_entry_point('camisole==1.4', 'console_scripts', 'camisole')()
  File "/usr/local/lib/python3.8/dist-packages/camisole-1.4-py3.8.egg/camisole/__main__.py", line 54, in main
  File "/usr/local/lib/python3.8/dist-packages/camisole-1.4-py3.8.egg/camisole/progs/test.py", line 12, in handle
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.8/dist-packages/camisole-1.4-py3.8.egg/camisole/progs/languages.py", line 24, in print_working_languages
  File "/usr/local/lib/python3.8/dist-packages/camisole-1.4-py3.8.egg/camisole/ref.py", line 8, in test
  File "/usr/local/lib/python3.8/dist-packages/camisole-1.4-py3.8.egg/camisole/models.py", line 212, in run
  File "/usr/local/lib/python3.8/dist-packages/camisole-1.4-py3.8.egg/camisole/models.py", line 181, in run_compilation
  File "/usr/local/lib/python3.8/dist-packages/camisole-1.4-py3.8.egg/camisole/models.py", line 144, in compile
  File "/usr/local/lib/python3.8/dist-packages/camisole-1.4-py3.8.egg/camisole/isolate.py", line 100, in __aenter__
  File "/usr/local/lib/python3.8/dist-packages/camisole-1.4-py3.8.egg/camisole/utils.py", line 95, in __get__
  File "/usr/local/lib/python3.8/dist-packages/camisole-1.4-py3.8.egg/camisole/isolate.py", line 239, in isolate_conf
  File "/usr/lib/python3.8/configparser.py", line 718, in read_file
    self._read(f, source)
  File "/usr/lib/python3.8/configparser.py", line 1017, in _read
    for lineno, line in enumerate(fp, start=1):
  File "/usr/local/lib/python3.8/dist-packages/camisole-1.4-py3.8.egg/camisole/isolate.py", line 237, in dummy_section
  File "/usr/lib/python3.8/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd8 in position 96: invalid continuation byte

I've tried deleting the binary that running the installation creates and reinstalling camisole, but this doesn't seem to have fixed anything. Why is this happening?

@lportemo lportemo self-assigned this Jun 4, 2020
@lportemo
Copy link
Contributor

lportemo commented Jun 4, 2020

Hello, have you encountered an error (even non-blocking) during the python3 setup.py install step ? Can you provide the value of $LANG ?

@fishy15
Copy link
Author

fishy15 commented Jun 4, 2020

It doesn't look like there are any errors when running the installation script. The value for $LANG is C.UTF-8

@fishy15
Copy link
Author

fishy15 commented Jul 14, 2020

Ah sorry, after returning back to work on this, it turns out that this was an issue with how I configured isolate.

@fishy15 fishy15 closed this as completed Jul 14, 2020
@lportemo
Copy link
Contributor

No problem :) good luck with camisole

@prologin prologin locked and limited conversation to collaborators Jul 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants