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

[BUG] #303

Closed
mobahrawey opened this issue Oct 12, 2024 · 4 comments
Closed

[BUG] #303

mobahrawey opened this issue Oct 12, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@mobahrawey
Copy link

Description

Am trying to run posh or posh-server but am getting error "Exception: Wheel for pip for Python 3.12 is unavailable. apt install python3-pip-whl"

While tried to install it and found that already have the latest version

sudo apt install python3-pip-whl
python3-pip-whl is already the newest version (24.2+dfsg-1).
python3-pip-whl set to manually installed.
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 1754

Execution Environment:

Python version is 3.12
wheel version is 24.2
OS version kali 2022.3

Full error details:

POCHC2<<<<<<<<<<<<<<<<<
posh-server
Creating a virtualenv for this project...
Pipfile: /home/bahr/Downloads/PoshC2/Pipfile
Using default python from /usr/bin/python3 (3.12.6) to create virtualenv...
fail
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 84, in _get
result = get_wheel(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 26, in get_wheel
wheel = from_bundle(distribution, version, for_py_version, search_dirs, app_data, do_periodic_update, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 13, in from_bundle
wheel = load_embed_wheel(app_data, distribution, for_py_version, of_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 33, in load_embed_wheel
wheel = get_embed_wheel(distribution, for_py_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/embed/init.py", line 77, in get_embed_wheel
raise Exception((
Exception: Wheel for pip for Python 3.12 is unavailable. apt install python3-pip-whl
fail
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 84, in _get
result = get_wheel(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 26, in get_wheel
wheel = from_bundle(distribution, version, for_py_version, search_dirs, app_data, do_periodic_update, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 13, in from_bundle
wheel = load_embed_wheel(app_data, distribution, for_py_version, of_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 33, in load_embed_wheel
wheel = get_embed_wheel(distribution, for_py_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/embed/init.py", line 77, in get_embed_wheel
raise Exception((
Exception: Wheel for setuptools for Python 3.12 is unavailable. apt install python3-setuptools-whl
fail
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 84, in _get
result = get_wheel(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 26, in get_wheel
wheel = from_bundle(distribution, version, for_py_version, search_dirs, app_data, do_periodic_update, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 13, in from_bundle
wheel = load_embed_wheel(app_data, distribution, for_py_version, of_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 33, in load_embed_wheel
wheel = get_embed_wheel(distribution, for_py_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/embed/init.py", line 77, in get_embed_wheel
raise Exception((
Exception: Wheel for wheel for Python 3.12 is unavailable. apt install python3-wheel-whl
fail
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 84, in _get
result = get_wheel(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 30, in get_wheel
wheel = download_wheel(
^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 65, in download_wheel
env = pip_wheel_env_run(search_dirs, app_data, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 115, in pip_wheel_env_run
wheel = get_wheel(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 26, in get_wheel
wheel = from_bundle(distribution, version, for_py_version, search_dirs, app_data, do_periodic_update, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 13, in from_bundle
wheel = load_embed_wheel(app_data, distribution, for_py_version, of_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 33, in load_embed_wheel
wheel = get_embed_wheel(distribution, for_py_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/embed/init.py", line 77, in get_embed_wheel
raise Exception((
Exception: Wheel for pip for Python 3.12 is unavailable. apt install python3-pip-whl
fail
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 84, in _get
result = get_wheel(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 30, in get_wheel
wheel = download_wheel(
^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 65, in download_wheel
env = pip_wheel_env_run(search_dirs, app_data, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 115, in pip_wheel_env_run
wheel = get_wheel(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 26, in get_wheel
wheel = from_bundle(distribution, version, for_py_version, search_dirs, app_data, do_periodic_update, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 13, in from_bundle
wheel = load_embed_wheel(app_data, distribution, for_py_version, of_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 33, in load_embed_wheel
wheel = get_embed_wheel(distribution, for_py_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/embed/init.py", line 77, in get_embed_wheel
raise Exception((
Exception: Wheel for pip for Python 3.12 is unavailable. apt install python3-pip-whl
fail
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 84, in _get
result = get_wheel(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 30, in get_wheel
wheel = download_wheel(
^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 65, in download_wheel
env = pip_wheel_env_run(search_dirs, app_data, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 115, in pip_wheel_env_run
wheel = get_wheel(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 26, in get_wheel
wheel = from_bundle(distribution, version, for_py_version, search_dirs, app_data, do_periodic_update, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 13, in from_bundle
wheel = load_embed_wheel(app_data, distribution, for_py_version, of_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 33, in load_embed_wheel
wheel = get_embed_wheel(distribution, for_py_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/embed/init.py", line 77, in get_embed_wheel
raise Exception((
Exception: Wheel for pip for Python 3.12 is unavailable. apt install python3-pip-whl
Exception('Wheel for pip for Python 3.12 is unavailable. apt install python3-pip-whl')
Exception('Wheel for pip for Python 3.12 is unavailable. apt install python3-pip-whl')
Exception('Wheel for pip for Python 3.12 is unavailable. apt install python3-pip-whl')
RuntimeError: seed failed due to failing to download wheels pip, setuptools, wheel

✘ Failed creating virtual environment
[pipenv.exceptions.VirtualenvCreationException]:
Failed to create virtual environment.

┌──(bahr㉿kali)-[~]
└─$ sudo apt install python3-pip-whl
python3-pip-whl is already the newest version (24.2+dfsg-1).
python3-pip-whl set to manually installed.
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 1754

@mobahrawey mobahrawey added the bug Something isn't working label Oct 12, 2024
@benpturner
Copy link
Contributor

Posh installs an externally_managed pip env. Can you send the output of your installation. I bet it hasn’t installed the python env until you remove the EXTERNALLY_MANAGED file from python3.12 directory

@benpturner benpturner self-assigned this Oct 13, 2024
@benpturner
Copy link
Contributor

#286

@mobahrawey
Copy link
Author

It worked after removing externally managed and reinstall it like the following link #286
Thank you

@mobahrawey
Copy link
Author

Thanks

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

2 participants