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

requirements on Windows in September 2024 ? #7

Open
amlynnworth opened this issue Sep 6, 2024 · 4 comments
Open

requirements on Windows in September 2024 ? #7

amlynnworth opened this issue Sep 6, 2024 · 4 comments

Comments

@amlynnworth
Copy link

ModuleNotFoundError
urllib3.packages.six.moves

I am getting this error when running the aws-kms-sign-csr.py script: ModuleNotFoundError: No module named 'urllib3.packages.six.moves'

This is on Windows 10 where inside the activated cmd prompt

python3 --version
reports Python 3.12.5
pip3 --version
reports pip 24.2 from D:\Projects\CodeSign_Year2024\aws-kms-sign-csr\Lib\site-packages\pip (python 3.12)

I was able to setup the virtualenv, activate, and install the requirements.

I added a Windows setting to connect to the top of the site-packages tree.
set pythonpath=D:\Projects\CodeSign_Year2024\aws-kms-sign-csr\Lib\site-packages

Under site-packages, I have this file, "aws-kms-sign-csr\Lib\site-packages\urllib3\packages\six.py".

Is there any chance that the requirements.txt file needs to be updated or that aws-kms-sign-csr.py needs to run from an earlier version of python?

I am very new to python and could be making any newbie mistake. Advice would be very welcome. I am extremely keen to make this work.

@amlynnworth amlynnworth changed the title version requirements in September 2024 ? version requirements on Windows in September 2024 ? Sep 6, 2024
@amlynnworth amlynnworth changed the title version requirements on Windows in September 2024 ? requirements on Windows in September 2024 ? Sep 6, 2024
@amlynnworth
Copy link
Author

I tried with
pip 21.2.3 from D:\Projects\CodeSign_Year2024\aws-kms-sign-csr\Lib\site-packages\pip (python 3.10)

and that gets further but still errors out with
pyasn1.error.SubstrateUnderrunError: Short octet stream on tag decoding

@g-a-d
Copy link
Owner

g-a-d commented Oct 1, 2024

Hi @amlynnworth , sorry I just spotted this. I'll take a look and see if I can get to the bottom of it.

@g-a-d
Copy link
Owner

g-a-d commented Oct 1, 2024

Hi @amlynnworth , looks like the boto3 requirement was too out-of-date for python3.12. I've pushed another branch 7-python3.12 - can you try it out on your environment and see if it works? Thanks!
(for clarity, run pip install -r requirements.txt --upgrade once you've checked the branch out)

@AlexTMjugador
Copy link

Hello @g-a-d, I've just been affected by this issue as well, but on a Linux environment. I can confirm that setting up a venv using the 7-python3.12 branch and pip install -r requirements.txt works well to run this tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants