Closed b3ade closed 2 years ago
Hi @b3ade, I tried test_2 in a fresh installation of Bifixer and it works for me.
Which version of Unidecode do you have installed?
Hi again, we noticed that you are using Windows. I changed the reading of the input file to force UTF-8, please reinstall Bifixer and let me know if that fixed your issue :)
Great its working now, but running test_bifixer.py still return empty files. (make a change in monofixer.py also)
Great!
Regarding the tests, how are you running it? Just running pytest
in /bifixer/tests
should work.
I just run comand: py test_bifixer.py My opinion is that here encoding is doing mess also but not sure because I don't get any error, The script is executed but with empty output files. Strange.
Directly running python3 test_bifixer.py
does also produces empty files for me. It's a script that is meant to be run by pytest
(this is, just run pytest
in the tests
subdirectory and it will take care of running test_bifixer.py
, comparing the produced output with the expected output, etc)
And yes, there is probably the encoding error as well.
Running that on Win is mission impossible I think. py pytest C:\Python38\python.exe: can't open file 'pytest': [Errno 2] No such file or directory pytest 'pytest' is not recognized as an internal or external command, operable program or batch file.
I run it on Ubuntu and its working fine, but thx for help anyway.
Ouch!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi I installed and I try to run bifixer.py on tests folder and file input_test_2.txt But I get charset error:
Running on output_test_1.txt works fine. Also trying to run tests/test_bifixer.py return all output files empty.