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

Install of romkan 0.2.1 fails #14

Open
BarnabasSzabolcs opened this issue Mar 28, 2022 · 1 comment · May be fixed by #15
Open

Install of romkan 0.2.1 fails #14

BarnabasSzabolcs opened this issue Mar 28, 2022 · 1 comment · May be fixed by #15

Comments

@BarnabasSzabolcs
Copy link

BarnabasSzabolcs commented Mar 28, 2022

pip install romkan failed in windows 10 with python 3.9.6 with the following error message:

README = open(os.path.join(here, 'README.rst')).read()
       File "C:\Python396\lib\encodings\cp1250.py", line 23, in decode
         return codecs.charmap_decode(input,self.errors,decoding_table)[0]
     UnicodeDecodeError: 'charmap' codec can't decode byte 0x83 in position 182

I could overcome this issue by setting PYTHONUTF8=1 environment variable.
(In the code, encoding="utf-8" should be added to open().)

Also, there was a deprecation notice:
DeprecationWarning: the imp module is deprecated in favour of importlib

@Bel-Shazzar Bel-Shazzar linked a pull request May 19, 2022 that will close this issue
@GregorLushaj
Copy link

Wasn't fixed with #15 , the error still happens via pip or setup.py if installed on win 10 / python 3.10.8 and i suppose also on 3.9.6.

Fixed it locally where i put encoding="utf-8" in the open-statement on line 12 in the setup.py file, as @BarnabasSzabolcs states.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants