prof79 / fansly-downloader-ng

Easy-to-use fansly.com content downloading tool. Written in Python and available as a standalone Windows Executable. 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 & single posts.
GNU General Public License v3.0
275 stars 15 forks source link

Help with new virtual environment #95

Open skinnedknees opened 4 days ago

skinnedknees commented 4 days ago

Hi. I was using the Windows executable here and there, but it stopped working for me. Someone suggested trying the python version and referred to a write-up that a user put together. Well I followed it and it worked great. My only problem is my PC rebooted before I copied down the commands to execute it, and now I dont know how to get "in" to the virtual python environment(I think the prompt changed to venv>?)

This was the thread and comment here > https://github.com/prof79/fansly-downloader-ng/issues/80#issuecomment-2249261123

But for some reason instead of that thread getting closed it looks like it was deleted entirely.

If anyone knows what those directions were, can you can post how to start the virtual environment for me. I cant find it anywhere else

Thanks

wrigglyb commented 3 days ago

Assuming you called the venv venv.. On Windows if you are using Powershell or Terminal then you are looking to run Activate.ps1 located inside the Scripts folder inside the folder you made the venv in. If you are on CMD then it's all lowercase and it's .bat. Capitalisation definitely matters.

The most straightforward way to do it is to go back to the place you made it and run

.\venv\Scripts\activate.bat or .\venv\Scripts\Activate.ps1

from the point where you made the venv, like so:

Screenshot 2024-10-12 at 10 32 17

You will get the venv in the prompt back and be in your venv. To exit it voluntarily just send deactivate.

skinnedknees commented 7 hours ago

I'm not sure what the virtual environment was called, is there a path or command that lists them? I just followed the guide that was posted. I did run your commands above(you can see I got the (venv) prompt), but it didn't like something about them. See below...

(venv) PS Z:\Fansly> .\venv\Scripts\Activate.ps1 (venv) PS Z:\Fansly> python -m fansly_downloader_ng.py Traceback (most recent call last): File "", line 189, in _run_module_as_main File "", line 112, in _get_module_details File "Z:\Fansly\fansly_downloader_ng.py", line 52, in from updater import self_update File "Z:\Fansly\updater__init__.py", line 8, in from .utils import check_for_update, delete_deprecated_files, post_update_steps File "Z:\Fansly\updater\utils.py", line 15, in from pkg_resources._vendor.packaging.version import parse as parse_version ModuleNotFoundError: No module named 'pkg_resources._vendor'

Does that mean anything to you? Is there a way I can just start it over like I did from that guide?