Skip to content

can't import cadquery #42

Open
Open
@RemDelaporteMathurin

Description

@RemDelaporteMathurin

How to reproduce the issue:

  1. Run:
docker run -it ghcr.io/fusion-energy/fusion-neutronics-workflow

using the latest tag

  1. Navigate to the examples folder:
cd examples/example_01_single_volume_cell_tally/
  1. Run
python 1_create_cad_and_convert_to_dagmc.py

This produces:

Traceback (most recent call last):
  File "1_create_cad_and_convert_to_dagmc.py", line 4, in <module>
    import paramak
  File "/opt/conda/lib/python3.8/site-packages/paramak/__init__.py", line 14, in <module>
    from .shape import Shape
  File "/opt/conda/lib/python3.8/site-packages/paramak/shape.py", line 10, in <module>
    import cadquery as cq
  File "/opt/conda/lib/python3.8/site-packages/cadquery/__init__.py", line 14, in <module>
    from .occ_impl import exporters
  File "/opt/conda/lib/python3.8/site-packages/cadquery/occ_impl/exporters/__init__.py", line 10, in <module>
    from ...cq import Workplane
  File "/opt/conda/lib/python3.8/site-packages/cadquery/cq.py", line 54, in <module>
    from .selectors import (
  File "/opt/conda/lib/python3.8/site-packages/cadquery/selectors.py", line 23, in <module>
    from pyparsing import (
ImportError: cannot import name 'upcaseTokens' from 'pyparsing' (/opt/conda/lib/python3.8/site-packages/pyparsing/__init__.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions