Closed D-Edward-Scott closed 2 months ago
Hello @D-Edward-Scott
Thanks for bringing up this issue, this is due to Python 3.12 removing support for setuptools
and wheel
inside their virtual environment. (https://docs.python.org/3/library/venv.html)
The fix would be the following:
1) Create a new venv python3 -m venv venv
2) Activate the venv by: source venv/bin/activate
3) Install setuptools
and wheel
in the venv: pip install setuptools
and pip install wheel
If your using a requirements.txt
you can also add these two inside their as well. This should fix the issue, let me know if you have any other troubles!
In case anyone else lands on this like I did, I'd like to point out a typo: run pip install wheel
, not wheels
. Thanks though @MOmarMiraj because this was also necessary for me on Python 3.10.0.
Edited it in my original response, thanks for the catch and glad I could help!
Meanwhile, should the onepassword
package declare explicit dependencies on setuptools
and wheel
? Would that make this special instruction unnecessary?
Meanwhile, should the
onepassword
package declare explicit dependencies onsetuptools
andwheel
? Would that make this special instruction unnecessary?
I agree or atleast add these steps to the Get started section.
Thanks for the great suggestion @abbeycode and @jcphlux. I hear you guys as this is quite important and I will bring this information back to the team and we can determine the best possible way to go about this dependencies for the Python SDK.
I will close this issue for now and feel free to re-open if there is any more issues with this.
Running Mac OSX, M3 Pro, Sonoma 14.5.
Python version: 3.12.3
I have tried both installing the module using pip git+https and by downloading and running "python setup.py install". Both fail to produce functional results.
This used to work on my machine prior, closer to the first release.
Response from "pip install git+https://git@github.com/1Password/onepassword-sdk-python.git@v0.1.0-beta.9":
When running "python setup.py install" locally:
it installs "successfully" but when running scripts it fails:
I have also tried running in multiple containers to the same results, will try on an x86 machine tomorrow.
Any and all insights are appreciated.
Thank you.