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

Error on npm project #78

Open
cosad3s opened this issue Apr 21, 2023 · 0 comments
Open

Error on npm project #78

cosad3s opened this issue Apr 21, 2023 · 0 comments

Comments

@cosad3s
Copy link

cosad3s commented Apr 21, 2023

Installed with pip3 install it-depends

Go to /my/npm/project then:

❯ it-depends
Traceback (most recent call last):                   
  File "/home/seb/.local/bin/it-depends", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/seb/.local/lib/python3.11/site-packages/it_depends/cli.py", line 176, in main
    package_list = resolve(
                   ^^^^^^^^
  File "/home/seb/.local/lib/python3.11/site-packages/it_depends/dependencies.py", line 844, in resolve
    source_package = resolver.resolve_from_source(repo_or_spec, cache=cache)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seb/.local/lib/python3.11/site-packages/it_depends/npm.py", line 29, in resolve_from_source
    return NPMResolver.from_package_json(repo)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seb/.local/lib/python3.11/site-packages/it_depends/npm.py", line 60, in from_package_json
    return SourcePackage(name, version, source_repo=source_repository,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seb/.local/lib/python3.11/site-packages/it_depends/dependencies.py", line 277, in __init__
    super().__init__(name=name, version=version, dependencies=dependencies,
  File "/home/seb/.local/lib/python3.11/site-packages/it_depends/dependencies.py", line 137, in __init__
    self.dependencies: FrozenSet[Dependency] = frozenset(dependencies)
                                               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/seb/.local/lib/python3.11/site-packages/it_depends/npm.py", line 62, in <genexpr>
    Dependency(package=dep_name, semantic_version=NPMResolver.parse_spec(dep_version), source="npm")
  File "/home/seb/.local/lib/python3.11/site-packages/it_depends/dependencies.py", line 63, in __init__
    assert(isinstance(semantic_version, SemanticVersion))
AssertionError
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