Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Incompatibility with Python 3.11 #4

Open
avalentino opened this issue Jan 13, 2023 · 0 comments
Open

Incompatibility with Python 3.11 #4

avalentino opened this issue Jan 13, 2023 · 0 comments

Comments

@avalentino
Copy link
Collaborator

$ make html
Running Sphinx v6.1.3
WARNING: Invalid configuration value found: 'language = None'. Update your configuration to a valid language code. Falling back to 'en' (English).
making output directory... done
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
building [mo]: targets for 0 po files that are out of date
writing output... 
building [html]: targets for 25 source files that are out of date
updating environment: [new config] 25 added, 0 changed, 0 removed
0.00s - Debugger warning: It seems that frozen modules are being used, which may                                             
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
0.00s - Debugger warning: It seems that frozen modules are being used, which may                                             
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
WARNING: autodoc: failed to import module 'calibrationsite' from module 'sct.analysis'; the following exception was raised:
Traceback (most recent call last):
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/sphinx/ext/autodoc/importer.py", line 60, in import_module
    return importlib.import_module(modname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/antonio.valentino/.conda/local-envs/p311/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/sct/analysis/calibrationsite.py", line 21, in <module>
    from sct.analysis.calibrationsiteanalyser import CalibrationSiteAnalyser
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/sct/analysis/calibrationsiteanalyser.py", line 18, in <module>
    from sct.analysis.calibrationtargetanalyser import CalibrationTargetAnalyser
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/sct/analysis/calibrationtargetanalyser.py", line 14, in <module>
    from arepytools.math import genericpoly
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/math/genericpoly.py", line 9, in <module>
    from arepytools.io.metadata import _Poly2D
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/__init__.py", line 7, in <module>
    from ._utils import read_raster, read_metadata, write_raster
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/_utils.py", line 12, in <module>
    from . import parsing
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/parsing/__init__.py", line 7, in <module>
    from . import pyxb_metadata
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/parsing/pyxb_metadata.py", line 9, in <module>
    import pyxb.binding
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/__init__.py", line 8, in <module>
    from . import datatypes
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/datatypes.py", line 1266, in <module>
    from . import content
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/content.py", line 807, in <module>
    class _PluralBinding (collections.MutableSequence):
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'MutableSequence'

WARNING: autodoc: failed to import module 'calibrationsiteanalyser' from module 'sct.analysis'; the following exception was raised:
Traceback (most recent call last):
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/sphinx/ext/autodoc/importer.py", line 60, in import_module
    return importlib.import_module(modname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/antonio.valentino/.conda/local-envs/p311/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/sct/analysis/calibrationsiteanalyser.py", line 18, in <module>
    from sct.analysis.calibrationtargetanalyser import CalibrationTargetAnalyser
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/sct/analysis/calibrationtargetanalyser.py", line 14, in <module>
    from arepytools.math import genericpoly
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/math/genericpoly.py", line 9, in <module>
    from arepytools.io.metadata import _Poly2D
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/__init__.py", line 7, in <module>
    from ._utils import read_raster, read_metadata, write_raster
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/_utils.py", line 12, in <module>
    from . import parsing
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/parsing/__init__.py", line 7, in <module>
    from . import pyxb_metadata
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/parsing/pyxb_metadata.py", line 9, in <module>
    import pyxb.binding
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/__init__.py", line 8, in <module>
    from . import datatypes
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/datatypes.py", line 1266, in <module>
    from . import content
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/content.py", line 807, in <module>
    class _PluralBinding (collections.MutableSequence):
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'MutableSequence'

WARNING: autodoc: failed to import module 'calibrationtargetanalyser' from module 'sct.analysis'; the following exception was raised:
Traceback (most recent call last):
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/sphinx/ext/autodoc/importer.py", line 60, in import_module
    return importlib.import_module(modname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/antonio.valentino/.conda/local-envs/p311/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/sct/analysis/calibrationtargetanalyser.py", line 14, in <module>
    from arepytools.math import genericpoly
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/math/genericpoly.py", line 9, in <module>
    from arepytools.io.metadata import _Poly2D
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/__init__.py", line 7, in <module>
    from ._utils import read_raster, read_metadata, write_raster
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/_utils.py", line 12, in <module>
    from . import parsing
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/parsing/__init__.py", line 7, in <module>
    from . import pyxb_metadata
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/parsing/pyxb_metadata.py", line 9, in <module>
    import pyxb.binding
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/__init__.py", line 8, in <module>
    from . import datatypes
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/datatypes.py", line 1266, in <module>
    from . import content
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/content.py", line 807, in <module>
    class _PluralBinding (collections.MutableSequence):
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'MutableSequence'

WARNING: autodoc: failed to import module 'eeorbit' from module 'sct.orbit'; the following exception was raised:
No module named 'future'
WARNING: autodoc: failed to import module 'orbit' from module 'sct.orbit'; the following exception was raised:
Traceback (most recent call last):
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/sphinx/ext/autodoc/importer.py", line 60, in import_module
    return importlib.import_module(modname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/antonio.valentino/.conda/local-envs/p311/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/sct/orbit/orbit.py", line 9, in <module>
    from arepytools.io.metadata import EOrbitDirection
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/__init__.py", line 7, in <module>
    from ._utils import read_raster, read_metadata, write_raster
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/_utils.py", line 12, in <module>
    from . import parsing
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/parsing/__init__.py", line 7, in <module>
    from . import pyxb_metadata
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/parsing/pyxb_metadata.py", line 9, in <module>
    import pyxb.binding
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/__init__.py", line 8, in <module>
    from . import datatypes
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/datatypes.py", line 1266, in <module>
    from . import content
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/content.py", line 807, in <module>
    class _PluralBinding (collections.MutableSequence):
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'MutableSequence'

WARNING: autodoc: failed to import module 'sarproduct' from module 'sct.sarproduct'; the following exception was raised:
Traceback (most recent call last):
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/sphinx/ext/autodoc/importer.py", line 60, in import_module
    return importlib.import_module(modname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/antonio.valentino/.conda/local-envs/p311/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/sct/sarproduct/sarproduct.py", line 12, in <module>
    from arepytools.math import genericpoly
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/math/genericpoly.py", line 9, in <module>
    from arepytools.io.metadata import _Poly2D
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/__init__.py", line 7, in <module>
    from ._utils import read_raster, read_metadata, write_raster
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/_utils.py", line 12, in <module>
    from . import parsing
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/parsing/__init__.py", line 7, in <module>
    from . import pyxb_metadata
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/arepytools/io/parsing/pyxb_metadata.py", line 9, in <module>
    import pyxb.binding
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/__init__.py", line 8, in <module>
    from . import datatypes
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/datatypes.py", line 1266, in <module>
    from . import content
  File "/Users/antonio valentino/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/content.py", line 807, in <module>
    class _PluralBinding (collections.MutableSequence):
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'MutableSequence'

WARNING: autodoc: failed to import module 'sentinel1product' from module 'sct.sarproduct'; the following exception was raised:
No module named 'future'

Notebook error:
CellExecutionError in notebooks/sct_tutorial.ipynb:
------------------
import os

from sct.analysis.calibrationsite import CalibrationSite
from sct.configuration.configuration import Configuration
------------------

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[1], line 3
      1 import os
----> 3 from sct.analysis.calibrationsite import CalibrationSite
      4 from sct.configuration.configuration import Configuration

File ~/projects/aresys-sar-calibration-tool/sct/analysis/calibrationsite.py:21
     17 from shapely.geometry import Polygon
     19 from arepytools.timing.precisedatetime import PreciseDateTime
---> 21 from sct.analysis.calibrationsiteanalyser import CalibrationSiteAnalyser
     22 from sct.analysis.calibrationtarget import CalibrationTarget
     23 from sct.sarproduct.sarproduct import get_sar_product_mission

File ~/projects/aresys-sar-calibration-tool/sct/analysis/calibrationsiteanalyser.py:18
     16 from sct.analysis.setanalyser import SETAnalyser
     17 from sct.analysis.platetectonicsanalyser import PlateTectonicsAnalyser
---> 18 from sct.analysis.calibrationtargetanalyser import CalibrationTargetAnalyser
     19 from sct.analysis.troposphericdelayanalyser import TroposphericDelayAnalyser
     20 from sct.analysis.ionosphericdelayanalyser import IonosphericDelayAnalyser

File ~/projects/aresys-sar-calibration-tool/sct/analysis/calibrationtargetanalyser.py:14
     11 import numpy as np
     13 import arepytools.constants as cst
---> 14 from arepytools.math import genericpoly
     15 import sct.support.signalprocessing as sp
     17 from sct.sarproduct.sarproduct import EDataQuantity

File ~/projects/aresys-sar-calibration-tool/arepytools/math/genericpoly.py:9
      1 # SPDX-FileCopyrightText: Aresys S.r.l. <[email protected]>
      2 # SPDX-License-Identifier: MIT
      4 """
      5 Generic polynomial module
      6 -------------------------
      7 """
----> 9 from arepytools.io.metadata import _Poly2D
     10 from arepytools.io.metadata import _Poly2DVector
     13 class GenericPoly:

File ~/projects/aresys-sar-calibration-tool/arepytools/io/__init__.py:7
      1 # SPDX-FileCopyrightText: Aresys S.r.l. <[email protected]>
      2 # SPDX-License-Identifier: MIT
      4 """
      5 I/O management package
      6 """
----> 7 from ._utils import read_raster, read_metadata, write_raster

File ~/projects/aresys-sar-calibration-tool/arepytools/io/_utils.py:12
     10 import numpy as np
     11 import lxml.etree as etree
---> 12 from . import parsing
     14 data_type_dict = {0: 'f4',
     15                   1: 'c8',
     16                   2: 'i2',
   (...)
     25                   11: 'i1, i1',
     26                   }
     28 byte_order_dict = {'ieee-be': '>',
     29                    'ieee-le': '<',
     30                    0: '<',
     31                    }

File ~/projects/aresys-sar-calibration-tool/arepytools/io/parsing/__init__.py:7
      1 # SPDX-FileCopyrightText: Aresys S.r.l. <[email protected]>
      2 # SPDX-License-Identifier: MIT
      4 """
      5 I/O parsing package
      6 """
----> 7 from . import pyxb_metadata
      8 from . import pyxb_aresys_conversion

File ~/projects/aresys-sar-calibration-tool/arepytools/io/parsing/pyxb_metadata.py:9
      7 from __future__ import unicode_literals
      8 import pyxb
----> 9 import pyxb.binding
     10 import pyxb.binding.saxer
     11 import io

File ~/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/__init__.py:8
      5 # Automatically include all the stuff that's necessary for basic
      6 # running.  There are order dependencies here.
      7 from . import basis
----> 8 from . import datatypes
      9 from . import facets
     10 from . import content

File ~/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/datatypes.py:1266
   1263     _ExpandedName = pyxb.namespace.XMLSchema.createExpandedName('positiveInteger')
   1264 _DerivedDatatypes.append(positiveInteger)
-> 1266 from . import content
   1268 class anyType (basis.complexTypeDefinition):
   1269     """XMLSchema datatype U{anyType<http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#key-urType>}."""

File ~/projects/aresys-sar-calibration-tool/venv/lib/python3.11/site-packages/pyxb/binding/content.py:807
    799 import collections
    801 # Do not inherit from list; that's obscene, and could cause problems with the
    802 # internal assumptions made by Python.  Instead delegate everything to an
    803 # instance of list that's held internally.  Inherit from the ABC that
    804 # represents list-style data structures so we can identify both lists and
    805 # these things which are not lists.
    806 @pyxb.utils.utility.BackfillComparisons
--> 807 class _PluralBinding (collections.MutableSequence):
    808     """Helper for element content that supports multiple occurences.
    809 
    810     This is an adapter for Python list.  Any operation that can mutate an item
    811     in the list ensures the stored value is compatible with the element for
    812     which the list holds values."""
    814     __list = None

AttributeError: module 'collections' has no attribute 'MutableSequence'
AttributeError: module 'collections' has no attribute 'MutableSequence'

You can ignore this error by setting the following in conf.py:

    nbsphinx_allow_errors = True

make: *** [html] Error 2
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant