wubi
wubi copied to clipboard
No module named _compat
The _compat module is not found after installing through pip (If it matters, I use python 3.6).
I made a fork and fixed some bugs. I did remove python 2 support though, as dealing with all that unicode stuff was a pain. Let me know if this is an issue.
ModuleNotFoundError: No module named '_compat' (If it matters, I use python 3.6).
If you clone this repo, it works:
git clone https://github.com/arcsecw/wubi.git
cd wubi
python -c "import wubi; print(wubi.get('WenChaoWang爱自由','cw'))"
This prints out WenChaoWang ep thd mh. Tested on Python 3.5 and 3.9.
_compat.py must not have packaged when published to PyPI so pip install doesn't work, but the above should help.