Updated Dockerfile for newer version of CadQuery and cq-cli #374

Merged
jmwright merged 1 commits from main into main 2021-06-24 21:43:04 +02:00
jmwright commented 2021-06-24 16:18:11 +02:00 (Migrated from github.com)

The link in the Dockerfile has been changed to point to release v2.2-beta.1, which is a contrived release system that will allow us to update cq-cli (and thus CadQuery) while not doing a rolling release with master. The next beta release (when/if needed) will be *-beta.2 and so on.

I have tested this version of cq-cli locally in the following use cases, and each one worked.

  1. The braille example, to generate an STL. I was able to import and slice the resulting file fine.
  2. An assembly example using Assembly.toCompound() to convert a CQ assembly to a compound so that it could be exported to STL. If CadHub switches to STEP files we probably won't need this, but for now it's a decent work-around.
  3. The lid example from CadQuery's Discord. This version has the functions available to have the provided solution work. I exported the lid to STL without issue.

I left the stable version RUN line in, but commented it out. My thought was to make it easier to revert back to it if a major issue is discovered with this beta release.

The link in the Dockerfile has been changed to point to release v2.2-beta.1, which is a contrived release system that will allow us to update cq-cli (and thus CadQuery) while not doing a rolling release with master. The next beta release (when/if needed) will be *-beta.2 and so on. I have tested this version of cq-cli locally in the following use cases, and each one worked. 1. The braille example, to generate an STL. I was able to import and slice the resulting file fine. 2. An assembly example using `Assembly.toCompound()` to convert a CQ assembly to a compound so that it could be exported to STL. If CadHub switches to STEP files we probably won't need this, but for now it's a decent work-around. 3. The lid example from CadQuery's Discord. This version has the functions available to have the provided solution work. I exported the lid to STL without issue. I left the stable version `RUN` line in, but commented it out. My thought was to make it easier to revert back to it if a major issue is discovered with this beta release.
Irev-Dev (Migrated from github.com) approved these changes 2021-06-24 21:42:52 +02:00
Irev-Dev (Migrated from github.com) left a comment

Thanks @jmwright

I think when add version support I'll have regular versions and then maybe a "latest" version, with some kind of warning about there being bugs, especially if they're trying to save a project using latest.

Thanks @jmwright I think when add version support I'll have regular versions and then maybe a "latest" version, with some kind of warning about there being bugs, especially if they're trying to save a project using latest.
Irev-Dev commented 2021-06-24 22:27:06 +02:00 (Migrated from github.com)

Having a bit of trouble with this actually @jmwright , must just be env thing since you had it working, but I'm getting the following error when running the docker image.

Traceback (most recent call last):
  File "cq-cli.py", line 5, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 540, in exec_module
  File "cadquery/__init__.py", line 2, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 540, in exec_module
  File "cadquery/occ_impl/geom.py", line 5, in <module>
ImportError: libGLEW.so.2.1: cannot open shared object file: No such file or directory
[31] Failed to execute script cq-cli

Looking in the release zip file, I can't see libGLEW, could it be as simple as it being missing?

Having a bit of trouble with this actually @jmwright , must just be env thing since you had it working, but I'm getting the following error when running the docker image. ``` Traceback (most recent call last): File "cq-cli.py", line 5, in <module> File "PyInstaller/loader/pyimod03_importers.py", line 540, in exec_module File "cadquery/__init__.py", line 2, in <module> File "PyInstaller/loader/pyimod03_importers.py", line 540, in exec_module File "cadquery/occ_impl/geom.py", line 5, in <module> ImportError: libGLEW.so.2.1: cannot open shared object file: No such file or directory [31] Failed to execute script cq-cli ``` Looking in the release zip file, I can't see `libGLEW`, could it be as simple as it being missing?
jmwright commented 2021-06-24 22:56:18 +02:00 (Migrated from github.com)

I think you can just add libglew2.1 to the list of packages in the apt-get install line. I can try to add it and build the image to test, but it will be a little bit.

I think you can just add `libglew2.1` to the list of packages in the apt-get install line. I can try to add it and build the image to test, but it will be a little bit.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: h3n3/cadhub#374