Closed freddi301 closed 2 years ago
my workaround was replacing that line with README=""
please share the exception stderr log
Obtaining file:///C:/Users/Frederik/work/spid/spid-python-env/spid-cie-oidc-django
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\Frederik\work\spid\spid-python-env\spid-cie-oidc-django\setup.py", line 24, in <module>
README = readme.read()
File "C:\Python310\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 703: character maps to <undefined>
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
(spid-python-env)
Daniele also uses win32 and he doesn't have this problem, would you like to ask to him what's the cause/workaround for this issue?
I use only GNU/Linux, my excuses
fix pull request here https://github.com/italia/spid-cie-oidc-django/pull/102
Windows 11 Pytrhon 3.10.2 pip 22.0.4
some text decoding problem seems to be on this line
https://github.com/italia/spid-cie-oidc-django/blob/546ba2c7f973c980835d10100fb6a5767d55a870/setup.py#L24