-
Notifications
You must be signed in to change notification settings - Fork 299
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
OCP 7.7.2 #1440
OCP 7.7.2 #1440
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1440 +/- ##
==========================================
+ Coverage 94.32% 94.64% +0.31%
==========================================
Files 28 28
Lines 5813 6530 +717
Branches 994 1303 +309
==========================================
+ Hits 5483 6180 +697
- Misses 198 220 +22
+ Partials 132 130 -2 ☔ View full report in Codecov by Sentry. |
@lorenzncode @jmwright could you tests this locally? If all is fine, I'll release OCP 7.7.2 and update the conda-forge recipe and finally update cq. |
It looks good here. All tests with OCP 7.7.2.0dev pass locally on Linux with Python 3.9, 3.10, 3.11 (with the exception of #1441 unrelated to the OCP update). I checked some of the open kernel issues but did not find any to be closed by the update. |
It looks good to me to, but I'm leaving the KiCAD generator running with 7.7.2.0dev overnight to see if anything strange happens. I should be able to report back in the morning. |
There is a KiCAD model generator that throws a fuse error now that did not before, but it is a model that has always been problemmatic. I am still investigating, but I do not think that should hold up this PR. |
Thanks! |
Actually, after digging back through the log I notice a model that is |
@jmwright did you manage to find something? |
@adam-urbanczyk There were some KiCAD models that failed to fuse with 7.7.2, but it seems like OCCT just got more picky about fusing. I think it is a problem with the KiCAD models instead of the kernel. Some of the KiCAD libraries have messy models, with placeholder solids floating just a little bit away from the main solid, and things like that. I think it is fine to move to OCP 7.7.2 and I can work on fixing the KiCAD models when I get a chance. |
Conda-forge builds ocp7.7.2 also for py3.12, so this PR is in principle ready |
@adam-urbanczyk I'm building an environment to dogfood this for the next couple of days. I will report back. |
@adam-urbanczyk I am having trouble getting a Python 3.12 environment to build successfully with conda. The only thing I've been able to do is mix conda and pip and so I can't tell if the errors I'm getting with |
@adam-urbanczyk Thanks for fixing that. I have a working environment now. When I open a repl and try to import CadQuery, I see the following. y$ python
Python 3.12.0 | packaged by conda-forge | (main, Oct 3 2023, 08:43:22) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cadquery as cq
/home/jwright/repos/cadquery/cadquery/assembly.py:462: SyntaxWarning: invalid escape sequence '\*'
""" This seems to be the line it is complaining about. |
Also,
Here is the vtk info for my system. It is Ubuntu 22.04 running on WSL2 on Windows.
I can try on a bare metal Linux system if the above error is not reproducible. When I drop back to Python 3.11, the syntax warning I posted above goes away, but |
I cannot reproduce on windows. WSL and gl might be tricky. I'll take look on bare linux |
I tried on a separate laptop with Linux running directly on the hardware, and get the same error. |
All tests pass with the new envs.
|
Same for me. If I try to run vtk's hello world I also get it. So seems to be a vtk issue, I'll try to ask around. |
🤦 |
I updated the env, it should work now. |
Confirmed show is working now. A double-backslash in the docstring can resolve the Python 3.12 SyntaxWarning. Line 469 in f587438
|
Thanks. Give me a a few more days using this environment now that |
@adam-urbanczyk Did you change the black version because of Python 3.12? |
@lorenzncode thanks! @jmwright indeed, I'm converting back to draft to solve the black issue. My angle of attack will be to switch to a different tool (yapf) and try to replicate the current style with it. |
OK, I fixed the issue by forking black 19.10b0 and fixing it for 3.12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @adam-urbanczyk !
I did not find any new issues. Hopefully the black fork will not require much maintenance in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thanks @adam-urbanczyk . I have been using this in my main CQ environment and have not found any other issues.
Alright, merging. |
I missed that the Python 3.12 pin was still in environment.yml. Did we mean to leave that in there? |
Hm, not sure. I'll revert to >=3.8 for now. We could also consider moving to |
Move to OCP 7.7.2