-
Notifications
You must be signed in to change notification settings - Fork 3
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
GH Workflow Error: Windows Support #83
Comments
For now, the error isn't with GitHub workflows, but more with simply building Whatsfly for Windows, and fixing this problem seems to come from other libraries, so it would need direct development on Windows, and I personally don't have a test machine to do that. So feel free to make a pull request if you get it working. |
I've tweaked a bit the workflow (apparently the libraries got updated since the last time I tried), it seems to build correctly, can you test on Windows ? |
I got this error File ~\AppData\Roaming\Python\Python310\site-packages\whatsfly\dependencies\builder.py:106, in ensureUsableBinaries()
[105](https://untitled+.vscode-resource.vscode-cdn.net/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:105) if rq.status_code != 200:
--> [106](https://untitled+.vscode-resource.vscode-cdn.net/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:106) raise RuntimeError(
[107](https://untitled+.vscode-resource.vscode-cdn.net/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:107) f"Server responded with {rq.status_code}, impossible to find the binaries, giving up"
[108](https://untitled+.vscode-resource.vscode-cdn.net/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:108) )
[109](https://untitled+.vscode-resource.vscode-cdn.net/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:109) open(f"{root_dir.replace('dependencies', '')}/dependencies/{get_dll_filename()}", "wb").write(rq.content)
RuntimeError: Server responded with 404, impossible to find the binaries, giving up
...
[118](https://untitled+.vscode-resource.vscode-cdn.net/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:118) )
[119](https://untitled+.vscode-resource.vscode-cdn.net/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:119) except Exception:
--> [120](https://untitled+.vscode-resource.vscode-cdn.net/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:120) raise RuntimeError("Impossible to find the binaries, giving up")
RuntimeError: Impossible to find the binaries, giving up |
can you run this ?: import whatsfly.dependencies.builder
print(whatsfly.dependencies.builder.get_dll_filename()) |
Still same: import whatsfly.dependencies.builder
print(whatsfly.dependencies.builder.get_dll_filename()) ---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
File ~\AppData\Roaming\Python\Python310\site-packages\whatsfly\dependencies\builder.py:106, in ensureUsableBinaries()
[105](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:105) if rq.status_code != 200:
--> [106](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:106) raise RuntimeError(
[107](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:107) f"Server responded with {rq.status_code}, impossible to find the binaries, giving up"
[108](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:108) )
[109](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:109) open(f"{root_dir.replace('dependencies', '')}/dependencies/{get_dll_filename()}", "wb").write(rq.content)
RuntimeError: Server responded with 404, impossible to find the binaries, giving up
During handling of the above exception, another exception occurred:
RuntimeError Traceback (most recent call last)
Cell In[1], [line 1](vscode-notebook-cell:?execution_count=1&line=1)
----> [1](vscode-notebook-cell:?execution_count=1&line=1) import whatsfly.dependencies.builder
[3](vscode-notebook-cell:?execution_count=1&line=3) print(whatsfly.dependencies.builder.get_dll_filename())
File ~\AppData\Roaming\Python\Python310\site-packages\whatsfly\__init__.py:18
[14](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/__init__.py:14) import logging
[16](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/__init__.py:16) from .dependencies.builder import ensureUsableBinaries
---> [18](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/__init__.py:18) ensureUsableBinaries()
[20](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/__init__.py:20) try:
[21](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/__init__.py:21) from .whatsapp import WhatsApp
File ~\AppData\Roaming\Python\Python310\site-packages\whatsfly\dependencies\builder.py:120, in ensureUsableBinaries()
[116](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:116) open(f"{root_dir.replace('dependencies', '')}/dependencies/{get_dll_filename(h=True)}", "wb").write(
[117](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:117) rq.content
[118](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:118) )
[119](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:119) except Exception:
--> [120](https://file+.vscode-resource.vscode-cdn.net/e%3A/Yaz%C4%B1l%C4%B1m/Python/whatsfly%20bot/~/AppData/Roaming/Python/Python310/site-packages/whatsfly/dependencies/builder.py:120) raise RuntimeError("Impossible to find the binaries, giving up")
RuntimeError: Impossible to find the binaries, giving up |
Just noticed you were using Whatsfly 0.1.3. This was fixed in 0.2.1. You can install with pip using whatsfly-labfox |
How do it this ? |
|
` print(whatsfly.dependencies.builder.get_dll_filename())
|
?It seems like your python/windows install is buggy. Also it is |
Hi @Labfox Great thanks for the project. The docs seem to be outdated and hence why even I noticed that whatsfly was installed when following the installation steps When running pip install whatsfly-labfox it installed the correct one |
When will the build error on Windows x64 be fixed?
The text was updated successfully, but these errors were encountered: