boot9strap icon indicating copy to clipboard operation
boot9strap copied to clipboard

Build failed

Open giveup opened this issue 7 years ago • 16 comments

devkit r47 boot9strap https://github.com/SciresM/boot9strap/commit/632a441621a1b6c19dcbc207c54de4b2f97856b4 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

giveup avatar Sep 08 '17 09:09 giveup

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

Derek1199 avatar Sep 08 '17 15:09 Derek1199

@Derek1199 Yes. armips https://github.com/Kingcom/armips/commit/07853e5bbdab1914168a00c1b736d2f7cd898942

giveup avatar Sep 08 '17 15:09 giveup

Try pip install --upgrade pycryptodome

Derek1199 avatar Sep 08 '17 15:09 Derek1199

Also, try using latest commit of ctrulib.

Derek1199 avatar Sep 08 '17 16:09 Derek1199

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

giveup avatar Sep 08 '17 16:09 giveup

I forgot to ask. What OS are you using?

Derek1199 avatar Sep 08 '17 16:09 Derek1199

@Derek1199 macOS 10.12.6
Python 3.6.2

giveup avatar Sep 08 '17 16:09 giveup

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

Derek1199 avatar Sep 08 '17 16:09 Derek1199

@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.

Nemris avatar Sep 13 '17 18:09 Nemris

@DMSalesman Not working. same error.

giveup avatar Sep 14 '17 05:09 giveup

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.

urherenow avatar Sep 14 '17 12:09 urherenow

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.

ihaveamac avatar Sep 14 '17 19:09 ihaveamac

@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.

giveup avatar Sep 15 '17 03:09 giveup

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.

urherenow avatar Sep 19 '17 10:09 urherenow

Do pip install pycryptodome @urherenow

Derek1199 avatar Sep 26 '17 20:09 Derek1199

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

urherenow avatar Sep 26 '17 22:09 urherenow