-
Notifications
You must be signed in to change notification settings - Fork 2
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
facing the error while installing the 'requirements.txt' #57
Comments
Hi. Could you please give the full output so I can see the root cause? Also, what operating system and version are you using? |
Hello, I am using the windows 11 and running the commands in VS Code. Building wheel for python-pkcs11 (setup.py) ... error × python setup.py bdist_wheel did not run successfully.
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section' note: This error originates from a subprocess, and is likely not a problem with pip. |
Thanks @pmamkh . This is a problem with python-pkcs11 0.7.0 itself: pyauth/python-pkcs11#159. There is no newer version available. Consequently, there is not really anything that can be done in this certificate rotator project. Apart from perhaps adding a note to the README recommending Python 3.9 if your developer machine is Windows. Greengrass itself doesn't support HSMs on Windows devices. The only reason to install python-pkcs11 on a Windows box is if you want to fork and develop this project on a Windows host machine, but deploy the component to Linux devices. Your best workaround option would be to use Python 3.9 on your Windows machine. |
Thanks @gregbreen for the information. I have published this certificate rotator component to one of dev account. I am trying to deploy it in one of edge device which i have. so my first query is, as you have mentioned earlier i should install python 3.9 but where should i install it in edge device or in virtual enviornment? Second query is, Component deployment gets fail when i deploy it to edge device. I am getting below error while deploy the component. Below is the content of component log file which generates in edge device (greengrass/v2/logs directory). 2024-06-26T08:38:02.018Z [INFO] (pool-2-thread-41) aws.greengrass.labs.CertificateRotator: shell-runner-start. {scriptName=services.aws.greengrass.labs.CertificateRotator.lifecycle.Install.Script, serviceName=aws.greengrass.labs.CertificateRotator, currentState=NEW, command=["echo Creating virtual environment\npython3 -m venv venv\necho Activating virtual..."]} |
Hi @pmamkh .
On your Windows machine that you're using for development. That's where you're getting the error when running
What is your edge device and what version of Python does it have? I'm pretty sure that it's Python 3.6. The awsiotsdk dropped support for Python 3.6 in release 1.11.10: https://github.com/aws/aws-iot-device-sdk-python-v2/releases/tag/v1.11.10. Which I think is why the maximum version available to your device is 1.11.9. Per the readme, your device needs at least Python 3.8 to be able to install and run the certificate rotator component: https://github.com/awslabs/aws-greengrass-labs-certificate-rotator/tree/main?tab=readme-ov-file#python-requirements |
No repo changes necessary. Closing. |
Hi,
I am getting the error while installing the 'requirements.txt'. It is related to python-pkcs11 packages.
I am running all the command in VS Code.
Error is as below:
Failed to build python-pkcs11
ERROR: Could not build wheels for python-pkcs11, which is required to install pyproject.toml-based projects
I tried all the way to resolve this issue but unfortunately no any succes.
The text was updated successfully, but these errors were encountered: