Nettacker icon indicating copy to clipboard operation
Nettacker copied to clipboard

Can't install Nettacker if Python interpreter is 3.13.1

Open q2dg opened this issue 1 year ago • 9 comments

Please describe the issue or question and share your OS and Python version.


OS: Fedora OS Version: 41 Python Version: 3.13.1

I get this error after running pipx install nettacker (as regular user)

Some possibly relevant errors from pip install: ERROR: Ignored the following versions that require a different python version: 0.3.1a10 Requires-Python >=3.9,<3.13; 0.3.1a11 Requires-Python >=3.9,<3.13; 0.3.1a12 Requires-Python >=3.9,<3.13; 0.3.1a13 Requires-Python >=3.9,<3.13; 0.3.1a15 Requires-Python >=3.9,<3.13; 0.3.1a16 Requires-Python >=3.9,<3.13; 0.3.1a17 Requires-Python >=3.9,<3.13; 0.3.1a2 Requires-Python >=3.9,<3.13; 0.3.1a3 Requires-Python >=3.9,<3.13; 0.3.1a4 Requires-Python >=3.9,<3.13; 0.3.1a5 Requires-Python >=3.9,<3.13; 0.3.1a6 Requires-Python >=3.9,<3.13; 0.3.1a7 Requires-Python >=3.9,<3.13; 0.3.1a8 Requires-Python >=3.9,<3.13; 0.3.1a9 Requires-Python >=3.9,<3.13; 0.4.0 Requires-Python <3.13,>=3.9 ERROR: Could not find a version that satisfies the requirement nettacker (from versions: none) ERROR: No matching distribution found for nettacker

q2dg avatar Dec 30 '24 16:12 q2dg

Hi @q2dg it is a known issue - Nettacker is currently not compatible with Python 3.13

Please use an older version of Python e.g. 3.12.6 or 3.11.11 (you can run several versions. of Python in parallel using something like pyenv) or use the Docker version.

securestep9 avatar Dec 31 '24 11:12 securestep9

Hi, Try to run it in a virtual environment with python 3.12 using pyenv. Works perfectly.

saltasatelites avatar Feb 13 '25 10:02 saltasatelites

Hi, I would like to help fix this issue.

zekeyeager-tech avatar Apr 01 '25 21:04 zekeyeager-tech

Hi @zekeyeager-tech - how exactly do you propose to fix this issue? Do you have the understanding of the differences and breaking changes between Python 3.11-3.12 and 3.13 which are impacting Nettacker and what are your proposed ways to resolve these challenges?

securestep9 avatar Apr 01 '25 21:04 securestep9

Hi, I would like to help fix this issue.

Hi @zekeyeager-tech - Virtual environments for running Python applications are the cleanest solution. You can run different versions of Python based on the requirements of each application, without compromising the stability of your system.

saltasatelites avatar Apr 02 '25 07:04 saltasatelites

Hi @zekeyeager-tech - how exactly do you propose to fix this issue? Do you have the understanding of the differences and breaking changes between Python 3.11-3.12 and 3.13 which are impacting Nettacker and what are your proposed ways to resolve these challenges?

The issues with Nettacker in Python 3.13 may arise from breaking changes in locals() behavior and the removal of deprecated modules. Notably, the "pyproject.toml" specifies [tool.poetry.dependencies] python = "^3.9, <3.13", which indicates that it hasn't accounted for Python 3.13 compatibility.

I suggest reviewing and updating the dependencies in the "pyproject.toml" file to ensure they work with Python 3.13.

zekeyeager-tech avatar Apr 02 '25 17:04 zekeyeager-tech

Hi everyone, I’ve addressed the Python 3.13 compatibility issues and submitted a fix in PR #1055. The necessary updates, including changes to dependencies in pyproject.toml, have been implemented. Let me know if there’s anything else that needs adjustment. Looking forward to your feedback!

gitbibekmishra avatar Apr 02 '25 19:04 gitbibekmishra

Hi everyone, I’ve addressed the Python 3.13 compatibility issues and submitted a fix in PR #1055. The necessary updates, including changes to dependencies in pyproject.toml, have been implemented. Let me know if there’s anything else that needs adjustment. Looking forward to your feedback!

Hi @gitbibekmishra - how did you change the dependencies in pyproject.toml? I did notice the issue, but fell into an error while testing it.

zekeyeager-tech avatar Apr 02 '25 19:04 zekeyeager-tech

Hi @zekeyeager-tech, thanks for checking it out! I updated the dependencies in pyproject.toml to ensure compatibility with Python 3.13. Could you share the specific error you encountered while testing? I’d be happy to help debug and resolve it.

gitbibekmishra avatar Apr 03 '25 06:04 gitbibekmishra