From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.1 Message-ID: <7dd83429-6aa7-433b-8dc5-1a0144ea32ef@altlinux.org> Date: Wed, 13 Dec 2023 18:06:58 +0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: ru To: devel@lists.altlinux.org References: <8ceb1de2-4307-4c92-8761-cc59e973a10b@altlinux.org> <2a9b46e6-bd24-4403-99d2-824df187e844@altlinux.org> <9128b667-f997-436c-97c7-433668a06e1f@altlinux.org> From: Andrey Limachko Organization: ALT Linux Team In-Reply-To: <9128b667-f997-436c-97c7-433668a06e1f@altlinux.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [devel] [#332788] TESTED (try 4) srpm=python3-module-Cython-3.0.6-alt1.src.rpm X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Dec 2023 14:07:20 -0000 Archived-At: List-Archive: List-Post: Попробовал собрать python3-module-Enable с Cython 3. Посыпались ошибки. Подскажите, что с ними можно сделать? В upstream не пофиксили, просто явно указали в сборочных зависимостях cython<3. Error compiling Cython file: ------------------------------------------------------------ ... # Thanks for using Enthought open source! import cython import numpy as np from numpy cimport uint8_t cimport _marker_renderer         ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:14:8: '_marker_renderer.pxd' not found Error compiling Cython file: ------------------------------------------------------------ ... import numpy as np from numpy cimport uint8_t cimport _marker_renderer ctypedef _marker_renderer.marker_renderer_base renderer_base_t          ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:16:9: 'marker_renderer_base' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ...         self._this.transform(_sx, _sy, _shx, _shy, _tx, _ty) # Template specializations ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_abgr32] renderer_abgr32_t          ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:91:9: 'marker_renderer' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ...         self._this.transform(_sx, _sy, _shx, _shy, _tx, _ty) # Template specializations ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_abgr32] renderer_abgr32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_argb32] renderer_argb32_t          ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:92:9: 'marker_renderer' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... # Template specializations ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_abgr32] renderer_abgr32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_argb32] renderer_argb32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_bgra32] renderer_bgra32_t          ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:93:9: 'marker_renderer' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... # Template specializations ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_abgr32] renderer_abgr32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_argb32] renderer_argb32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_bgra32] renderer_bgra32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_rgba32] renderer_rgba32_t          ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:94:9: 'marker_renderer' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... # Template specializations ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_abgr32] renderer_abgr32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_argb32] renderer_argb32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_bgra32] renderer_bgra32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_rgba32] renderer_rgba32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_bgr24] renderer_bgr24_t          ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:95:9: 'marker_renderer' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_abgr32] renderer_abgr32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_argb32] renderer_argb32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_bgra32] renderer_bgra32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_rgba32] renderer_rgba32_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_bgr24] renderer_bgr24_t ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_rgb24] renderer_rgb24_t          ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:96:9: 'marker_renderer' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ...         cdef:             double[:,::1] _points = np.asarray(points, dtype=np.float64, order='c')             double[::1] _fill = np.asarray(fill, dtype=np.float64, order='c')             double[::1] _stroke = np.asarray(stroke, dtype=np.float64, order='c')             unsigned _size = size             _marker_renderer.marker_type _marker = <_marker_renderer.marker_type>marker             ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:51:12: 'marker_type' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... cdef class MarkerRendererBase:     cdef renderer_base_t* _this     cdef object py_array     def __dealloc__(self):         del self._this                 ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:24:16: Deletion of non-Python, non-C++ object Error compiling Cython file: ------------------------------------------------------------ ...         cdef:             double[:,::1] _points = np.asarray(points, dtype=np.float64, order='c')             double[::1] _fill = np.asarray(fill, dtype=np.float64, order='c')             double[::1] _stroke = np.asarray(stroke, dtype=np.float64, order='c')             unsigned _size = size             _marker_renderer.marker_type _marker = <_marker_renderer.marker_type>marker                                                     ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:51:52: 'marker_type' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ...             raise ValueError(msg)         if _fill.shape[0] != 4:             msg = "fill argument must be an iterable of 4 numbers."             raise ValueError(msg)         return self._this.draw_markers(                    ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:63:19: Cannot convert 'renderer_base_t *' to Python object Error compiling Cython file: ------------------------------------------------------------ ...         if _fill.shape[0] != 4:             msg = "fill argument must be an iterable of 4 numbers."             raise ValueError(msg)         return self._this.draw_markers(             &_points[0][0], _points.shape[0], _size, _marker,             ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:64:12: Cannot convert 'double *' to Python object Error compiling Cython file: ------------------------------------------------------------ ...             msg = "fill argument must be an iterable of 4 numbers."             raise ValueError(msg)         return self._this.draw_markers(             &_points[0][0], _points.shape[0], _size, _marker,             &_fill[0], &_stroke[0]             ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:65:12: Cannot convert 'double *' to Python object Error compiling Cython file: ------------------------------------------------------------ ...             msg = "fill argument must be an iterable of 4 numbers."             raise ValueError(msg)         return self._this.draw_markers(             &_points[0][0], _points.shape[0], _size, _marker,             &_fill[0], &_stroke[0]                        ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:65:23: Cannot convert 'double *' to Python object Error compiling Cython file: ------------------------------------------------------------ ...             double _shx = shx             double _shy = shy             double _tx = tx             double _ty = ty         self._this.transform(_sx, _sy, _shx, _shy, _tx, _ty)             ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:87:12: Cannot convert 'renderer_base_t *' to Python object Error compiling Cython file: ------------------------------------------------------------ ... ctypedef _marker_renderer.marker_renderer[_marker_renderer.pixfmt_rgb24] renderer_rgb24_t cdef class MarkerRendererABGR32(MarkerRendererBase):     def __cinit__(self, uint8_t[:,:,::1] image, bottom_up=True):         self.base_init(image)         self._this = new renderer_abgr32_t(                                         ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:101:40: new operator can only be applied to a C++ class Error compiling Cython file: ------------------------------------------------------------ ...         ) cdef class MarkerRendererARGB32(MarkerRendererBase):     def __cinit__(self, uint8_t[:,:,::1] image, bottom_up=True):         self.base_init(image)         self._this = new renderer_argb32_t(                                         ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:108:40: new operator can only be applied to a C++ class Error compiling Cython file: ------------------------------------------------------------ ...         ) cdef class MarkerRendererBGRA32(MarkerRendererBase):     def __cinit__(self, uint8_t[:,:,::1] image, bottom_up=True):         self.base_init(image)         self._this = new renderer_bgra32_t(                                         ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:115:40: new operator can only be applied to a C++ class Error compiling Cython file: ------------------------------------------------------------ ...         ) cdef class MarkerRendererRGBA32(MarkerRendererBase):     def __cinit__(self, uint8_t[:,:,::1] image, bottom_up=True):         self.base_init(image)         self._this = new renderer_rgba32_t(                                         ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:122:40: new operator can only be applied to a C++ class Error compiling Cython file: ------------------------------------------------------------ ...         ) cdef class MarkerRendererBGR24(MarkerRendererBase):     def __cinit__(self, uint8_t[:,:,::1] image, bottom_up=True):         self.base_init(image)         self._this = new renderer_bgr24_t(                                         ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:129:40: new operator can only be applied to a C++ class Error compiling Cython file: ------------------------------------------------------------ ...         ) cdef class MarkerRendererRGB24(MarkerRendererBase):     def __cinit__(self, uint8_t[:,:,::1] image, bottom_up=True):         self.base_init(image)         self._this = new renderer_rgb24_t(                                         ^ ------------------------------------------------------------ kiva/_marker_renderer.pyx:136:40: new operator can only be applied to a C++ class 12.12.2023 08:49, grenka@altlinux.org пишет: > 11.12.2023 16:02, Andrey Limachko пишет: >> Готов помочь и поправить конкретные пакеты или просто пройтись по >> списку и пофиксить те, которыми никто пока не занимается. > Это было бы замечательно! Спасибо! >> >> >> 04.12.2023 13:52, grenka@altlinux.org пишет: >>> 04.12.2023 12:45, grenka@altlinux.org пишет: >>>> 26.11.2023 22:00, Girar awaiter (aris) пишет: >>>>> https://git.altlinux.org/tasks/332788/logs/events.4.1.log >>>> >>>> Товарищи! Cython3.0.* is coming. >>>> >>>> Тестовая пересборка [#335051] icarus DONE (try 2) >>>> srpm=python3-module-Cython-3.0.5-alt1.src.rpm >>>> >>>> показала, что это обновление ломает несколько десятков пакетов: >>>> Mayavi  rider @everybody >>>> arrow    shaba @everybody >>>> blink-qt    cas @everybody >>>> ceph    shaba @qa >>>> gawk    @core >>>> h5py    @python @everybody @qa >>>> jack_mixer    boyarsh @everybody >>>> libgupnp-igd    aris >>>> prometheus-simpleclient-java    viy @everybody >>>> pyliblo    arseny @everybody >>>> pytables    @python @everybody @qa >>>> python3-module-Enable    grenka @everybody >>>> python3-module-asyncpg    ancieg @everybody >>>> python3-module-cypari2    cas @everybody >>>> python3-module-cysignals    cas @everybody >>>> python3-module-cython-hidapi    lav @everybody >>>> python3-module-efl    aris @everybody >>>> python3-module-ffpyplayer    lav @everybody >>>> python3-module-grpcio    rider @everybody >>>> python3-module-kivy    lav @everybody >>>> python3-module-kmod    grenka @python @everybody >>>> python3-module-krb5    liannnix @everybody >>>> python3-module-lupa    slev @everybody >>>> python3-module-lxml    grenka lav @python @qa @everybody >>>> python3-module-mpi4py    grenka @everybody >>>> python3-module-orderedset    aris >>>> python3-module-pandas    rider @everybody >>>> python3-module-pulsectl-asyncio    egori @everybody >>>> python3-module-pyclipper    @python @everybody >>>> python3-module-pyjnius    lav @everybody >>>> python3-module-pylbfgs    grenka @python >>>> python3-module-pysndfile    @python @everybody >>>> python3-module-scikits.sparse    @python @everybody >>>> python3-module-scipy    rider @everybody >>>> python3-module-sipsimple    cas @everybody >>>> python3-module-statsmodels    slev @everybody >>>> python3-module-uharfbuzz    grenka @everybody >>>> python3-module-uvloop    ancieg @everybody >>>> python3-module-yaml    grenka @everybody >>>> setools    rider darktemplar sem led @qa >>>> Прошу по возможности посмотреть и адаптировать сборку своих пакетов >>>> для нового Cython. Как правило чинится это как-то так: >>>> https://github.com/scoder/lupa/commit/fc0a1af99b7439c63951e4766ab64e37a63b3bcd >>>> https://github.com/lxml/lxml/commit/0e7d7e54cc66609ca5af0d04095a89ec350a06f6 >>>> https://github.com/harfbuzz/uharfbuzz/commit/9a26b993ba70793f345b8822ba47377e2db4f206 >>>> Спасибо за внимание! >>> >>> Если опять съедет форматирование, то читаемый список пакетов тут: >>> >>> https://git.altlinux.org/people/grenka/public/cython_ftbfs.git >>> _______________________________________________ >>> Devel mailing list >>> Devel@lists.altlinux.org >>> https://lists.altlinux.org/mailman/listinfo/devel >> > _______________________________________________ > Devel mailing list > Devel@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/devel -- Andrey Limachko (liannnix) Email: liannnix@altlinux.org Telegram: @liannnix Mobile: +7 937 240-47-35