datawhores / OF-Scraper

A completely revamped and redesigned fork, reimagined from scratch based on the original onlyfans-scraper
MIT License
699 stars 59 forks source link

# ModuleNotFoundError: No Module name 'pkg_resources.extern' #450

Open exe22 opened 3 months ago

exe22 commented 3 months ago

Describe the bug

I'm using ofscraper_windows_3.11.4.exe

The script crashes during start-up with the following error.

Traceback (most recent call last): File "PyInstaller\hooks\rthooks\pyi_rth_pkgres.py", line 158, in File "PyInstaller\hooks\rthooks\pyi_rth_pkgres.py", line 36, in _pyi_rthook File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "pkg_resources__init__.py", line 90, in ModuleNotFoundError: No module named 'pkg_resources.extern' [40196] Failed to execute script 'pyi_rth_pkgres' due to unhandled exception!

Troubleshooting

I tried to install setuptools via pip install setuptools but it didn't help.

This error doesn't occur with v3.11

System Info

Puk0 commented 3 months ago

in windows, since "setuptools" was updated they no longer open the exes

use the pip version:

pip install ofscraper

Puk0 commented 3 months ago

pip install ofscraper --upgrade or pip uninstall ofscraper and then pip install ofscraper

datawhores commented 3 months ago

I'll make an announcement on discord once these are working again, and in here

mwald84 commented 3 months ago

I tried the pip version but it reset my config file. Did the format change? I was using 3.11.1 before. It's removing the cdm options (I use my own keys).

Puk0 commented 3 months ago

I tried the pip version but it reset my config file. Did the format change? I was using 3.11.1 before. It's removing the cdm options (I use my own keys).

in some versions it changes; just put "manual" and the paths of your two files, and ffmpeg

mwald84 commented 3 months ago

I tried the pip version but it reset my config file. Did the format change? I was using 3.11.1 before. It's removing the cdm options (I use my own keys).

in some versions it changes; just put "manual" and the paths of your two files, and ffmpeg

But manual isn't to download specific posts (with URL)? Or do you mean in the config file?

Puk0 commented 3 months ago

But manual isn't to download specific posts (with URL)? Or do you mean in the config file?

"key-mode-default": "manual", and "private-key": "client-id":

datawhores commented 2 months ago

This was broken on Linux when I tested as well I'm not sure when, I don't use the execs

I recommend just using pipx if you really want multiple version of the script I'll spend time looking into this more in the future