Avnsx / fansly-downloader

Easy to use fansly.com content downloading tool. Written in python, but ships as a standalone Executable App for Windows too. Enjoy your Fansly content offline anytime, anywhere in the highest possible content resolution! Fully customizable to download in bulk or single: photos, videos & audio from timeline, messages, collection & specific posts 👍
https://fansly.com/
GNU General Public License v3.0
1.29k stars 65 forks source link

macOS 13.1 : pyexiv2 only supports these Python versions: ['3.5', '3.6', '3.7', '3.8', '3.9'] #168

Open baszero opened 1 year ago

baszero commented 1 year ago

Because Pyton 3.12 had a severe issue with a library called nympo, I installed Python 3.11.

No I get this error:

Traceback (most recent call last):
  File "/Users/me/Documents/fansly-downloader-master/fansly_downloader.py", line 15, in <module>
    from utils.metadata_manager import MetadataManager
  File "/Users/me/Documents/fansly-downloader-master/utils/metadata_manager.py", line 1, in <module>
    import pyexiv2
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyexiv2/__init__.py", line 6, in <module>
    from .core import *
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyexiv2/core.py", line 1, in <module>
    from .lib import exiv2api
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyexiv2/lib/__init__.py", line 14, in <module>
    raise RuntimeError('pyexiv2 only supports these Python versions: {} . But your version is {} .'.format(expected_py_version, py_version))
RuntimeError: pyexiv2 only supports these Python versions: ['3.5', '3.6', '3.7', '3.8', '3.9'] . But your version is 3.1 .
c240amg commented 1 year ago

This is probably because the version check only uses the first digit after the full stop, rather than doing a integer check. I don't think it's a fansly_download issue, but a pyexiv2 issue...

c240amg commented 1 year ago

Have edited the file and got past this error. you need to change this file (note I am using a virtual environment): /fansly-downloader/venv/lib/python3.11/site-packages/pyexiv2/lib/__init__.py and add expected_py_version = ['3.5', '3.6', '3.7', '3.8', '3.9', '3.1'] After this, you do get a different error, which I am trying to debug... /fansly-downloader/venv/lib/python3.11/site-packages/pyexiv2/lib/libexiv2.dylib' (no such file)

neiljohn150 commented 11 months ago

@c240amg I created a workaround to run without pyexiv2 for MacOS https://github.com/Avnsx/fansly-downloader/commit/59d60d23d36be7e5c7930afe5755e906d733fac6