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

Local package query fails #121

Open
virtuald opened this issue Nov 21, 2024 · 0 comments
Open

Local package query fails #121

virtuald opened this issue Nov 21, 2024 · 0 comments

Comments

@virtuald
Copy link
Member

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\CTRE\AppData\Local\Programs\Python\Python312\Lib\site-packages\robotpy\__main__.py", line 4, in <module>
    main()
  File "C:\Users\CTRE\AppData\Local\Programs\Python\Python312\Lib\site-packages\robotpy\main.py", line 314, in main
    retval = subcommand.run(**kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\CTRE\AppData\Local\Programs\Python\Python312\Lib\site-packages\robotpy_installer\utils.py", line 188, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\CTRE\AppData\Local\Programs\Python\Python312\Lib\site-packages\robotpy_installer\cli_deploy.py", line 224, in run
    requirements_met, desc = project.are_local_requirements_met()
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\CTRE\AppData\Local\Programs\Python\Python312\Lib\site-packages\robotpy_installer\pyproject.py", line 99, in are_local_requirements_met
    pypackages.get_local_packages(), {}, pypackages.extra_resolver_local
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\CTRE\AppData\Local\Programs\Python\Python312\Lib\site-packages\robotpy_installer\pypackages.py", line 151, in get_local_packages
    canonicalize_name(dist.metadata["Name"]): [Version(dist.version)]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\CTRE\AppData\Local\Programs\Python\Python312\Lib\site-packages\packaging\utils.py", line 47, in canonicalize_name
    value = _canonicalize_regex.sub("-", name).lower()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'
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