problem phy2 and 'utf-8' after update

15 views
Skip to first unread message

Mattia D'Andola

unread,
Jan 24, 2020, 8:19:55 AM1/24/20
to phy-users
Hi,

in the attempt of solving a reclustering problem, I updated my phy2 environment, and since then I get a codec error. For every .kwik file I try to open, I get the error reported below.
A note: All the file where already successfully opened at least once with the previous version.
Any idea on how to solve this?

thank you,
Mattia

13:59:06.411 [E] __init__:62          An error has occurred (UnicodeDecodeError): 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
Traceback (most recent call last):
  File "/home/takeokalab/anaconda3/envs/phy2/bin/phy", line 8, in <module>
    sys.exit(phycli())
  File "/home/takeokalab/anaconda3/envs/phy2/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/takeokalab/anaconda3/envs/phy2/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/takeokalab/anaconda3/envs/phy2/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/takeokalab/anaconda3/envs/phy2/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/takeokalab/anaconda3/envs/phy2/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/takeokalab/anaconda3/envs/phy2/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/takeokalab/anaconda3/envs/phy2/lib/python3.7/site-packages/phy/apps/__init__.py", line 158, in cli_template_gui
    template_gui(params_path, **kwargs)
  File "/home/takeokalab/anaconda3/envs/phy2/lib/python3.7/site-packages/phy/apps/template/gui.py", line 199, in template_gui
    controller = TemplateController(model=load_model(params_path), dir_path=dir_path, **kwargs)
  File "/home/takeokalab/anaconda3/envs/phy2/lib/python3.7/site-packages/phylib/io/model.py", line 1181, in load_model
    return TemplateModel(**get_template_params(params_path))
  File "/home/takeokalab/anaconda3/envs/phy2/lib/python3.7/site-packages/phylib/io/model.py", line 1164, in get_template_params
    params = read_python(params_path)
  File "/home/takeokalab/anaconda3/envs/phy2/lib/python3.7/site-packages/phylib/utils/_misc.py", line 171, in read_python
    contents = path.read_text()
  File "/home/takeokalab/anaconda3/envs/phy2/lib/python3.7/pathlib.py", line 1217, in read_text
    return f.read()
  File "/home/takeokalab/anaconda3/envs/phy2/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte


Cyrille Rossant

unread,
Jan 24, 2020, 8:21:42 AM1/24/20
to Mattia D'Andola, phy-users
Hi
Do you use "phy kwik-gui myfile.kwik" to open the Kwik GUI? This error message seems to indicate that it tries to open the template GUI instead.
Cyrille


--
You received this message because you are subscribed to the Google Groups "phy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phy-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/phy-users/45a53a92-88d7-406f-806f-bc5c73af4ead%40googlegroups.com.

Mattia D'Andola

unread,
Jan 24, 2020, 8:32:14 AM1/24/20
to phy-users
kwik-gui works, thanks for the help.

Il giorno venerdì 24 gennaio 2020 14:21:42 UTC+1, Cyrille Rossant ha scritto:
Hi
Do you use "phy kwik-gui myfile.kwik" to open the Kwik GUI? This error message seems to indicate that it tries to open the template GUI instead.
Cyrille


To unsubscribe from this group and stop receiving emails from it, send an email to phy-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages