I am not able to build the optional package p_group_cohomology in 10.2.rc2 
due to cython errors.

The first error looks like:

[p_group_cohomology-3.3.3.p1]   Error compiling Cython file:
[p_group_cohomology-3.3.3.p1]   -------------------------------------------
-----------------
[p_group_cohomology-3.3.3.p1]   ...
[p_group_cohomology-3.3.3.p1]   from sage.structure.element cimport Element
[p_group_cohomology-3.3.3.p1]   from .map cimport Map
[p_group_cohomology-3.3.3.p1]   ^
[p_group_cohomology-3.3.3.p1]   -------------------------------------------
-----------------
[p_group_cohomology-3.3.3.p1] 
[p_group_cohomology-3.3.3.p1]   
/XXX/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/categories/morphism.pxd:2:0:
 
'sage/categories/map.pxd' not found

In fact, the file map.pxd does exist in the same directory as morphism.pxd, 
which is the file containing the failing cimport line.  But the missing 
path reported by cython is not an absolute path: sage/categories/map.pxd.  
I don't know to which base directory that relative path is meant to be 
applied, but evidently it is wrong.

I will attach the log file.

- Marc

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/b0293496-5e25-49d5-bd11-78928bb3ecb6n%40googlegroups.com.
Using cached file 
/private/var/tmp/sage-10.2-current/upstream/p_group_cohomology-3.3.3.tar.xz
p_group_cohomology-3.3.3.p1
====================================================
Setting up build directory for p_group_cohomology-3.3.3.p1
Finished extraction
Applying patches from ../patches...
Applying ../patches/7.patch
patching file pGroupCohomology-3.3.3/pGroupCohomology/cohomology.pyx
****************************************************
Host system:
Darwin abner.cable.rcn.com 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 
20:51:50 PDT 2023; root:xnu-8796.121.2~5/RELEASE_X86_64 x86_64
****************************************************
C compiler: gcc
C compiler version:
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: x86_64-apple-darwin22.5.0
Thread model: posix
InstalledDir: 
/Applications/Xcode_13.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
****************************************************
Package 'p_group_cohomology' is currently not installed
No legacy uninstaller found for 'p_group_cohomology'; nothing to do
Installing p_group_cohomology-3.3.3.p1
Looking in links: 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/lib/sage/wheels
Processing 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3
  Preparing metadata (setup.py): started
  Running command python setup.py egg_info

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from sage.structure.element cimport Element
  from .map cimport Map
  ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/categories/morphism.pxd:2:0:
 'sage/categories/map.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from sage.structure.element cimport Element
  from .map cimport Map
  ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/categories/morphism.pxd:2:0:
 'sage/categories/map/Map.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from sage.structure.element cimport Element
  from .map cimport Map


  cdef class Morphism(Map):
                      ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/categories/morphism.pxd:5:20:
 First base of 'Morphism' is not an extension type

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  cdef class RingMap(Morphism):
      pass

  cdef class RingMap_lift(RingMap):
      cdef Parent S
      cdef Map to_S
           ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/rings/morphism.pxd:13:9:
 'Map' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
              raise TypeError("key must be an integer, not 
{}".format(type(key)))


  #########################
  ## ==, <, >
      cpdef _richcmp_(self, other, int x):
            ^
  ------------------------------------------------------------

  pGroupCohomology/cochain.pyx:5891:10: C method '_richcmp_' not previously 
declared in definition part of extension type 'ChMap'
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File 
"/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3/setup.py",
 line 97, in <module>
      ext_modules = cythonize(ext_mods, compiler_directives={'embedsignature': 
True,
                    
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File 
"/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/Cython/Build/Dependencies.py",
 line 1154, in cythonize
      cythonize_one(*args)
    File 
"/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/Cython/Build/Dependencies.py",
 line 1321, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: pGroupCohomology/cochain.pyx
  Compiling pGroupCohomology/resolution.pyx because it changed.
  Compiling pGroupCohomology/cochain.pyx because it changed.
  Compiling pGroupCohomology/cohomology.pyx because it changed.
  Compiling pGroupCohomology/modular_cohomology.pyx because it changed.
  Compiling pGroupCohomology/dickson.pyx because it changed.
  [1/5] Cythonizing pGroupCohomology/cochain.pyx
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem 
with pip.
  full command: 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/bin/python3
 -c '
  exec(compile('"'"''"'"''"'"'
  # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
  #
  # - It imports setuptools before invoking setup.py, to enable projects that 
directly
  #   import from `distutils.core` to work with newer packaging standards.
  # - It provides a clear error message when setuptools is not installed.
  # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking 
`setup.py` so
  #   setuptools doesn'"'"'t think the script is `-c`. This avoids the 
following warning:
  #     manifest_maker: standard file '"'"'-c'"'"' not found".
  # - It generates a shim setup.py, for handling setup.cfg-only projects.
  import os, sys, tokenize
  
  try:
      import setuptools
  except ImportError as error:
      print(
          "ERROR: Can not execute `setup.py` since setuptools is not available 
in "
          "the build environment.",
          file=sys.stderr,
      )
      sys.exit(1)
  
  __file__ = %r
  sys.argv[0] = __file__
  
  if os.path.exists(__file__):
      filename = __file__
      with tokenize.open(__file__) as f:
          setup_py_code = f.read()
  else:
      filename = "<auto-generated setuptools caller>"
      setup_py_code = "from setuptools import setup; setup()"
  
  exec(compile(setup_py_code, filename, "exec"))
  '"'"''"'"''"'"' % 
('"'"'/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3/setup.py'"'"',),
 "<pip-setuptools-caller>", "exec"))' --no-user-cfg egg_info --egg-base 
/private/var/folders/sl/wck1hwwx6pv2mcl04pv2092w0000gn/T/pip-pip-egg-info-3xlk3r6g
  cwd: 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3/
  Preparing metadata (setup.py): finished with status 'error'
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Warning: building with "python3 -m pip wheel --wheel-dir=dist --verbose 
--no-deps --no-index --isolated --ignore-requires-python 
--find-links=/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/lib/sage/wheels"
 failed.
Retrying with "python3 -m pip wheel --wheel-dir=dist --verbose --no-deps 
--no-index --isolated --ignore-requires-python --no-build-isolation --no-binary 
:all:".
Processing 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3
  Preparing metadata (setup.py): started
  Running command python setup.py egg_info

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from sage.structure.element cimport Element
  from .map cimport Map
  ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/categories/morphism.pxd:2:0:
 'sage/categories/map.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from sage.structure.element cimport Element
  from .map cimport Map
  ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/categories/morphism.pxd:2:0:
 'sage/categories/map/Map.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from sage.structure.element cimport Element
  from .map cimport Map


  cdef class Morphism(Map):
                      ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/categories/morphism.pxd:5:20:
 First base of 'Morphism' is not an extension type

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  cdef class RingMap(Morphism):
      pass

  cdef class RingMap_lift(RingMap):
      cdef Parent S
      cdef Map to_S
           ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/rings/morphism.pxd:13:9:
 'Map' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
              raise TypeError("key must be an integer, not 
{}".format(type(key)))


  #########################
  ## ==, <, >
      cpdef _richcmp_(self, other, int x):
            ^
  ------------------------------------------------------------

  pGroupCohomology/cochain.pyx:5891:10: C method '_richcmp_' not previously 
declared in definition part of extension type 'ChMap'
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File 
"/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3/setup.py",
 line 97, in <module>
      ext_modules = cythonize(ext_mods, compiler_directives={'embedsignature': 
True,
                    
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File 
"/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/Cython/Build/Dependencies.py",
 line 1154, in cythonize
      cythonize_one(*args)
    File 
"/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/Cython/Build/Dependencies.py",
 line 1321, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: pGroupCohomology/cochain.pyx
  Compiling pGroupCohomology/resolution.pyx because it changed.
  Compiling pGroupCohomology/cochain.pyx because it changed.
  Compiling pGroupCohomology/cohomology.pyx because it changed.
  Compiling pGroupCohomology/modular_cohomology.pyx because it changed.
  Compiling pGroupCohomology/dickson.pyx because it changed.
  [1/5] Cythonizing pGroupCohomology/cochain.pyx
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem 
with pip.
  full command: 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/bin/python3
 -c '
  exec(compile('"'"''"'"''"'"'
  # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
  #
  # - It imports setuptools before invoking setup.py, to enable projects that 
directly
  #   import from `distutils.core` to work with newer packaging standards.
  # - It provides a clear error message when setuptools is not installed.
  # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking 
`setup.py` so
  #   setuptools doesn'"'"'t think the script is `-c`. This avoids the 
following warning:
  #     manifest_maker: standard file '"'"'-c'"'"' not found".
  # - It generates a shim setup.py, for handling setup.cfg-only projects.
  import os, sys, tokenize
  
  try:
      import setuptools
  except ImportError as error:
      print(
          "ERROR: Can not execute `setup.py` since setuptools is not available 
in "
          "the build environment.",
          file=sys.stderr,
      )
      sys.exit(1)
  
  __file__ = %r
  sys.argv[0] = __file__
  
  if os.path.exists(__file__):
      filename = __file__
      with tokenize.open(__file__) as f:
          setup_py_code = f.read()
  else:
      filename = "<auto-generated setuptools caller>"
      setup_py_code = "from setuptools import setup; setup()"
  
  exec(compile(setup_py_code, filename, "exec"))
  '"'"''"'"''"'"' % 
('"'"'/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3/setup.py'"'"',),
 "<pip-setuptools-caller>", "exec"))' --no-user-cfg egg_info --egg-base 
/private/var/folders/sl/wck1hwwx6pv2mcl04pv2092w0000gn/T/pip-pip-egg-info-3fuuoruo
  cwd: 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3/
  Preparing metadata (setup.py): finished with status 'error'
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
********************************************************************************
Error building a wheel for p_group_cohomology-3.3.3.p1
********************************************************************************

real    0m7.737s
user    0m6.200s
sys     0m0.962s
************************************************************************
Error installing package p_group_cohomology-3.3.3.p1
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log files
  /private/var/tmp/sage-10.2-current/logs/pkgs/p_group_cohomology-3.3.3.p1.log
and
  /private/var/tmp/sage-10.2-current/config.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1
 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd 
'/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1'
 && '/private/var/tmp/sage-10.2-current/sage' --buildsh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
Using cached file 
/private/var/tmp/sage-10.2-current/upstream/p_group_cohomology-3.3.3.tar.xz
p_group_cohomology-3.3.3.p1
====================================================
Setting up build directory for p_group_cohomology-3.3.3.p1
Finished extraction
Applying patches from ../patches...
Applying ../patches/7.patch
patching file pGroupCohomology-3.3.3/pGroupCohomology/cohomology.pyx
****************************************************
Host system:
Darwin abner.cable.rcn.com 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 
20:51:50 PDT 2023; root:xnu-8796.121.2~5/RELEASE_X86_64 x86_64
****************************************************
C compiler: gcc
C compiler version:
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: x86_64-apple-darwin22.5.0
Thread model: posix
InstalledDir: 
/Applications/Xcode_13.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
****************************************************
Package 'p_group_cohomology' is currently not installed
No legacy uninstaller found for 'p_group_cohomology'; nothing to do
Installing p_group_cohomology-3.3.3.p1
Looking in links: 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/lib/sage/wheels
Processing 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3
  Preparing metadata (setup.py): started
  Running command python setup.py egg_info

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from sage.structure.element cimport Element
  from .map cimport Map
  ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/categories/morphism.pxd:2:0:
 'sage/categories/map.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from sage.structure.element cimport Element
  from .map cimport Map
  ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/categories/morphism.pxd:2:0:
 'sage/categories/map/Map.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from sage.structure.element cimport Element
  from .map cimport Map


  cdef class Morphism(Map):
                      ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/categories/morphism.pxd:5:20:
 First base of 'Morphism' is not an extension type

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  cdef class RingMap(Morphism):
      pass

  cdef class RingMap_lift(RingMap):
      cdef Parent S
      cdef Map to_S
           ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/rings/morphism.pxd:13:9:
 'Map' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
              raise TypeError("key must be an integer, not 
{}".format(type(key)))


  #########################
  ## ==, <, >
      cpdef _richcmp_(self, other, int x):
            ^
  ------------------------------------------------------------

  pGroupCohomology/cochain.pyx:5891:10: C method '_richcmp_' not previously 
declared in definition part of extension type 'ChMap'
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File 
"/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3/setup.py",
 line 97, in <module>
      ext_modules = cythonize(ext_mods, compiler_directives={'embedsignature': 
True,
                    
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File 
"/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/Cython/Build/Dependencies.py",
 line 1154, in cythonize
      cythonize_one(*args)
    File 
"/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/Cython/Build/Dependencies.py",
 line 1321, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: pGroupCohomology/cochain.pyx
  Compiling pGroupCohomology/resolution.pyx because it changed.
  Compiling pGroupCohomology/cochain.pyx because it changed.
  Compiling pGroupCohomology/cohomology.pyx because it changed.
  Compiling pGroupCohomology/modular_cohomology.pyx because it changed.
  Compiling pGroupCohomology/dickson.pyx because it changed.
  [1/5] Cythonizing pGroupCohomology/cochain.pyx
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem 
with pip.
  full command: 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/bin/python3
 -c '
  exec(compile('"'"''"'"''"'"'
  # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
  #
  # - It imports setuptools before invoking setup.py, to enable projects that 
directly
  #   import from `distutils.core` to work with newer packaging standards.
  # - It provides a clear error message when setuptools is not installed.
  # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking 
`setup.py` so
  #   setuptools doesn'"'"'t think the script is `-c`. This avoids the 
following warning:
  #     manifest_maker: standard file '"'"'-c'"'"' not found".
  # - It generates a shim setup.py, for handling setup.cfg-only projects.
  import os, sys, tokenize
  
  try:
      import setuptools
  except ImportError as error:
      print(
          "ERROR: Can not execute `setup.py` since setuptools is not available 
in "
          "the build environment.",
          file=sys.stderr,
      )
      sys.exit(1)
  
  __file__ = %r
  sys.argv[0] = __file__
  
  if os.path.exists(__file__):
      filename = __file__
      with tokenize.open(__file__) as f:
          setup_py_code = f.read()
  else:
      filename = "<auto-generated setuptools caller>"
      setup_py_code = "from setuptools import setup; setup()"
  
  exec(compile(setup_py_code, filename, "exec"))
  '"'"''"'"''"'"' % 
('"'"'/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3/setup.py'"'"',),
 "<pip-setuptools-caller>", "exec"))' --no-user-cfg egg_info --egg-base 
/private/var/folders/sl/wck1hwwx6pv2mcl04pv2092w0000gn/T/pip-pip-egg-info-4p3_j9nv
  cwd: 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3/
  Preparing metadata (setup.py): finished with status 'error'
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Warning: building with "python3 -m pip wheel --wheel-dir=dist --verbose 
--no-deps --no-index --isolated --ignore-requires-python 
--find-links=/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/lib/sage/wheels"
 failed.
Retrying with "python3 -m pip wheel --wheel-dir=dist --verbose --no-deps 
--no-index --isolated --ignore-requires-python --no-build-isolation --no-binary 
:all:".
Processing 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3
  Preparing metadata (setup.py): started
  Running command python setup.py egg_info

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from sage.structure.element cimport Element
  from .map cimport Map
  ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/categories/morphism.pxd:2:0:
 'sage/categories/map.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from sage.structure.element cimport Element
  from .map cimport Map
  ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/categories/morphism.pxd:2:0:
 'sage/categories/map/Map.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from sage.structure.element cimport Element
  from .map cimport Map


  cdef class Morphism(Map):
                      ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/categories/morphism.pxd:5:20:
 First base of 'Morphism' is not an extension type

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  cdef class RingMap(Morphism):
      pass

  cdef class RingMap_lift(RingMap):
      cdef Parent S
      cdef Map to_S
           ^
  ------------------------------------------------------------

  
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/rings/morphism.pxd:13:9:
 'Map' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
              raise TypeError("key must be an integer, not 
{}".format(type(key)))


  #########################
  ## ==, <, >
      cpdef _richcmp_(self, other, int x):
            ^
  ------------------------------------------------------------

  pGroupCohomology/cochain.pyx:5891:10: C method '_richcmp_' not previously 
declared in definition part of extension type 'ChMap'
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File 
"/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3/setup.py",
 line 97, in <module>
      ext_modules = cythonize(ext_mods, compiler_directives={'embedsignature': 
True,
                    
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File 
"/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/Cython/Build/Dependencies.py",
 line 1154, in cythonize
      cythonize_one(*args)
    File 
"/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/Cython/Build/Dependencies.py",
 line 1321, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: pGroupCohomology/cochain.pyx
  Compiling pGroupCohomology/resolution.pyx because it changed.
  Compiling pGroupCohomology/cochain.pyx because it changed.
  Compiling pGroupCohomology/cohomology.pyx because it changed.
  Compiling pGroupCohomology/modular_cohomology.pyx because it changed.
  Compiling pGroupCohomology/dickson.pyx because it changed.
  [1/5] Cythonizing pGroupCohomology/cochain.pyx
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem 
with pip.
  full command: 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/bin/python3
 -c '
  exec(compile('"'"''"'"''"'"'
  # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
  #
  # - It imports setuptools before invoking setup.py, to enable projects that 
directly
  #   import from `distutils.core` to work with newer packaging standards.
  # - It provides a clear error message when setuptools is not installed.
  # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking 
`setup.py` so
  #   setuptools doesn'"'"'t think the script is `-c`. This avoids the 
following warning:
  #     manifest_maker: standard file '"'"'-c'"'"' not found".
  # - It generates a shim setup.py, for handling setup.cfg-only projects.
  import os, sys, tokenize
  
  try:
      import setuptools
  except ImportError as error:
      print(
          "ERROR: Can not execute `setup.py` since setuptools is not available 
in "
          "the build environment.",
          file=sys.stderr,
      )
      sys.exit(1)
  
  __file__ = %r
  sys.argv[0] = __file__
  
  if os.path.exists(__file__):
      filename = __file__
      with tokenize.open(__file__) as f:
          setup_py_code = f.read()
  else:
      filename = "<auto-generated setuptools caller>"
      setup_py_code = "from setuptools import setup; setup()"
  
  exec(compile(setup_py_code, filename, "exec"))
  '"'"''"'"''"'"' % 
('"'"'/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3/setup.py'"'"',),
 "<pip-setuptools-caller>", "exec"))' --no-user-cfg egg_info --egg-base 
/private/var/folders/sl/wck1hwwx6pv2mcl04pv2092w0000gn/T/pip-pip-egg-info-kg580ybd
  cwd: 
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1/src/pGroupCohomology-3.3.3/
  Preparing metadata (setup.py): finished with status 'error'
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
********************************************************************************
Error building a wheel for p_group_cohomology-3.3.3.p1
********************************************************************************

real    0m7.873s
user    0m6.614s
sys     0m1.016s
************************************************************************
Error installing package p_group_cohomology-3.3.3.p1
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log files
  /private/var/tmp/sage-10.2-current/logs/pkgs/p_group_cohomology-3.3.3.p1.log
and
  /private/var/tmp/sage-10.2-current/config.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1
 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd 
'/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/p_group_cohomology-3.3.3.p1'
 && '/private/var/tmp/sage-10.2-current/sage' --buildsh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************

Reply via email to