Hi,

I am trying to compile master3 with python 3 and qt5.

During compilation I get an error around gdal and python-future which may be corrupted:

-----------------------

[10/803] cd /home/an/dev/QGIS/ninja-build/src/crssync && /home/an/dev/QGIS/ninja-build/output/bin/crssync
Running from build directory!
- source directory: /home/an/dev/QGIS
- output directory of the build: /home/an/dev/QGIS/ninja-build/output
Synchronizing CRS database with GDAL/PROJ definitions.
Only 0 columns
Load srs db from: /tmp/srs.db
Loaded 498/499 from /usr/local/share/gdal/gcs.csv
EPSG 6966: not imported
EPSG 7082: not imported
Loaded 4636/4714 from /usr/local/share/gdal/pcs.csv
Loaded 184/185 from /usr/local/share/gdal/vertcs.csv
Loaded 153/154 from /usr/local/share/gdal/compdcs.csv
Loaded 149/150 from /usr/local/share/gdal/geoccs.csv
Loading epsg.wkt
Loading esri_extra.wkt
6072 WKTs loaded
CRS update (inserted:0 updated:0 deleted:0 errors:0)
No CRS updates were necessary.
[13/803] Generating ui_dialogAbout.py
FAILED: cd /home/an/dev/QGIS/ninja-build/python/plugins/GdalTools/tools && /home/an/dev/QGIS/scripts/pyuic-wrapper.sh /usr/bin/pyuic5 /home/an/dev/QGIS/ninja-build/output/lib /home/an/dev/QGIS/ninja-build/output/python /usr/bin/python3 /home/an/dev/QGIS/python/plugins/GdalTools/tools/dialogAbout.ui -o /home/an/dev/QGIS/ninja-build/python/plugins/GdalTools/tools/ui_dialogAbout.py
Traceback (most recent call last):
  File "/home/an/dev/QGIS/scripts/pyuic-wrapper.py", line 26, in <module>
    import qgis.PyQt.uic.pyuic
File "/home/an/dev/QGIS/ninja-build/output/python/qgis/__init__.py", line 27, in <module>
    from qgis.PyQt import QtCore
File "/home/an/dev/QGIS/ninja-build/output/python/qgis/PyQt/QtCore.py", line 3, in <module>
    from types import MethodType
  File "/usr/lib/python3.5/types.py", line 166, in <module>
    import functools as _functools
  File "/usr/lib/python3.5/functools.py", line 21, in <module>
    from collections import namedtuple
  File "/usr/lib/python3.5/collections/__init__.py", line 32, in <module>
    from reprlib import recursive_repr as _recursive_repr
File "/home/an/dev/QGIS/ninja-build/output/python/reprlib/__init__.py", line 7, in <module>
    raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 53, in apport_excepthook
    if not enabled():
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
    import re
  File "/usr/lib/python3.5/re.py", line 335, in <module>
    import copyreg
File "/home/an/dev/QGIS/ninja-build/output/python/copyreg/__init__.py", line 7, in <module>
    raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.

Original exception was:
Traceback (most recent call last):
  File "/home/an/dev/QGIS/scripts/pyuic-wrapper.py", line 26, in <module>
    import qgis.PyQt.uic.pyuic
File "/home/an/dev/QGIS/ninja-build/output/python/qgis/__init__.py", line 27, in <module>
    from qgis.PyQt import QtCore
File "/home/an/dev/QGIS/ninja-build/output/python/qgis/PyQt/QtCore.py", line 3, in <module>
    from types import MethodType
  File "/usr/lib/python3.5/types.py", line 166, in <module>
    import functools as _functools
  File "/usr/lib/python3.5/functools.py", line 21, in <module>
    from collections import namedtuple
  File "/usr/lib/python3.5/collections/__init__.py", line 32, in <module>
    from reprlib import recursive_repr as _recursive_repr
File "/home/an/dev/QGIS/ninja-build/output/python/reprlib/__init__.py", line 7, in <module>
    raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
[13/803] Generating ui_widgetProximity.py
FAILED: cd /home/an/dev/QGIS/ninja-build/python/plugins/GdalTools/tools && /home/an/dev/QGIS/scripts/pyuic-wrapper.sh /usr/bin/pyuic5 /home/an/dev/QGIS/ninja-build/output/lib /home/an/dev/QGIS/ninja-build/output/python /usr/bin/python3 /home/an/dev/QGIS/python/plugins/GdalTools/tools/widgetProximity.ui -o /home/an/dev/QGIS/ninja-build/python/plugins/GdalTools/tools/ui_widgetProximity.py
Traceback (most recent call last):
  File "/home/an/dev/QGIS/scripts/pyuic-wrapper.py", line 26, in <module>
    import qgis.PyQt.uic.pyuic
File "/home/an/dev/QGIS/ninja-build/output/python/qgis/__init__.py", line 27, in <module>
    from qgis.PyQt import QtCore
File "/home/an/dev/QGIS/ninja-build/output/python/qgis/PyQt/QtCore.py", line 3, in <module>
    from types import MethodType
  File "/usr/lib/python3.5/types.py", line 166, in <module>
    import functools as _functools
  File "/usr/lib/python3.5/functools.py", line 21, in <module>
    from collections import namedtuple
  File "/usr/lib/python3.5/collections/__init__.py", line 32, in <module>
    from reprlib import recursive_repr as _recursive_repr
File "/home/an/dev/QGIS/ninja-build/output/python/reprlib/__init__.py", line 7, in <module>
    raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 53, in apport_excepthook
    if not enabled():
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
    import re
  File "/usr/lib/python3.5/re.py", line 335, in <module>
    import copyreg
File "/home/an/dev/QGIS/ninja-build/output/python/copyreg/__init__.py", line 7, in <module>
    raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.

Original exception was:
Traceback (most recent call last):
  File "/home/an/dev/QGIS/scripts/pyuic-wrapper.py", line 26, in <module>
    import qgis.PyQt.uic.pyuic
File "/home/an/dev/QGIS/ninja-build/output/python/qgis/__init__.py", line 27, in <module>
    from qgis.PyQt import QtCore
File "/home/an/dev/QGIS/ninja-build/output/python/qgis/PyQt/QtCore.py", line 3, in <module>
    from types import MethodType
  File "/usr/lib/python3.5/types.py", line 166, in <module>
    import functools as _functools
  File "/usr/lib/python3.5/functools.py", line 21, in <module>
    from collections import namedtuple
  File "/usr/lib/python3.5/collections/__init__.py", line 32, in <module>
    from reprlib import recursive_repr as _recursive_repr
File "/home/an/dev/QGIS/ninja-build/output/python/reprlib/__init__.py", line 7, in <module>
    raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
ninja: build stopped: subcommand failed.

-----------------------------------------

Anyone has an idea and what is wrong/missing here?

Note that I self-compiled gdal/geos/proj. Not sure if it properly builds python2 and python3 bindings simultaneously?

Thank you for any hints!

Andreas

_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to