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

Submitted by:  None
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    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.5