Bug 2224868 - F39FailsToInstall: python3-giacpy
Summary: F39FailsToInstall: python3-giacpy
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-giacpy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Antonio T. sagitter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F39FailsToInstall 2226201
TreeView+ depends on / blocked
 
Reported: 2023-07-23 18:15 UTC by Fedora Fails To Install
Modified: 2023-08-01 17:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-01 17:39:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Fedora Fails To Install 2023-07-23 18:15:27 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

Your package (python-giacpy) Fails To Install in Fedora 39:

can't install python3-giacpy:
  - nothing provides python3-Cython(x86-64) needed by python3-giacpy-0.7.1-3.fc39.x86_64
  
If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.


If you don't react accordingly to the policy for FTBFS/FTI bugs (https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/), your package may be orphaned in 8+ weeks.


P.S. The data was generated solely from koji buildroot, so it might be newer than the latest compose or the content on mirrors. To reproduce, use the koji/local repo only, e.g. in mock:

    $ mock -r fedora-39-x86_64 --config-opts mirrored=False install python3-giacpy


P.P.S. If this bug has been reported in the middle of upgrading multiple dependent packages, please consider using side tags: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updating-inter-dependent-packages

Thanks!

Comment 1 Antonio T. sagitter 2023-07-24 18:22:37 UTC
The rebuild generates this error with Cython-3.0.0:

+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' --enable-qcas '--executable=/usr/bin/python3 -s'
/usr/lib/python3.12/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /builddir/build/BUILD/giacpy-0.7.1/giacpy/giacpy.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
warning: giacpy/giacpy.pyx:5843:5: Only extern functions can throw C++ exceptions.
warning: giacpy/giacpy.pyx:5880:6: Only extern functions can throw C++ exceptions.
warning: giacpy/giacpy.pyx:5903:6: Only extern functions can throw C++ exceptions.
warning: giacpy/giacpy.pyx:5928:6: Only extern functions can throw C++ exceptions.
Compiling giacpy/giacpy.pyx because it changed.
[1/1] Cythonizing giacpy/giacpy.pyx
/usr/lib/python3.12/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /builddir/build/BUILD/giacpy-0.7.1/giacpy/giacpy2qcas.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
Error compiling Cython file:
------------------------------------------------------------
...
cimport giacpy2qcas
        ^
------------------------------------------------------------
giacpy/giacpy2qcas.pyx:1:8: 'giacpy2qcas.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
cimport giacpy2qcas
from giacpy cimport Pygen
^
------------------------------------------------------------
giacpy/giacpy2qcas.pyx:6:0: 'giacpy/Pygen.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from giacpy cimport Pygen
from giacpy cimport context_ptr
^
------------------------------------------------------------
giacpy/giacpy2qcas.pyx:7:0: 'giacpy/context_ptr.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from giacpy cimport Pygen
from giacpy cimport context_ptr
cdef cqcas(Pygen g,s=None):
           ^
------------------------------------------------------------
giacpy/giacpy2qcas.pyx:10:11: 'Pygen' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
         except:
           raise RuntimeError
def toqcas(Pygen g,s=None):
           ^
------------------------------------------------------------
giacpy/giacpy2qcas.pyx:29:11: 'Pygen' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
       if (s==None):
         try:
           QCAS_qcas((<Pygen>g).gptr[0],context_ptr)
                       ^
------------------------------------------------------------
giacpy/giacpy2qcas.pyx:16:23: 'Pygen' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
       if (s==None):
         try:
           QCAS_qcas((<Pygen>g).gptr[0],context_ptr)
                                        ^
------------------------------------------------------------
giacpy/giacpy2qcas.pyx:16:40: 'context_ptr' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
       if (s==None):
         try:
           QCAS_qcas((<Pygen>g).gptr[0],context_ptr)
                                    ^
------------------------------------------------------------
giacpy/giacpy2qcas.pyx:16:36: Cannot convert Python object to 'gen'
Error compiling Cython file:
------------------------------------------------------------
...
       if (s==None):
         try:
           QCAS_qcas((<Pygen>g).gptr[0],context_ptr)
                                        ^
------------------------------------------------------------
giacpy/giacpy2qcas.pyx:16:40: Cannot convert Python object to 'context *'
Error compiling Cython file:
------------------------------------------------------------
...
           return
         except:
           raise RuntimeError
       else:
         try:
           QCAS_interactiveqcas((<Pygen>g).gptr[0],context_ptr,<string>s.encode())
                                  ^
------------------------------------------------------------
giacpy/giacpy2qcas.pyx:22:34: 'Pygen' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
           return
         except:
           raise RuntimeError
       else:
         try:
           QCAS_interactiveqcas((<Pygen>g).gptr[0],context_ptr,<string>s.encode())
                                                   ^
------------------------------------------------------------
giacpy/giacpy2qcas.pyx:22:51: 'context_ptr' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
           return
         except:
           raise RuntimeError
       else:
         try:
           QCAS_interactiveqcas((<Pygen>g).gptr[0],context_ptr,<string>s.encode())
                                               ^
------------------------------------------------------------
giacpy/giacpy2qcas.pyx:22:47: Cannot convert Python object to 'gen'
Error compiling Cython file:
------------------------------------------------------------
...
           return
         except:
           raise RuntimeError
       else:
         try:
           QCAS_interactiveqcas((<Pygen>g).gptr[0],context_ptr,<string>s.encode())
                                                   ^
------------------------------------------------------------
giacpy/giacpy2qcas.pyx:22:51: Cannot convert Python object to 'context *'
Compiling giacpy/giacpy2qcas.pyx because it changed.
[1/1] Cythonizing giacpy/giacpy2qcas.pyx
Traceback (most recent call last):
  File "/builddir/build/BUILD/giacpy-0.7.1/setup.py", line 140, in <module>
    ext_modules+=cythonize([Extension(
                 ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
    cythonize_one(*args)
  File "/usr/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: giacpy/giacpy2qcas.pyx

Comment 2 Fedora Fails To Install 2023-07-31 08:48:05 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on devel.org if you are unsure how to fix this bug.

Comment 3 Frederic Han 2023-08-01 12:43:08 UTC
I have updated giacpy in the upstream git repository:
https://gitlab.math.univ-paris-diderot.fr/han/giacpy

there was more problems detected by the test suite due to cython >3.0.0 


mock-chroot> sh-5.2# python3
Python 3.12.0b4 (main, Jul 21 2023, 00:00:00) [GCC 13.1.1 20230614 (Red Hat 13.1.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from giacpy import giac
>>> a=giac('a') ; 1+a   # gave an error with giacpy 0.7.1 and cython3
1+a


I was able to build and run giacpy 0.7.2 on rawhide.
could you try to update the package?

Comment 4 Antonio T. sagitter 2023-08-01 13:56:18 UTC
(In reply to Frederic Han from comment #3)
> I have updated giacpy in the upstream git repository:
> https://gitlab.math.univ-paris-diderot.fr/han/giacpy
> 
> there was more problems detected by the test suite due to cython >3.0.0 
> 
> 
> mock-chroot> sh-5.2# python3
> Python 3.12.0b4 (main, Jul 21 2023, 00:00:00) [GCC 13.1.1 20230614 (Red Hat
> 13.1.1-4)] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from giacpy import giac
> >>> a=giac('a') ; 1+a   # gave an error with giacpy 0.7.1 and cython3
> 1+a
> 
> 
> I was able to build and run giacpy 0.7.2 on rawhide.
> could you try to update the package?

Successfull build log: https://kojipkgs.fedoraproject.org//work/tasks/2660/104222660/build.log

Comment 5 Antonio T. sagitter 2023-08-01 17:39:14 UTC
Thank you Frederic


Note You need to log in before you can comment on or make changes to this bug.