On 20/06/2022 14:45, Tomas Hrnciar wrote:
<snip>
>
> ## Where to get help
>
> Reply to this thread or find us (thrnciar, mhroncok) on
#fedora-python IRC channel (libera.chat)or Matrix
(#python:fedoraproject.org <http://fedoraproject.org>).
>
> ---
>
> Let us know if you have other questions.
>
<snip>
Question: my error appears to be in a Python header.
Can someone take a look at this and giver me some quick feedback as to
whether this is a problem for my package or a bug I should report?
It doesn't seem to fall into one of the neat categories described by Tomas
```
/usr/bin/python3 -c "import Cython.Build;
Cython.Build.cythonize('build/python/cantera/_cantera.pyx')"
Compiling build/python/cantera/_cantera.pyx because it changed.
[1/1] Cythonizing build/python/cantera/_cantera.pyx
g++ -o build/temp-py/_cantera.os -c -std=c++11 -pthread -O3 -Wno-inline
-g -fPIC -DNDEBUG -Iinclude -I/usr/include/python3.11
-I/usr/lib64/python3.11/site-packages/numpy/core/include
-I/usr/include/eigen3 build/python/cantera/_cantera.cpp
In file included from
/usr/lib64/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h:1960,
from
/usr/lib64/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from
/usr/lib64/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h:5,
from build/python/cantera/_cantera.cpp:749:
/usr/lib64/python3.11/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2:
warning: #warning "Using deprecated NumPy API, disable it with "
"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with " \
| ^~~~~~~
In file included from /usr/include/python3.11/Python.h:38,
from build/python/cantera/_cantera.cpp:20:
/usr/include/python3.11/pyport.h: In instantiation of 'type
{anonymous}::_Py_CAST_impl(const expr_type&) [with type = _object*;
expr_type = int]':
build/python/cantera/_cantera.cpp:193144:9: required from here
/usr/include/python3.11/pyport.h:47:24: error: invalid 'static_cast'
from type 'int' to type '_object*'
47 | return static_cast<type>(const_cast<expr_type
&>(expr));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scons: *** [build/temp-py/_cantera.os] Error 1
scons: building terminated because of errors.
```
See: https://github.com/Cantera/cantera/issues/1325
Also: https://kojipkgs.fedoraproject.org/work/tasks/2453/88502453/build.log
Best,
-fuller
--
Mark E. Fuller, Ph.D.
HaShikma 19, Apt. 24
Nesher 3681219, Israel
+972 (0)53-872-6579
+49 (0)1577 1848188
+1 401-214-4266
mark.e.fuller@xxxxxxxxx
mark.e.fuller@xxxxxx
fuller@xxxxxxxxxxxxx
@fuller:one.ems.host
https://www.stossrohr.net
PGP Fingerprint: 73F1 A30C BDF4 DB4B C75F FD0F D599 E76C FFCA BF60
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure