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

Update utils.py #191

Closed
wants to merge 0 commits into from
Closed

Update utils.py #191

wants to merge 0 commits into from

Conversation

huakim
Copy link
Contributor

@huakim huakim commented Mar 21, 2024

Fix for Traceback (most recent call last):

  File "/bin/py2pack", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/py2pack/__init__.py", line 506, in main
    args.func(args)
  File "/usr/lib/python3.11/site-packages/py2pack/__init__.py", line 375, in generate
    _augment_data_from_tarball(args, tarball_file, data)
  File "/usr/lib/python3.11/site-packages/py2pack/__init__.py", line 276, in _augment_data_from_tarball
    _canonicalize_setup_data(data)
  File "/usr/lib/python3.11/site-packages/py2pack/__init__.py", line 225, in _canonicalize_setup_data
    console_scripts = get_setuptools_scripts(data)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/py2pack/utils.py", line 136, in get_setuptools_scripts
    scripts = (list(eps.select(group="console_scripts").names) +
                    ^^^
UnboundLocalError: cannot access local variable 'eps' where it is not associated with a value

@huakim huakim closed this Mar 21, 2024
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

Successfully merging this pull request may close these issues.

1 participant