italia / spid-cie-oidc-django

The SPID/CIE OIDC Federation SDK, written in Python
Apache License 2.0
27 stars 28 forks source link

Dependency install fails for example projects on Windows #93

Closed freddi301 closed 2 years ago

freddi301 commented 2 years ago

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

freddi301 commented 2 years ago

my workaround was replacing that line with README=""

peppelinux commented 2 years ago

please share the exception stderr log

freddi301 commented 2 years ago
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)
peppelinux commented 2 years ago

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

freddi301 commented 2 years ago

fix pull request here https://github.com/italia/spid-cie-oidc-django/pull/102

peppelinux commented 2 years ago

Closed by https://github.com/italia/spid-cie-oidc-django/pull/102