MatthewPierson / Vieux

Vieux - A tool for 32/64 Bit iOS downgrades using OTA Blobs
805 stars 146 forks source link

TypeError: can't multiply sequence by non-int of type 'str' three error total #240

Open inyourhear opened 3 years ago

inyourhear commented 3 years ago

Describe the issue REQUIRED - A clear and concise description of what the issue is and what you have already tried to fix the issue.

Screenshots REQUIRED - Add screenshots of ALL the terminal output, including the command.

ludeMacBook-Pro:Vieux-master lu$ ./vieux -i /Users/lu/Desktop/Vieux-master/iPad_64bit_10.3.3_14G60_Restore.ipsw

                                           /(//* /                         
                                        /(%@&/*((//*/                      
                                     (((((* %(&@@(*,///                    
                                   ((,((((((((/%%/,/(///                   
                                 ((((((((/*.((((////////**                 
                                (((((((((((((((((///////**.                
                                ((((((((((((((((//////*** .                
                                ((((((((((((((//*//(%#(/*..               
                                (((((((((((////** /%%#(* .                 
                                 (////////////**..##(/* ..                
                                *(/*******,,,,...,* ,...***.               
                               *(((&@@*.......*/***/////(//*////           
                           *** /((#@@@@@@@@@@@@@@@(///(((/**/*///          
                         #&(***/((%@@@@@@@@@@@@@@@(/((((// *****           
                        ((((%(*/((#@@@@@@@@@@@@@@@@((((//****              
                         (((((////(&@@@@@@@@@@@@@(((((//*,,,,           
                          ((((.//* %&&@@&&@@&((((////,.,,/((*          
                           (((/* **(%%&&&&&&&((((//**/** ((//            
                            (((((* ./##%%%%#((///**#&*******           
                             /((*      */(((/****/(((((#(**             
                                                 *(((((((              
                                                  (((((((*               
                                                 *((((((*                 
                                                   (((((                  

Vieux - A tool for 32/64 Bit OTA downgrades

Current version is: 1.0.1 If you are using a 64 Bit device then connect it in DFU Mode If you are using a 32 Bit device then just have it connected in NORMAL mode Files cleaned. /Users/lu/Desktop/Vieux-master/iPad_64bit_10.3.3_14G60_Restore.ipsw is a zip archive! Starting IPSW unzipping Continuing... IPSW found at given path... Cleaning up old files... Files cleaned. Unzipping.. Found: CPID:8960 CPRV:11 CPFM:03 SCEP:01 BDID:0A ECID:00000775F0673DF0 IBFL:1C SRTG:[iBoot-1704.10] Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/usb/core.py", line 1021, in ctrl_transfer buff = util.create_buffer(data_or_wLength) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/usb/util.py", line 162, in create_buffer return array.array('B', _dummy_s * length) TypeError: can't multiply sequence by non-int of type 'str'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/usb/_interop.py", line 92, in as_array return array.array('B', data) TypeError: cannot use a str to initialize an array with typecode 'B'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/lu/Desktop/Vieux-master/./vieux", line 89, in ipsw.unzipIPSW(argv[2]) File "/Users/lu/Desktop/Vieux-master/ipsw.py", line 153, in unzipIPSW pwndfumode() File "/Users/lu/Desktop/Vieux-master/restore.py", line 28, in pwndfumode runexploit = checkm8.exploit() File "/Users/lu/Desktop/Vieux-master/resources/ipwndfu/checkm8.py", line 535, in exploit libusb1_no_error_ctrl_transfer(device, 0, 0, 0, 0, 'A' * config.overwrite_offset, 10) File "/Users/lu/Desktop/Vieux-master/resources/ipwndfu/checkm8.py", line 49, in libusb1_no_error_ctrl_transfer device.ctrl_transfer(bmRequestType, bRequest, wValue, wIndex, data_or_wLength, timeout) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/usb/core.py", line 1023, in ctrl_transfer buff = _interop.as_array(data_or_wLength) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/usb/_interop.py", line 97, in as_array a.fromstring(data) # deprecated since 3.2 AttributeError: 'array.array' object has no attribute 'fromstring' Segmentation fault: 11 Computer (please complete the following information): REQUIRED -

iOS Device (please complete the following information): REQUIRED -

Additional context Add any other context about the issue here.

inyourhear commented 3 years ago

Hello, if you see my question, please give me your advice. Thank you

goodspb commented 2 years ago

you thought you were using python3.9, but actually you were using python3.8。here is what I do:

` brew install python@3.8

/usr/local/opt/python@3.8/bin/pip3 install -r requirements.txt

/usr/local/opt/python@3.8/bin/python3 vieux -i "PATH/XXX.ipsw" `