patchCompact Disc Input and Control Library - Patches: patch #9747, building pycdio with python 3.5...

 
 

patch #9747: building pycdio with python 3.5 fails with cannot convert 'bytes' object to str implicitly

Submitter:  None
Submitted:  Sun 27 Jan 2019 05:04:18 AM UTC
   
 
Category:  pycdio Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 27 Jan 2019 05:04:18 AM UTC, original submission:  


PYTHONPATH="/usr/lib/python3.5:/usr/local/lib/python3.5/dist-packages" /usr/bin/python3.5 "/usr/src/build/pycdio-2.0.0/setup.py" build
...

TypeError: Can't convert 'bytes' object to str implicitly


This is because output from pipe used to get runtime_lib_dirs needs to be converted from bytes to string with decode('utf-8')

The author of setup.py correctly added this fix (for Python3) to the second pipe output for libraries but forgot to add it to the first pipe output for runtime_lib_dirs.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #46105:  pycdio-2.0.0-setup.py.patch added by None (521B - text/x-diff - Patch to pycdio 2.0.0 setup.py to convert bytes from pipe to string with decode('utf-8'))

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-27 None Attached File- Added pycdio-2.0.0-setup.py.patch, #46105

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code