<head><!-- BaNnErBlUrFlE-HeAdEr-start -->
<style>
#pfptBanner5r4bpcn { all: revert !important; display: block !important;
visibility: visible !important; opacity: 1 !important;
background-color: #D0D8DC !important;
max-width: none !important; max-height: none !important }
.pfptPrimaryButton5r4bpcn:hover, .pfptPrimaryButton5r4bpcn:focus {
background-color: #b4c1c7 !important; }
.pfptPrimaryButton5r4bpcn:active {
background-color: #90a4ae !important; }
</style>
<!-- BaNnErBlUrFlE-HeAdEr-end -->
</head><!-- BaNnErBlUrFlE-BoDy-start -->
<!-- Preheader Text : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">
Which version of petsc4py is it? Il giorno mar 25 giu 2024 alle ore 20: 35 maitri ksh <maitri. ksh@ gmail. com> ha scritto: I am currently working on integrating petsc4py, but I am encountering persistent compilation issues related to Cython.
</div>
<!-- Preheader Text : END -->
<!-- Email Banner : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerStart</div>
<!--[if ((ie)|(mso))]>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="padding: 16px 0px 16px 0px; direction: ltr" ><tr><td>
<table border="0" cellspacing="0" cellpadding="0" style="padding: 0px 10px 5px 6px; width: 100%; border-radius:4px; border-top:4px solid #90a4ae;background-color:#D0D8DC;"><tr><td valign="top">
<table align="left" border="0" cellspacing="0" cellpadding="0" style="padding: 4px 8px 4px 8px">
<tr><td style="color:#000000; font-family: 'Arial', sans-serif; font-weight:bold; font-size:14px; direction: ltr">
This Message Is From an External Sender
</td></tr>
<tr><td style="color:#000000; font-weight:normal; font-family: 'Arial', sans-serif; font-size:12px; direction: ltr">
This message came from outside your organization.
</td></tr>
</table>
</td></tr></table>
</td></tr></table>
<![endif]-->
<![if !((ie)|(mso))]>
<div dir="ltr" id="pfptBanner5r4bpcn" style="all: revert !important; display:block !important; text-align: left !important; margin:16px 0px 16px 0px !important; padding:8px 16px 8px 16px !important; border-radius: 4px !important; min-width: 200px !important; background-color: #D0D8DC !important; background-color: #D0D8DC; border-top: 4px solid #90a4ae !important; border-top: 4px solid #90a4ae;">
<div id="pfptBanner5r4bpcn" style="all: unset !important; float:left !important; display:block !important; margin: 0px 0px 1px 0px !important; max-width: 600px !important;">
<div id="pfptBanner5r4bpcn" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-weight:bold !important; font-weight:bold; font-size:14px !important; line-height:18px !important; line-height:18px">
This Message Is From an External Sender
</div>
<div id="pfptBanner5r4bpcn" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-weight:normal; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-size:12px !important; line-height:18px !important; line-height:18px; margin-top:2px !important;">
This message came from outside your organization.
</div>
</div>
<div style="clear: both !important; display: block !important; visibility: hidden !important; line-height: 0 !important; font-size: 0.01px !important; height: 0px"> </div>
</div>
<![endif]>
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerEnd</div>
<!-- Email Banner : END -->
<!-- BaNnErBlUrFlE-BoDy-end -->
<div dir="ltr">Which version of petsc4py is it?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 25 giu 2024 alle ore 20:35 maitri ksh <<a href="mailto:maitri.ksh@gmail.com">maitri.ksh@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-6792164917656208448">
<div style="font-size:1px;color:rgb(255,255,255);line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;display:none">
I am currently working on integrating petsc4py, but I am encountering persistent compilation issues related to Cython. Below are the details of my setup and the errors I am facing. I would greatly appreciate any assistance or guidance on how
</div>
<div style="font-size:1px;color:rgb(255,255,255);line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;display:none">ZjQcmQRYFpfptBannerStart</div>
<u></u>
<div dir="ltr" id="m_-6792164917656208448pfptBanner7c46yvx" style="display:block;text-align:left;margin:16px 0px;padding:8px 16px;border-radius:4px;min-width:200px;background-color:rgb(208,216,220);border-top:4px solid rgb(144,164,174)">
<div id="m_-6792164917656208448pfptBanner7c46yvx" style="float:left;display:block;margin:0px 0px 1px;max-width:600px">
<div id="m_-6792164917656208448pfptBanner7c46yvx" style="display:block;background-color:rgb(208,216,220);color:rgb(0,0,0);font-family:Arial,sans-serif;font-weight:bold;font-size:14px;line-height:18px">
This Message Is From an External Sender
</div>
<div id="m_-6792164917656208448pfptBanner7c46yvx" style="font-weight:normal;display:block;background-color:rgb(208,216,220);color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:12px;line-height:18px;margin-top:2px">
This message came from outside your organization.
</div>
</div>
<div style="height:0px;clear:both;display:block;line-height:0;font-size:0.01px"> </div>
</div>
<u></u>
<div style="font-size:1px;color:rgb(255,255,255);line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;display:none">ZjQcmQRYFpfptBannerEnd</div>
<div dir="ltr"><p>I am currently working on integrating <code>petsc4py</code>, but I am encountering persistent compilation issues related to Cython. Below are the details of my setup and the errors I am facing. I would greatly appreciate any assistance or guidance on how to resolve these issues.</p><h3>System Configuration:</h3><ul><li><strong>PETSc Architecture</strong>: <code>linux-gnu-c-debug</code></li><li><strong>Python Environment</strong>: Python 3.6 (virtual environment)</li><li><strong>Cython Version</strong>: 3.0.10</li><li><strong>Compiler</strong>: <code>/gcc11.2/bin/gcc</code></li></ul><div> During the build process, I received multiple warnings and errors related to the use of <code>noexcept</code>, <code>nogil</code>, and <code>except</code> in function declarations. Here are some of the specific errors: <font face="monospace"><br></font></div><div><br></div><div>cythonizing 'petsc4py.PETSc.pyx' -> 'petsc4py.PETSc.c'<br>warning: petsc4py.PETSc.pyx:1:0: Dotted filenames ('petsc4py.PETSc.pyx') are deprecated. Please use the normal Python package directory layout.<br>/home/maitri.ksh/Maitri/petsc/petsc4py/myenv/lib64/python3.6/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: include/petsc4py/PETSc.pxd<br> tree = Parsing.p_module(s, pxd, full_module_name)<br>warning: PETSc/PETSc.pyx:53:48: The keyword 'nogil' should appear at the end of the function signature line. Placing it before 'except' or 'noexcept' will be disallowed in a future version of Cython.<br>warning: PETSc/petscvec.pxi:406:79: The keyword 'nogil' should appear at the end of the function signature line. Placing it before 'except' or 'noexcept' will be disallowed in a future version of Cython.<br>warning: PETSc/petscvec.pxi:411:79: The keyword 'nogil' should appear at the end of the function signature line. Placing it before 'except' or 'noexcept' will be disallowed in a future version of Cython.<br>...<br><br>Error compiling Cython file:<br>...<br>PETSc/petscobj.pxi:91:29: Cannot assign type 'int (void *) except? -1 nogil' to 'int (*)(void *) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to the type of 'PetscDelPyDict'.<br>...<br>PETSc/cyclicgc.pxi:34:20: Cannot assign type 'int (PyObject *, visitproc, void *) except? -1' to 'traverseproc *'. Exception values are incompatible. Suggest adding 'noexcept' to the type of 'tp_traverse'.<br>...<br>PETSc/cyclicgc.pxi:35:20: Cannot assign type 'int (PyObject *) except? -1' to 'inquiry *'. Exception values are incompatible. Suggest adding 'noexcept' to the type of 'tp_clear'.<br>...<br>PETSc/PETSc.pyx:351:17: Cannot assign type 'void (void) except * nogil' to 'void (*)(void) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to the type of 'finalize'.<br>error: Cython failure: 'petsc4py.PETSc.pyx' -> 'petsc4py.PETSc.c'<br></div><div><br></div><div>Any advice on building <code>petsc4py</code> in environments similar to mine would be greatly appreciated.</div><div>Thanks,</div><div>Maitri <br></div></div>
</div></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Stefano</div>