Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstreaming to nixpkgs #32

Open
eyJhb opened this issue Apr 28, 2022 · 5 comments
Open

Upstreaming to nixpkgs #32

eyJhb opened this issue Apr 28, 2022 · 5 comments

Comments

@eyJhb
Copy link

eyJhb commented Apr 28, 2022

Hello,

Is there any reason this isn't upstreamed to nixpkgs?

I have tried using this with the latest nixpkgs version, but it required quite some tweaking. I might be doing a PR once I get rid of some of the bugs :)

@marcus7070
Copy link
Collaborator

Hi @eyJhb, I've attempted upstreaming cq-editor before and had to abandon it because it was too much work for me, particularly Spyder.

If you want to get it into nixpkgs then that would be great. I'd advise starting with some of the lower level packages, like stdio-mgr and qstylizer and build up from there.

@eyJhb
Copy link
Author

eyJhb commented May 1, 2022

First I will be trying removing as much custom packages from this repo (in my own fork). The current fork I have has removed quite some, and also it works perfectly fine on Python 3.9, which should maybe make it easier!

I will try and see what I can do. I really appreciate the awesome work you have put into this! Seems to be high quality packages, with a lot of care taken! :)

It made it possible for me to finally check out CadQuery. Which, I am not that good at... Yet!

@eyJhb
Copy link
Author

eyJhb commented May 3, 2022

I get the following when I have updated a couple of things

Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
Sourcing pytest-check-hook
Using pytestCheckPhase
Removing setuptoolsCheckPhase
unpacking sources
unpacking source archive /nix/store/vzcihcbhgd3l3sg4rr2g6s5qjgxfw31z-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tests/testdata/three_layers.dxf
patching sources
configuring
no configure script, doing nothing
building
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/cadquery
copying cadquery/selectors.py -> build/lib/cadquery
copying cadquery/cq_directive.py -> build/lib/cadquery
copying cadquery/cqgi.py -> build/lib/cadquery
copying cadquery/hull.py -> build/lib/cadquery
copying cadquery/types.py -> build/lib/cadquery
copying cadquery/units.py -> build/lib/cadquery
copying cadquery/__init__.py -> build/lib/cadquery
copying cadquery/cq.py -> build/lib/cadquery
copying cadquery/utils.py -> build/lib/cadquery
copying cadquery/assembly.py -> build/lib/cadquery
copying cadquery/sketch.py -> build/lib/cadquery
creating build/lib/cadquery/plugins
copying cadquery/plugins/__init__.py -> build/lib/cadquery/plugins
creating build/lib/cadquery/contrib
copying cadquery/contrib/__init__.py -> build/lib/cadquery/contrib
creating build/lib/cadquery/occ_impl
copying cadquery/occ_impl/sketch_solver.py -> build/lib/cadquery/occ_impl
copying cadquery/occ_impl/geom.py -> build/lib/cadquery/occ_impl
copying cadquery/occ_impl/__init__.py -> build/lib/cadquery/occ_impl
copying cadquery/occ_impl/shapes.py -> build/lib/cadquery/occ_impl
copying cadquery/occ_impl/solver.py -> build/lib/cadquery/occ_impl
copying cadquery/occ_impl/jupyter_tools.py -> build/lib/cadquery/occ_impl
copying cadquery/occ_impl/assembly.py -> build/lib/cadquery/occ_impl
creating build/lib/cadquery/occ_impl/importers
copying cadquery/occ_impl/importers/__init__.py -> build/lib/cadquery/occ_impl/importers
copying cadquery/occ_impl/importers/dxf.py -> build/lib/cadquery/occ_impl/importers
creating build/lib/cadquery/occ_impl/exporters
copying cadquery/occ_impl/exporters/amf.py -> build/lib/cadquery/occ_impl/exporters
copying cadquery/occ_impl/exporters/__init__.py -> build/lib/cadquery/occ_impl/exporters
copying cadquery/occ_impl/exporters/dxf.py -> build/lib/cadquery/occ_impl/exporters
copying cadquery/occ_impl/exporters/svg.py -> build/lib/cadquery/occ_impl/exporters
copying cadquery/occ_impl/exporters/json.py -> build/lib/cadquery/occ_impl/exporters
copying cadquery/occ_impl/exporters/vtk.py -> build/lib/cadquery/occ_impl/exporters
copying cadquery/occ_impl/exporters/utils.py -> build/lib/cadquery/occ_impl/exporters
copying cadquery/occ_impl/exporters/assembly.py -> build/lib/cadquery/occ_impl/exporters
running egg_info
creating cadquery.egg-info
writing cadquery.egg-info/PKG-INFO
writing dependency_links to cadquery.egg-info/dependency_links.txt
writing top-level names to cadquery.egg-info/top_level.txt
writing manifest file 'cadquery.egg-info/SOURCES.txt'
reading manifest file 'cadquery.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'cadquery.egg-info/SOURCES.txt'
copying cadquery/py.typed -> build/lib/cadquery
/nix/store/xi8ha1k3mjpmnmmi5fp7fmq41f2wwghm-python3.9-setuptools-61.2.0/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/cadquery
copying build/lib/cadquery/selectors.py -> build/bdist.linux-x86_64/wheel/cadquery
copying build/lib/cadquery/cq_directive.py -> build/bdist.linux-x86_64/wheel/cadquery
copying build/lib/cadquery/cqgi.py -> build/bdist.linux-x86_64/wheel/cadquery
copying build/lib/cadquery/hull.py -> build/bdist.linux-x86_64/wheel/cadquery
creating build/bdist.linux-x86_64/wheel/cadquery/plugins
copying build/lib/cadquery/plugins/__init__.py -> build/bdist.linux-x86_64/wheel/cadquery/plugins
copying build/lib/cadquery/types.py -> build/bdist.linux-x86_64/wheel/cadquery
copying build/lib/cadquery/units.py -> build/bdist.linux-x86_64/wheel/cadquery
copying build/lib/cadquery/__init__.py -> build/bdist.linux-x86_64/wheel/cadquery
copying build/lib/cadquery/cq.py -> build/bdist.linux-x86_64/wheel/cadquery
creating build/bdist.linux-x86_64/wheel/cadquery/contrib
copying build/lib/cadquery/contrib/__init__.py -> build/bdist.linux-x86_64/wheel/cadquery/contrib
creating build/bdist.linux-x86_64/wheel/cadquery/occ_impl
creating build/bdist.linux-x86_64/wheel/cadquery/occ_impl/importers
copying build/lib/cadquery/occ_impl/importers/__init__.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl/importers
copying build/lib/cadquery/occ_impl/importers/dxf.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl/importers
copying build/lib/cadquery/occ_impl/sketch_solver.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl
copying build/lib/cadquery/occ_impl/geom.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl
copying build/lib/cadquery/occ_impl/__init__.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl
creating build/bdist.linux-x86_64/wheel/cadquery/occ_impl/exporters
copying build/lib/cadquery/occ_impl/exporters/amf.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl/exporters
copying build/lib/cadquery/occ_impl/exporters/__init__.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl/exporters
copying build/lib/cadquery/occ_impl/exporters/dxf.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl/exporters
copying build/lib/cadquery/occ_impl/exporters/svg.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl/exporters
copying build/lib/cadquery/occ_impl/exporters/json.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl/exporters
copying build/lib/cadquery/occ_impl/exporters/vtk.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl/exporters
copying build/lib/cadquery/occ_impl/exporters/utils.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl/exporters
copying build/lib/cadquery/occ_impl/exporters/assembly.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl/exporters
copying build/lib/cadquery/occ_impl/shapes.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl
copying build/lib/cadquery/occ_impl/solver.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl
copying build/lib/cadquery/occ_impl/jupyter_tools.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl
copying build/lib/cadquery/occ_impl/assembly.py -> build/bdist.linux-x86_64/wheel/cadquery/occ_impl
copying build/lib/cadquery/utils.py -> build/bdist.linux-x86_64/wheel/cadquery
copying build/lib/cadquery/assembly.py -> build/bdist.linux-x86_64/wheel/cadquery
copying build/lib/cadquery/sketch.py -> build/bdist.linux-x86_64/wheel/cadquery
copying build/lib/cadquery/py.typed -> build/bdist.linux-x86_64/wheel/cadquery
running install_egg_info
Copying cadquery.egg-info to build/bdist.linux-x86_64/wheel/cadquery-2.1-py3.9.egg-info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-x86_64/wheel/cadquery-2.1.dist-info/WHEEL
creating 'dist/cadquery-2.1-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'cadquery/__init__.py'
adding 'cadquery/assembly.py'
adding 'cadquery/cq.py'
adding 'cadquery/cq_directive.py'
adding 'cadquery/cqgi.py'
adding 'cadquery/hull.py'
adding 'cadquery/py.typed'
adding 'cadquery/selectors.py'
adding 'cadquery/sketch.py'
adding 'cadquery/types.py'
adding 'cadquery/units.py'
adding 'cadquery/utils.py'
adding 'cadquery/contrib/__init__.py'
adding 'cadquery/occ_impl/__init__.py'
adding 'cadquery/occ_impl/assembly.py'
adding 'cadquery/occ_impl/geom.py'
adding 'cadquery/occ_impl/jupyter_tools.py'
adding 'cadquery/occ_impl/shapes.py'
adding 'cadquery/occ_impl/sketch_solver.py'
adding 'cadquery/occ_impl/solver.py'
adding 'cadquery/occ_impl/exporters/__init__.py'
adding 'cadquery/occ_impl/exporters/amf.py'
adding 'cadquery/occ_impl/exporters/assembly.py'
adding 'cadquery/occ_impl/exporters/dxf.py'
adding 'cadquery/occ_impl/exporters/json.py'
adding 'cadquery/occ_impl/exporters/svg.py'
adding 'cadquery/occ_impl/exporters/utils.py'
adding 'cadquery/occ_impl/exporters/vtk.py'
adding 'cadquery/occ_impl/importers/__init__.py'
adding 'cadquery/occ_impl/importers/dxf.py'
adding 'cadquery/plugins/__init__.py'
adding 'cadquery-2.1.dist-info/LICENSE'
adding 'cadquery-2.1.dist-info/METADATA'
adding 'cadquery-2.1.dist-info/WHEEL'
adding 'cadquery-2.1.dist-info/top_level.txt'
adding 'cadquery-2.1.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Finished executing setuptoolsBuildPhase
installing
Executing pipInstallPhase
/build/source/dist /build/source
Processing ./cadquery-2.1-py3-none-any.whl
Installing collected packages: cadquery
Successfully installed cadquery-2.1
/build/source
Finished executing pipInstallPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/zrz2bn2n4fl0l7vxwv5wbnnz6lij1a09-python3.9-cadquery-3efb080
strip is /nix/store/58pwclg9yr437h0pfgrnbd0jis8fqasd-gcc-wrapper-11.2.0/bin/strip
stripping (with command strip and flags -S) in /nix/store/zrz2bn2n4fl0l7vxwv5wbnnz6lij1a09-python3.9-cadquery-3efb080/lib 
patching script interpreter paths in /nix/store/zrz2bn2n4fl0l7vxwv5wbnnz6lij1a09-python3.9-cadquery-3efb080
checking for references to /build/ in /nix/store/zrz2bn2n4fl0l7vxwv5wbnnz6lij1a09-python3.9-cadquery-3efb080...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
running install tests
no Makefile or custom installCheckPhase, doing nothing
pythonCatchConflictsPhase
pythonRemoveBinBytecodePhase
pythonImportsCheckPhase
Executing pythonImportsCheckPhase
pytestXdistHook
pytestCheckPhase
Executing pytestCheckPhase
============================= test session starts ==============================
platform linux -- Python 3.9.12, pytest-7.1.1, pluggy-1.0.0
rootdir: /build/source
plugins: xdist-2.5.0, forked-1.4.0
gw0 [0] / gw1 [0] / gw2 [0] / gw3 [0] / gw4 [0] / gw5 [0] / gw6 [0] / gw7 [0] / gw8 [0] / gw9 [0] / gw10 [0] / gw11 [0][1m

==================================== ERRORS ====================================
___________________ ERROR collecting tests/test_assembly.py ____________________
ImportError while importing test module '/build/source/tests/test_assembly.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
cadquery/__init__.py:2: in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
cadquery/occ_impl/geom.py:5: in <module>
    from OCP.gp import (
E   ImportError: /nix/store/qzmc7fyy2936ra42l7hc02hm21v0szfy-gcc-9.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /nix/store/8az7bxdyfs32ya11cz57pqr70vhvw08s-vtk-9.1.0/lib/libvtkWrappingPythonCore3.9-9.1.so.1)
__________________ ERROR collecting tests/test_cad_objects.py __________________
ImportError while importing test module '/build/source/tests/test_cad_objects.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
cadquery/__init__.py:2: in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
cadquery/occ_impl/geom.py:5: in <module>
    from OCP.gp import (
E   ImportError: /nix/store/qzmc7fyy2936ra42l7hc02hm21v0szfy-gcc-9.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /nix/store/8az7bxdyfs32ya11cz57pqr70vhvw08s-vtk-9.1.0/lib/libvtkWrappingPythonCore3.9-9.1.so.1)
___________________ ERROR collecting tests/test_cadquery.py ____________________
ImportError while importing test module '/build/source/tests/test_cadquery.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
cadquery/__init__.py:2: in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
cadquery/occ_impl/geom.py:5: in <module>
    from OCP.gp import (
E   ImportError: /nix/store/qzmc7fyy2936ra42l7hc02hm21v0szfy-gcc-9.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /nix/store/8az7bxdyfs32ya11cz57pqr70vhvw08s-vtk-9.1.0/lib/libvtkWrappingPythonCore3.9-9.1.so.1)
_____________________ ERROR collecting tests/test_cqgi.py ______________________
ImportError while importing test module '/build/source/tests/test_cqgi.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
cadquery/__init__.py:2: in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
cadquery/occ_impl/geom.py:5: in <module>
    from OCP.gp import (
E   ImportError: /nix/store/qzmc7fyy2936ra42l7hc02hm21v0szfy-gcc-9.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /nix/store/8az7bxdyfs32ya11cz57pqr70vhvw08s-vtk-9.1.0/lib/libvtkWrappingPythonCore3.9-9.1.so.1)
___________________ ERROR collecting tests/test_examples.py ____________________
ImportError while importing test module '/build/source/tests/test_examples.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
cadquery/__init__.py:2: in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
cadquery/occ_impl/geom.py:5: in <module>
    from OCP.gp import (
E   ImportError: /nix/store/qzmc7fyy2936ra42l7hc02hm21v0szfy-gcc-9.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /nix/store/8az7bxdyfs32ya11cz57pqr70vhvw08s-vtk-9.1.0/lib/libvtkWrappingPythonCore3.9-9.1.so.1)
___________________ ERROR collecting tests/test_exporters.py ___________________
ImportError while importing test module '/build/source/tests/test_exporters.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
cadquery/__init__.py:2: in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
cadquery/occ_impl/geom.py:5: in <module>
    from OCP.gp import (
E   ImportError: /nix/store/qzmc7fyy2936ra42l7hc02hm21v0szfy-gcc-9.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /nix/store/8az7bxdyfs32ya11cz57pqr70vhvw08s-vtk-9.1.0/lib/libvtkWrappingPythonCore3.9-9.1.so.1)
_____________________ ERROR collecting tests/test_hull.py ______________________
ImportError while importing test module '/build/source/tests/test_hull.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
cadquery/__init__.py:2: in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
cadquery/occ_impl/geom.py:5: in <module>
    from OCP.gp import (
E   ImportError: /nix/store/qzmc7fyy2936ra42l7hc02hm21v0szfy-gcc-9.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /nix/store/8az7bxdyfs32ya11cz57pqr70vhvw08s-vtk-9.1.0/lib/libvtkWrappingPythonCore3.9-9.1.so.1)
___________________ ERROR collecting tests/test_importers.py ___________________
ImportError while importing test module '/build/source/tests/test_importers.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
cadquery/__init__.py:2: in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
cadquery/occ_impl/geom.py:5: in <module>
    from OCP.gp import (
E   ImportError: /nix/store/qzmc7fyy2936ra42l7hc02hm21v0szfy-gcc-9.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /nix/store/8az7bxdyfs32ya11cz57pqr70vhvw08s-vtk-9.1.0/lib/libvtkWrappingPythonCore3.9-9.1.so.1)
____________________ ERROR collecting tests/test_jupyter.py ____________________
ImportError while importing test module '/build/source/tests/test_jupyter.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
cadquery/__init__.py:2: in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
cadquery/occ_impl/geom.py:5: in <module>
    from OCP.gp import (
E   ImportError: /nix/store/qzmc7fyy2936ra42l7hc02hm21v0szfy-gcc-9.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /nix/store/8az7bxdyfs32ya11cz57pqr70vhvw08s-vtk-9.1.0/lib/libvtkWrappingPythonCore3.9-9.1.so.1)
___________________ ERROR collecting tests/test_selectors.py ___________________
ImportError while importing test module '/build/source/tests/test_selectors.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
cadquery/__init__.py:2: in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
cadquery/occ_impl/geom.py:5: in <module>
    from OCP.gp import (
E   ImportError: /nix/store/qzmc7fyy2936ra42l7hc02hm21v0szfy-gcc-9.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /nix/store/8az7bxdyfs32ya11cz57pqr70vhvw08s-vtk-9.1.0/lib/libvtkWrappingPythonCore3.9-9.1.so.1)
____________________ ERROR collecting tests/test_sketch.py _____________________
ImportError while importing test module '/build/source/tests/test_sketch.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
cadquery/__init__.py:2: in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
cadquery/occ_impl/geom.py:5: in <module>
    from OCP.gp import (
E   ImportError: /nix/store/qzmc7fyy2936ra42l7hc02hm21v0szfy-gcc-9.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /nix/store/8az7bxdyfs32ya11cz57pqr70vhvw08s-vtk-9.1.0/lib/libvtkWrappingPythonCore3.9-9.1.so.1)
_____________________ ERROR collecting tests/test_utils.py _____________________
ImportError while importing test module '/build/source/tests/test_utils.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
cadquery/__init__.py:2: in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
cadquery/occ_impl/geom.py:5: in <module>
    from OCP.gp import (
E   ImportError: /nix/store/qzmc7fyy2936ra42l7hc02hm21v0szfy-gcc-9.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /nix/store/8az7bxdyfs32ya11cz57pqr70vhvw08s-vtk-9.1.0/lib/libvtkWrappingPythonCore3.9-9.1.so.1)
__________________ ERROR collecting tests/test_workplanes.py ___________________
ImportError while importing test module '/build/source/tests/test_workplanes.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
cadquery/__init__.py:2: in <module>
    from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
cadquery/occ_impl/geom.py:5: in <module>
    from OCP.gp import (
E   ImportError: /nix/store/qzmc7fyy2936ra42l7hc02hm21v0szfy-gcc-9.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /nix/store/8az7bxdyfs32ya11cz57pqr70vhvw08s-vtk-9.1.0/lib/libvtkWrappingPythonCore3.9-9.1.so.1)
=========================== short test summary info ============================
ERROR tests/test_assembly.py
ERROR tests/test_cad_objects.py
ERROR tests/test_cadquery.py
ERROR tests/test_cqgi.py
ERROR tests/test_examples.py
ERROR tests/test_exporters.py
ERROR tests/test_hull.py
ERROR tests/test_importers.py
ERROR tests/test_jupyter.py
ERROR tests/test_selectors.py
ERROR tests/test_sketch.py
ERROR tests/test_utils.py
ERROR tests/test_workplanes.py
============================== 13 errors in 7.24s ==============================

I have a feeling you might know why the checks for CadQuery fails.

Files are here https://github.com/eyJhb/cq-flake in fixup branch, but with tests enabled :)

Thought I might continue this thread, if you don't mind :)

@marcus7070
Copy link
Collaborator

So I would guess your first commit on your fixup branch works, and the second commit where you move to Python 3.9 generates this error?

I'm on a work trip so I can't help more right now, but I'll see if I can figure out anything on the weekend.

@Ralith
Copy link

Ralith commented Apr 19, 2023

Would love to see this happen sometime!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants