Search code examples
pythonpython-3.xpippython-wheel

Python setup.py bdist_wheel did not run successfully. Installing DRecPy


I try to install DRecPy library which installation is described here.

Unfortunately, it does not work. I've tried installing it with pip, and direct installation using setup.py. Both ways have errors.

The first one is as following:

Building wheels for collected packages: pandas
  Building wheel for pandas (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [1062 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build

The second one is:

Traceback (most recent call last):
  File "projectpath\DRecPy\setup.py", line 15, in <module>
    long_description = fh.read()
  File "path\Python310\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 0x88 in position 5916: character maps to <undefined>

Solution

  • Looks like there is a character in the readme that cannot be read with the set encoding. Since you already have the sourcecode, replace the line mentioned here:

    File "projectpath\DRecPy\setup.py", line 15, in <module>
        long_description = fh.read()
    

    with

    long_description = ""
    

    in the setup.py file. Then do

    python setup.py install
    

    Note though that this indicates that this package was not tested with python 3.10, so you might run into other issues here.

    Also consider reporting this bug to the author of the package, by posting it on github