0

My pipfile contains multiple packages such as:

[packages]
flask = "==2.2.1"
flask_cors = "==3.0.10"
mymodule = {ref = "0.2.4", git = "https://github.com/myorg/mymodule-new.git"}  

However, this results in Could not determine package name from error.

File "/home/user1/.local/lib/python3.11/site-packages/pipenv/utils/resolver.py", line 206, in create
    package_name = determine_package_name(install_req)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user1/.local/lib/python3.11/site-packages/pipenv/utils/dependencies.py", line 745, in determine_package_name
    raise ValueError(f"Could not determine package name from {package}")
ValueError: Could not determine package name from git+https://github.com/myorg/mymodule-new.git@0.2.4
✘ Locking Failed!
⠇ Locking...
Traceback (most recent call last):

The error being thrown from here as the package path I have given doesn't meet any given conditions. However, I am not sure what's wrong in syntax of my pipfile.

cat ~/.gitconfig
[url "https://[MyToken]@github.com"]
        insteadOf = https://github.com
halfer
  • 19,824
  • 17
  • 99
  • 186
Maven
  • 14,587
  • 42
  • 113
  • 174

0 Answers0