OF-Scraper icon indicating copy to clipboard operation
OF-Scraper copied to clipboard

# ModuleNotFoundError: No Module name 'pkg_resources.extern'

Open exe22 opened this issue 1 year ago • 8 comments

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

  • OS: Windows 11
  • Version: 3.11.4
  • python
  • python version 3.12.4

exe22 avatar Aug 21 '24 07:08 exe22

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

use the pip version:

pip install ofscraper

Puk0 avatar Aug 21 '24 07:08 Puk0

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

Puk0 avatar Aug 21 '24 10:08 Puk0

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

datawhores avatar Aug 21 '24 15:08 datawhores

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

mwald84 avatar Aug 21 '24 20:08 mwald84

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

Puk0 avatar Aug 21 '24 21:08 Puk0

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?

mwald84 avatar Aug 21 '24 21:08 mwald84

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":

Puk0 avatar Aug 21 '24 21:08 Puk0

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

datawhores avatar Sep 07 '24 23:09 datawhores