This fixes the setup.py invoked when installing crosstl manually -> py -m pip install . especially on windows machines
and also resolves the same error when installing crosstl using pip:
Traceback (most recent call last):
File "C:\Files\repos\PythonGround\crosstl\setup.py", line 24, in <module>
long_description=open("README.md").read(),
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\asdas\AppData\Local\Programs\Python\Python312\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 0x8d in position 3319: character maps to <undefined>
manual installation is tested by creating virtual environment using venv and then by running pip install . which triggers the setup.py script and installs the crosstl package
same error when installed using pip:
Collecting crosstl
Using cached crosstl-0.0.1.3.tar.gz (44 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 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\asdas\AppData\Local\Temp\pip-install-4cvozngb\crosstl_757360f28e2d45ce80dbf835065ec704\setup.py", line 24, in <module>
long_description=open("README.md").read(),
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\asdas\AppData\Local\Programs\Python\Python312\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 0x8d in position 3246: 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.
This fixes the setup.py invoked when installing crosstl manually ->
py -m pip install .
especially on windows machines and also resolves the same error when installingcrosstl
using pip:manual installation is tested by creating virtual environment using
venv
and then by runningpip install .
which triggers thesetup.py
script and installs the crosstl packagesame error when installed using
pip
: