Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Dylib not loaded #42

Closed
arandomusernam opened this issue Nov 4, 2021 · 12 comments
Closed

Dylib not loaded #42

arandomusernam opened this issue Nov 4, 2021 · 12 comments

Comments

@arandomusernam
Copy link

I can't figure out what dependancy this is:
/opt/local/lib/libreadline.8.dylib
Any help would be appreciated
Thanks :)

@vadimszzz
Copy link

Full log please.

@vadimszzz
Copy link

vadimszzz commented Nov 4, 2021

If error occurs in my fork you must open issue in my fork. Looks like issue with portable binaries that I provided.

@arandomusernam
Copy link
Author

Ok Thanks. I'll open an issue over there. :)

@arandomusernam
Copy link
Author

I can't open an issue over there, there is nowhere to open the issue. I think that this is missing some dependancies, I ran the command to install the dependencies, but some are still missing(I think, I don't know for sure.) Full log here:

./bundlegen -d iPhone9,4 -i 11.4.1
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/xdelta3/version.py:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.version import StrictVersion
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/urllib3/util/ssl_.py:260: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
context = SSLContext(ssl_version or PROTOCOL_TLS)
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/urllib3/connection.py:407: DeprecationWarning: ssl.match_hostname() is deprecated
match_hostname(cert, asserted_hostname)
Creating Firmware Bundle for iPhone9,4, iOS 11.4.1
[1] Grabbing decryption keys...
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/urllib3/util/ssl_.py:260: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
context = SSLContext(ssl_version or PROTOCOL_TLS)
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/urllib3/connection.py:407: DeprecationWarning: ssl.match_hostname() is deprecated
match_hostname(cert, asserted_hostname)
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/urllib3/connection.py:407: DeprecationWarning: ssl.match_hostname() is deprecated
match_hostname(cert, asserted_hostname)
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/urllib3/connection.py:407: DeprecationWarning: ssl.match_hostname() is deprecated
match_hostname(cert, asserted_hostname)
[2] Patching bootchain...
Traceback (most recent call last):
File "/Users/tobinredekop/Downloads/Inferius-master 2/./bundlegen", line 412, in
main()
File "/Users/tobinredekop/Downloads/Inferius-master 2/./bundlegen", line 296, in main
delta.write(xdelta3.encode(original.read(), new_file.read()))
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/xdelta3/main.py", line 89, in encode
return _xdelta3.execute(new_value, original, flags, 0)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

@vadimszzz
Copy link

vadimszzz commented Nov 5, 2021

I don't see dylib problems, it was my bad that I didn't provide dylib for something. Looks like you already installed all dependencies, nice!

Now the problem is in xdelta3 library. It's outdated. To fix this problem please use only Python 3.9.0, not 3.10.

I already fixed this library but the author sent me fuck and he don't want to merge PR samuelcolvin/xdelta3-python#13

@arandomusernam
Copy link
Author

arandomusernam commented Nov 5, 2021

Thanks for the reply! I uninstalled Python 3.10 and installed Python 3.9.0, and I'm still getting the same error. Log:

Restoring custom IPSW
dyld: Library not loaded: /opt/local/lib/libreadline.8.dylib
Referenced from: /Users/tobinredekop/Downloads/Inferius-master 2/./bin/irecovery
Reason: image not found
[ERROR] Device in DFU mode not found. Exiting.

Although now I'm trying to restore a custom IPSW instead of create a bundle, so maybe I'm doing something wrong...

EDIT:

I just tried creating a bundle using bundlegen, the out put looks the same as before...

./bundlegen -d iPhone9,4 -i 11.4.1
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/xdelta3/version.py:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.version import StrictVersion
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/urllib3/util/ssl_.py:260: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
context = SSLContext(ssl_version or PROTOCOL_TLS)
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/urllib3/connection.py:407: DeprecationWarning: ssl.match_hostname() is deprecated
match_hostname(cert, asserted_hostname)
Creating Firmware Bundle for iPhone9,4, iOS 11.4.1
[1] Grabbing decryption keys...
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/urllib3/util/ssl_.py:260: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
context = SSLContext(ssl_version or PROTOCOL_TLS)
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/urllib3/connection.py:407: DeprecationWarning: ssl.match_hostname() is deprecated
match_hostname(cert, asserted_hostname)
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/urllib3/connection.py:407: DeprecationWarning: ssl.match_hostname() is deprecated
match_hostname(cert, asserted_hostname)
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/urllib3/connection.py:407: DeprecationWarning: ssl.match_hostname() is deprecated
match_hostname(cert, asserted_hostname)
[2] Patching bootchain...
Traceback (most recent call last):
File "/Users/tobinredekop/Downloads/Inferius-master 2/./bundlegen", line 412, in
main()
File "/Users/tobinredekop/Downloads/Inferius-master 2/./bundlegen", line 296, in main
delta.write(xdelta3.encode(original.read(), new_file.read()))
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/xdelta3/main.py", line 89, in encode
return _xdelta3.execute(new_value, original, flags, 0)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

Never mind, just looked at the log and realized it's still trying to use Python 3.10 for some reason... Will try to comletely uninstall...

@arandomusernam
Copy link
Author

There! Uninstalled Python 3.10, and tried again. This time it gave me another module not found error. Log:

./bundlegen -d iPhone9,4 -i 11.4.1
Traceback (most recent call last):
File "/Users/tobinredekop/Downloads/Inferius-master 2/./bundlegen", line 4, in
from mwclient import Site
ModuleNotFoundError: No module named 'mwclient'

@vadimszzz
Copy link

vadimszzz commented Nov 5, 2021

pip3 install -r requirements.txt

@arandomusernam
Copy link
Author

Sorry, I thought that I had installed the dependencies. Thanks for the fix :).

@arandomusernam
Copy link
Author

arandomusernam commented Nov 6, 2021

It still says that I am missing libreadline.8.dylib.

EDIT: I did a bunch of research online about libreadline, and it looks like something that should only be required in Linux distros, such a Debian or Arch Linux. It sounds like macos should not need this...

@vadimszzz
Copy link

vadimszzz commented Nov 10, 2021

It still says that I am missing libreadline.8.dylib.

EDIT: I did a bunch of research online about libreadline, and it looks like something that should only be required in Linux distros, such a Debian or Arch Linux. It sounds like macos should not need this...

I'll do a small script to properly install Inferius. Go to https://github.com/vadimszzz/Inferius and click „Watch“. It will be soon.

I plan to do something better over this project with blackjack and hookers!

@arandomusernam
Copy link
Author

Many thanks! I will go over there and watch it, best of luck with your coding!

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

No branches or pull requests

3 participants