python 3.8

81 views
Skip to first unread message

Jonathan Shimwell

unread,
Aug 9, 2020, 2:27:15 PM8/9/20
to CadQuery
Has anyone got CADQuery working on python 3.8,

It appears to not quite work over here

I've tried conda install -c conda-forge -c cadquery cadquery=master and conda install -c conda-forge -c cadquery cadquery=2

all the best

Jon
Screenshot from 2020-08-09 19-12-35.png

Wink Saville

unread,
Aug 9, 2020, 4:00:58 PM8/9/20
to CadQuery
I have Arch Linux and typically use python 3.8 and I to found cadquery doesn't like that version.

Therefore use 3.7.x, for cadquery, you can specifiy the python version when you create a conda environemnt see this:

I'd sure like cadquery to move to 3.8, which is now the default for anaconda, according to this:


Jeremy Wright

unread,
Aug 10, 2020, 7:07:16 AM8/10/20
to CadQuery
Do you get an error running CQ on Python 3.8? I was under the impression that after #305 was merged 3.8 worked, but don't use 3.8 yet so haven't verified.

Wink Saville

unread,
Aug 10, 2020, 9:21:35 AM8/10/20
to CadQuery
I'll try 3.8 on master today.

Jonathan Shimwell

unread,
Aug 10, 2020, 9:31:21 AM8/10/20
to CadQuery
Hi all

To demonstrate the new anaconda (which uses python 3.8 installer) compared to the previous one (with python 3.7 installer) I have made two docker images and tried to build them both.

Docker images attached for interest

best

Jon
Dockerfile37
Dockerfile38

Wink Saville

unread,
Aug 10, 2020, 1:16:09 PM8/10/20
to CadQuery
I'm using miniconda3 on Arch Linux which defaults to python 3.8 but
when I installed cadquery using `conda env create -n cq-dev -f environment.yml` 
on master it installed python 3.7. So I had to modify environment.yml to get python 3.8:

wink@3900x:~/prgs/CadQuery/forks/cadquery (master)
$ git diff environment.yml
diff --git a/environment.yml b/environment.yml
index 2cb5548..44f28b9 100644
--- a/environment.yml
+++ b/environment.yml
@@ -4,8 +4,8 @@ channels:
   - conda-forge
   - defaults
 dependencies:
-  - python>=3.6
-  - ipython=6.5.0
+  - python>=3.8
+  - ipython
   - ocp
   - pyparsing
   - sphinx=2.4


I then tested "box.py" using a python 3.8 feature where
you can easily print values using this syntax: f"{result=}"

(cq-dev2) wink@3900x:~/prgs/CadQuery/projects/box
$ cat box.py
import cadquery as cq
result = cq.Workplane("front").box(2.0, 2.0, 0.5)
print(f"{result=}")

(cq-dev2) wink@3900x:~/prgs/CadQuery/projects/box
$ python box.py
result=<cadquery.cq.Workplane object at 0x7f45285826a0>

Jeremy Wright

unread,
Aug 10, 2020, 4:48:30 PM8/10/20
to CadQuery

Adam Urbanczyk

unread,
Aug 10, 2020, 5:41:26 PM8/10/20
to CadQuery
Hi, yes its should be possible to build a conda package for 3.8. OCP already builds for 3.8.

Adam Urbanczyk

unread,
Aug 12, 2020, 12:29:44 PM8/12/20
to CadQuery
DA, it should be possible to install CQ with conda for py3.8 now.

Zbyněk Winkler

unread,
Aug 14, 2020, 9:10:29 AM8/14/20
to CadQuery
I was able to install cq with python 3.8. Now cq-editor complains:

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - cq-editor=master -> python[version='>=3.7,<3.8.0a0']

Your python: python=3.8


--
cadquery home: https://github.com/CadQuery/cadquery
post issues at https://github.com/CadQuery/cadquery/issues
run it at home at : https://github.com/CadQuery/CQ-editor
---
You received this message because you are subscribed to the Google Groups "CadQuery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cadquery+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cadquery/07565682-86d7-4692-84b2-a15e97932e95n%40googlegroups.com.

Adam Urbanczyk

unread,
Aug 14, 2020, 12:55:26 PM8/14/20
to CadQuery
Yes, that is expected - CQ-editor is not yet python 3.8 compatible. No ETA yet, I have more interesting things to do at the moment.
Reply all
Reply to author
Forward
0 new messages