Skip to content

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 510: ordinal not in range(128) #15

@BioComSoftware

Description

@BioComSoftware

Upon starting apache2 on carina-dev, and attempting to access the website, access failed with an error (in /var/log/apache2/error.log) as follows:

Fri Jan 19 13:48:04.425583 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512] mod_wsgi (pid=25443): Target WSGI script '/home/carina/webdorina/webdorina/webdorina.wsgi' cannot be loaded as Python module.
[Fri Jan 19 13:48:04.425711 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512] mod_wsgi (pid=25443): Exception occurred processing WSGI script '/home/carina/webdorina/webdorina/webdorina.wsgi'.
[Fri Jan 19 13:48:04.425785 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512] Traceback (most recent call last):
[Fri Jan 19 13:48:04.426417 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]   File "/home/carina/webdorina/webdorina/webdorina.wsgi", line 16, in <module>
[Fri Jan 19 13:48:04.426475 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]     from webdorina.app import app as application
[Fri Jan 19 13:48:04.426937 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]   File "/home/carina/webdorina/webdorina/app.py", line 41, in <module>
[Fri Jan 19 13:48:04.426997 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]     Regulator.init(app.config['DATA_PATH'])
[Fri Jan 19 13:48:04.427659 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]   File "/usr/local/lib/python3.4/dist-packages/dorina/regulator.py", line 65, in init
[Fri Jan 19 13:48:04.427722 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]     parse_func)
[Fri Jan 19 13:48:04.427957 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]   File "/usr/local/lib/python3.4/dist-packages/dorina/utils.py", line 33, in walk_assembly_tree
[Fri Jan 19 13:48:04.428087 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]     species_dict[assembly] = parse_func(assembly_path)
[Fri Jan 19 13:48:04.428151 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]   File "/usr/local/lib/python3.4/dist-packages/dorina/regulator.py", line 55, in parse_func
[Fri Jan 19 13:48:04.428304 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]     experiments = parse_experiment(experiment_path)
[Fri Jan 19 13:48:04.428372 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]   File "/usr/local/lib/python3.4/dist-packages/dorina/regulator.py", line 32, in parse_experiment
[Fri Jan 19 13:48:04.428718 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]     return json.load(fh)
[Fri Jan 19 13:48:04.429431 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]   File "/usr/lib/python3.4/json/__init__.py", line 265, in load
[Fri Jan 19 13:48:04.429514 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]     return loads(fp.read(),
[Fri Jan 19 13:48:04.429729 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]   File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
[Fri Jan 19 13:48:04.429855 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512]     return codecs.ascii_decode(input, self.errors)[0]
[Fri Jan 19 13:48:04.429918 2018] [wsgi:error] [pid 25443:tid 140426388211456] [remote 129.206.148.116:512] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 510: ordinal not in range(128)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions