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

Build failed #23

Open
giveup opened this issue Sep 8, 2017 · 16 comments
Open

Build failed #23

giveup opened this issue Sep 8, 2017 · 16 comments

Comments

@giveup
Copy link

giveup commented Sep 8, 2017

devkit r47
boot9strap 632a441
pycryptodome (3.4.7)

arm-none-eabi-objcopy -S -O binary build/arm11.elf out/arm11.bin
Traceback (most recent call last):
File "build_boot9strap_firm.py", line 2, in
from Crypto.Cipher import AES
ImportError: No module named Crypto.Cipher
make: *** [boot9strap] Error 1

@Derek1199
Copy link

Do you have armips? You know that's required...right?

@giveup
Copy link
Author

giveup commented Sep 8, 2017

@Derek1199 Yes. armips Kingcom/armips@07853e5

@Derek1199
Copy link

Derek1199 commented Sep 8, 2017

Try pip install --upgrade pycryptodome

@Derek1199
Copy link

Also, try using latest commit of ctrulib.

@giveup
Copy link
Author

giveup commented Sep 8, 2017

@Derek1199 Thank you for the help. Every lib is up to date.

@Derek1199
Copy link

I forgot to ask. What OS are you using?

@giveup
Copy link
Author

giveup commented Sep 8, 2017

@Derek1199
macOS 10.12.6
Python 3.6.2

@Derek1199
Copy link

Then I don't know. I'll ask someone.

@Nemris
Copy link

Nemris commented Sep 13, 2017

@giveup

PyCryptodome may have been installed as Cryptodome and not Crypto, as per the notes concerning version 3.4.1 (and upper), available here. Try replacing from Crypto.Cipher import AES with from Cryptodome.Cipher import AES.

@giveup
Copy link
Author

giveup commented Sep 14, 2017

@DMSalesman Not working. same error.

@urherenow
Copy link

urherenow commented Sep 14, 2017

I personally haven't had much luck with Python 3.6. I have both 3.6 and 2.7 installed and just change my path whenever the need arises. I suggest installing Python 2.7 in a custom directory (ie. c:\Python27), change the python36 path to python27 in your environment variables, then install pycrypto, and this will build with no issues.

@ihaveamac
Copy link

ihaveamac commented Sep 14, 2017

make sure you're installing pycryptodome for the correct version that's being used. it sounds like it's installing for the wrong thing.

pip3 install pycryptodome
python3 build_boot9strap_firm.py

# or alternatively...
python3 -m pip install pycryptodome

replace 3 with 2 if you're using py2.

@giveup
Copy link
Author

giveup commented Sep 15, 2017

@ihaveamac
python3 boot9strap/build_boot9strap_firm.py Traceback (most recent call last): File "/boot9strap/build_boot9strap_firm.py", line 2, in <module> from Crypto.Cipher import AES ImportError: cannot import name 'AES'
I edit Makefile and replace python with python2,It works.Thank you for your help.

@urherenow
Copy link

urherenow commented Sep 19, 2017

I neither have python2 nor python3. I only have python.exe in both my Python27 and Python36 directories. With Python36 in my path, I installed pip3 install pycryptodome with no errors, but I still get the above error about "No module named Crypto". What am I doing wrong? Again, I have no issues with Python27 as my path with pycrypto installed.

@Derek1199
Copy link

Do pip install pycryptodome @urherenow

@urherenow
Copy link

Actually, I figured this out already. With Python3, pycryptodome is all I EVER tried using and it never worked. I had to use

pip3 install cryptography

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

5 participants