Re: Your package doesn't build with Python 3.7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message -----
> From: "Sérgio Basto" <sergio@xxxxxxxxxx>
> To: "Fedora devel" <devel@xxxxxxxxxxxxxxxxxxxxxxx>
> Sent: Friday, June 29, 2018 1:55:52 AM
> Subject: Re: Your package doesn't build with Python 3.7
> 
> On Thu, 2018-06-28 at 20:41 +0200, Miro Hrončok wrote:
> > sergiomb   opencv
> 
> /builddir/build/BUILD/opencv-3.4.1/modules/python/src2/cv2.cpp:889:34:
> error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
>      char* str = PyString_AsString(obj);
> 
> This problem is not about new gcc flags ? or about python rebuild ? now
> that I'm reading if I just add const to the code [1] will fix this
> build error ?
> original code here [2]
> 
> [1]
> const char* str = PyString_AsString(obj);
> 
>  
> [2]
> https://github.com/opencv/opencv/blob/master/modules/python/src2/cv2.cp
> p#L919
> 
> Thanks,
> --
> Sérgio M. B.
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx/message/SCRTZW2ERRXTBK7M3LTKRYXRQ5DFSGBS/
> 

Hmm I was under the impression that PyString_AsString does not exist in Python3
and you'll have to use PyUnicode_AsEncodedString. Was it actually compiling with
previous versions of Python3?

-- 
Regards,

Charalampos Stratakis
Software Engineer
Python Maintenance Team, Red Hat
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx/message/NZOU55TUCY7QIB7WCRQLKLQ7BFL2NIS6/




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux