Skip to content

gy update traceback #1

@diego-rapoport

Description

@diego-rapoport

First I tried to run gy generate python javascript and said the folder was empty, that I should run gy update. So I did and got the current traceback:

@ gy update
updating archive folder  [##################------------------]   50%
Traceback (most recent call last):
  File "/home/dinhego/.virtualenvs/logistica/bin/gy", line 33, in <module>
    sys.exit(load_entry_point('gy==1.0.2', 'console_scripts', 'gy')())
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/click/core.py", line 1668, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/gy.py", line 116, in update
    exec ('{0}({1})'.format(t[0], t[1]))
  File "<string>", line 1, in <module>
  File "/home/dinhego/.virtualenvs/logistica/lib/python3.9/site-packages/gy.py", line 43, in _download_zip
    f.write(r.content)
TypeError: write() argument must be str, not bytes

I installed it on a venv. Could that be a problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions