Skip to content

Trying to lock the Cuda version of PyTorch sends pipenv into what seems to be an infinite loop #5771

Closed
@mrakgr

Description

@mrakgr

Issue description

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[[source]]
url = "https://download.pytorch.org/whl/cu117/"
verify_ssl = true
name = "downloadpytorch"

[packages]
torch = {version = "==2.0.1", index = "downloadpytorch"}

[requires]
python_version = "3.11"

I can't get the above Pipfile to finish running when executing:

PS E:\Webdev\ML-take-home\ml-trainer> pipenv lock --clear
>>
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
[  ==] Locking...

It never goes past the locking stage no matter how long I wait. Deleting the cache manually made it work a bit better as it no longer seems to cause my entire PC to lag, but I can't get it to get to the part where it creates the lock file.


Please run $ pipenv --support, and paste the results here. Don't put backticks (`) around it! The output already contains Markdown formatting.

PS E:\Webdev\ML-take-home\ml-trainer> pipenv --support | clip
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\Marko\AppData\Roaming\Python\Python311\Scripts\pipenv.exe\__main__.py", line 7, in <module>
  File "C:\Users\Marko\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Marko\AppData\Roaming\Python\Python311\site-packages\pipenv\cli\options.py", line 58, in main
    return super().main(*args, **kwargs, windows_expand_args=False)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Marko\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Users\Marko\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\core.py", line 1635, in invoke
    rv = super().invoke(ctx)
         ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Marko\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Marko\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Marko\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Marko\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Marko\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Marko\AppData\Roaming\Python\Python311\site-packages\pipenv\cli\command.py", line 142, in cli
    get_pipenv_diagnostics(state.project)
  File "C:\Users\Marko\AppData\Roaming\Python\Python311\site-packages\pipenv\help.py", line 49, in get_pipenv_diagnostics
    print("Pipenv–specific environment variables:")
UnicodeEncodeError: 'cp932' codec can't encode character '\u2013' in position 6: illegal multibyte sequence

Anyway, I am running 2023.6.18 version of pipenv.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Question ❔This is a question or a request for support.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions