Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone executables do not have yaml support #3907

Closed
anonygit99 opened this issue Apr 12, 2023 · 0 comments
Closed

Standalone executables do not have yaml support #3907

anonygit99 opened this issue Apr 12, 2023 · 0 comments

Comments

@anonygit99
Copy link

When running the standalone executables, the --config-yaml ~/mygdlconfig.yaml option fails because the PyYAML module does not seem to be included in the build process.

The error shows "No module named 'yaml'" coming from the import on line 46 of __init__.py.
Tested on windows (installed with scoop) & linux (wsl, installed with brew), gallery-dl v1.25.1

In a virtual environment, I installed pyyaml and the other deps (pip install requests requests[socks] yt-dlp pyinstaller pyyaml) and built my the gallery-dl executable locally (via scripts/pyinstaller.py), which seemed to fix the error and allow yaml config files to be passed to gallery-dl.exe --config-yaml <pathtofile> at runtime.

mikf added a commit that referenced this issue Apr 19, 2023
(#3907)

- pyyaml
- toml (for Python<3.11)
- secretstorage (on Linux)
@mikf mikf closed this as completed Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants