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

Does not work on Python3.7 #9

Open
sobolevn opened this issue Jun 11, 2020 · 0 comments
Open

Does not work on Python3.7 #9

sobolevn opened this issue Jun 11, 2020 · 0 comments

Comments

@sobolevn
Copy link

sobolevn commented Jun 11, 2020

Source code I am trying to fix: https://gist.githubusercontent.com/sobolevn/f22c44f303746a82b49e2499036ec4ce/raw/530070984f867b79ccd441c03b63e361d628202a/views.py

Output:

» python -m star_destroyer ex.py

=== IMPORT MAPPINGS ===

=== ORIGINS USED ===
Traceback (most recent call last):
  File "/Users/sobolev/.pyenv/versions/3.7.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/sobolev/.pyenv/versions/3.7.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/sobolev/Documents/github/returns/.venv/lib/python3.7/site-packages/star_destroyer.py", line 376, in <module>
    edit(modules, import_map, usage_map, actually_write=False)
  File "/Users/sobolev/Documents/github/returns/.venv/lib/python3.7/site-packages/star_destroyer.py", line 335, in edit
    star_destroyer = StarDestroyer(import_map, usage_map)
  File "/Users/sobolev/Documents/github/returns/.venv/lib/python3.7/site-packages/star_destroyer.py", line 257, in __init__
    for modpath in usage_map.get_modpaths()))
TypeError: descriptor 'union' of 'set' object need
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