Open RemDelaporteMathurin opened 2 years ago
Subsenquently, I can't import paramak either
Hi Remi, sorry for this bug. Thanks for reporting. I spotted the same bug on my last PR from develop to main and starting fixing this bug. I shall get back to it today.
This bug is due to the dockerfile installing paramak version 0.7 instead of the newer versions such as 0.8.1
I don't think so cause I can also reproduce the error without importing paramak:
1) docker run -it --rm ghcr.io/fusion-energy/fusion-neutronics-workflow
2) run python
3) run import cadquery
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
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)
This bug is due to the dockerfile installing paramak version 0.7 instead of the newer versions such as 0.8.1
Updating to paramak 0.8.1 didn't fix it apparently
https://github.com/fusion-energy/fusion_neutronics_workflow/runs/6653637317?check_suite_focus=true
Installing cadquery-master in a conda environment did not produce the issue:
conda create --name cadquery_temp
conda activate cadquery_temp
conda install -c cadquery -c conda-forge cadquery=master
python
import cadquery
I think the latest release has fixed this error, both CI test routines are working again. Please reopen if this problem persists
How to reproduce the issue:
1) Run:
using the latest tag
2) Navigate to the examples folder:
3) Run
This produces: