Open glego opened 1 year ago
PY3.11.0 worked fine for me on a fedora based system
Running setup.py install for future ... done
Successfully installed bcrypt-4.0.1 cffi-1.15.1 cryptography-41.0.3 future-0.18.3 netmiko-4.2.0 ntc-templates-3.5.0 paramiko-3.3.1 pycparser-2.21 pynacl-1.5.0 pyserial-3.5 pyyaml-6.0.1 scp-0.14.5 six-1.16.0 textfsm-1.1.3
The src.future
referenced above exists--so it looks like an environment issue on your side.
https://github.com/PythonCharmers/python-future/tree/v0.18.3/src
What version of setuptools are you using?
I tested with both the setuptools versions below:
65.5.0
68.1.2
Hi @ktbyers
I've tested it on a windows 11 OS which a fresh (embedded) python evironment 3.11.4. The versions can be retrieved from the log output above. When using the Python installer, i also dont have any issues...
Using cached pip-23.2.1-py3-none-any.whl (2.1 MB)
Using cached setuptools-68.0.0-py3-none-any.whl (804 kB)
Using cached wheel-0.41.1-py3-none-any.whl (64 kB)
My guess is that it is related to this step:
Modify the python311._pth to ensure the site-packages directory is considered.
There is a good chance that future
is the only library that doesn't have a wheel
file and for some reason that is tripping you up. Note, future does this:
https://github.com/PythonCharmers/python-future/blob/master/setup.py#L177
I wonder if that is causing a conflict with what you are trying to do.
I wonder if can build a wheel for future and just download/install that?
Thanks for the direction, i'll have a look and report back
Overview
I encountered an error while attempting to install
netmiko
using pip on the embedded Python versionpython-3.11.4-embed-amd64
.Key Notes
future
package, as indicated by the error traceback.pip
, but from a subprocess during the package's metadata generation.Reproduction Steps
The script named
python-embed-future-issue.ps1
performs the following:Python 3.11.4
embedded binaries.pip
.python311._pth
to ensure the site-packages directory is considered.netmiko
using the commandpython.exe -m pip install netmiko
.Script content
Output from the script execution:
Attempts to fix
Update PIP and Setup Tools
References