cloned-doy / whatsfly

WhatsFly : Just try and go fly. WhatsApp web wrapper in Python. No selenium nor gecko web driver needed.
https://pypi.org/project/whatsfly
MIT License
22 stars 9 forks source link

Version outdated Error #9

Open ashrafZolkopli opened 1 month ago

ashrafZolkopli commented 1 month ago

hi @cloned-doy,

Thanks for the incredible library. I been using it to do some what app automation. Suddenly last week my setup have a (V 0.0.22) version outdated error. I assume its due to Whats_app changing their UI. anyway i try updating it to the latest 0.0.231, when testing, nothing in the Shell.

I hope someone can point me to right direction to keep my app functional.

Labfox commented 1 week ago

the library now works fine (using the source)

ashrafZolkopli commented 2 days ago

@Labfox ,

How?

Labfox commented 2 days ago

First solution: pip install --upgrade whatsfly Second solution: (the commands were tested on Ubuntu 24.04) First clone this repo on your project root directory (git clone https://github.com/cloned-doy/whatsfly.git) and uninstall whatsfly via pip (pip uninstall whatsfly) Now, you have a directory name whatsfly, containing some files and another directory named whatsfly. Rename whatsfly/ into something else like whatsfly1 (mv whatsfly whatsfly1). Then move whatsfly1/whatsfly into your project's root (mv whatsfly1/whatsfly .) Now you can retry your code. If it throws an error containing free(): invalid pointer, you can try the fix in #10 (remove the lines 526-528 in whatsfly/dependencies/main.go and run the build.sh script in whatsfly/dependencies, you will need some dependencies: gcc-aarch64-linux-gnu gcc-mingw-w64-x86-64 libc6-dev sudo apt-get install gcc-aarch64-linux-gnu sudo apt-get install gcc-multilib)