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

ValueError: pipupgrade -pip Failed to initialize project. #159

Open
darkstarworks opened this issue Sep 28, 2024 · 1 comment
Open

ValueError: pipupgrade -pip Failed to initialize project. #159

darkstarworks opened this issue Sep 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@darkstarworks
Copy link

darkstarworks commented Sep 28, 2024

Description

Upgrading pip $\to$ using $\to$ pipupgrade

system info
OS Name Windows 11 Pro
OS Version Build 22631
soft ware
$\large{\textsf{{\color{#ffde57}py}{\color{#4584b6}th}{\color{#646464}on~}}}$ $\normalsize{\textsf{{\color{#737373}~-v}}}$ 3.12.6
$\large{\textsf{{\color{#0073b7}pip~}}}$ $\normalsize{\textsf{{\color{#737373}~-v}}}$ 24.2

Command(s) used

pipupgrade -pip

Console output

PS C:\Users\darks> pipupgrade -pip
←[0;93mChecking...←[0m
←[0;1m←[0;91mpipupgrade | 2024-09-28 00:59:31,108 | ERROR | ←[0mFailed to initialize project for path C:\Users\darks\ip.

concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
  File "C:\Python312\Lib\concurrent\futures\process.py", line 263, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\concurrent\futures\process.py", line 212, in _process_chunk
    return [fn(*args) for args in chunk]
            ^^^^^^^^^
  File "C:\Python312\Lib\site-packages\pipupgrade\model\project.py", line 16, in from_path
    project = Project(path, *args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\pipupgrade\model\project.py", line 24, in __init__
    raise ValueError("Path %s does not exist." % path)
ValueError: Path C:\Users\darks\ip does not exist.
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Python312\Lib\site-packages\pipupgrade\commands\__init__.py", line 79, in command
    return _command(**ARGUMENTS)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\pipupgrade\commands\__init__.py", line 207, in _command
    requirements += flatten(map(lambda p: p.requirements, project))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\bpyutils\util\array.py", line 67, in flatten
    flattened = list(chainer(*arr))
                     ^^^^^^^^^^^^^
  File "C:\Python312\Lib\concurrent\futures\process.py", line 642, in _chain_from_iterable_of_lists
    for element in iterable:
                   ^^^^^^^^
  File "C:\Python312\Lib\concurrent\futures\_base.py", line 619, in result_iterator
    yield _result_or_cancel(fs.pop())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\concurrent\futures\_base.py", line 317, in _result_or_cancel
    return fut.result(timeout)
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\concurrent\futures\_base.py", line 456, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\concurrent\futures\_base.py", line 401, in __get_result
    raise self._exception
ValueError: Path C:\Users\darks\ip does not exist.

←[0;91mAn error occured while performing the above command. This could be an issue with
"pipupgrade". Kindly post an issue at https://github.com/achillesrasquinha/pipupgrade/issues←[0m

lines:
3 Failed to initialize project for path C:\Users\darks\ip.
48 ValueError: Path C:\Users\darks\ip does not exist.

@darkstarworks darkstarworks added the bug Something isn't working label Sep 28, 2024
@Stevenalenga
Copy link

uninstall in install pip again using the command
pip uninstall pipupgrade
pip install pipupgrade

check the directory is correct as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants