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

gy update traceback #1

Open
diego-rapoport opened this issue Jul 27, 2021 · 0 comments
Open

gy update traceback #1

diego-rapoport opened this issue Jul 27, 2021 · 0 comments

Comments

@diego-rapoport
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant