roipoussiere / cadquery-vscode

Build parametric 2D/3D CAD models in VSCode with the CadQuery library.
https://open-vsx.org/extension/roipoussiere/cadquery
MIT License
17 stars 4 forks source link

Help: cq-server won't start after virtual pip install #11

Open Dorro101 opened 2 years ago

Dorro101 commented 2 years ago

Hi roipoussiere

I have been using OpenSCAD in VSCodium for a while now, however, as my models become more complex, I am running into performance issues, so I decided to give CadQuery a whirl. I followed your instructions provided and when I tried to start cq-server from the terminal it would not start... Screenshot from 2022-07-04 13-25-15 As my programming skills are wildly dangerous at best, I am unsure how to proceed. I have thought of following the installation instructions on the CadQuery2 wiki, but would prefer to use VSCodium and preview my files there. I am using a Lenovo Thinkpad X1 Tablet running Fedora 36, Gnome 42, Python 3.10.5 and the latest version of VSCodium. I deleted the venv folder and retried in case I had messed something up. I know that Fedora 36 changed some of the site package installation directories, but I assumed the virtual environment thing would avoid any issues.

Any help resolving this issue would be greatly appreciated.

Thanks Dorian

snapo commented 2 years ago

this says you dont have cadquery installed.... can you try a pip install git+https://github.com/CadQuery/cadquery.git This should install the latest version and then the server should be able to start...

Do this in your virtualenv :-)

Dorro101 commented 2 years ago

Hi all

I managed to get cadquery and cq-server working in VSCodium. I had to pip install cadquery==2.2.0b0 as the mainline install doesn't work with pip apparently. I have also learnt the hard way (clean os install in my near future) to never, ever, ever use sudo pip for anything and use a virtual environment. I had a few issues with cq-server. I had to change show_object() to just show() to get the server to display a preview. It also is rather sensitive to tab operations giving me a black screen when closing a file window or rmoving the tab. Its neither here nor there, as I will have to put in some serious time with CadQuery before I am in a position to provide any kind of feedback...

Ciao Dorian

roipoussiere commented 1 year ago

Hello Dorro101, sorry for the long delay. This project is going to be replaced by the new cadquery-server: https://github.com/roipoussiere/cadquery-server. Do you want to give a try? There is a docker image if you want to be sure to don't mess up your system. And yes as snapo said above and explained in the readme, using a virtualenv is recommended.

Dorro101 commented 1 year ago

Thanks for the heads up. I will give it a go as soon as I have done a clean reinstall of Fedora on my new system. Just waiting for my new GPU and a few outstanding parts and I'll be good to go. I will let you know how it goes and any problems I have. I was able to finish my prototypes using OpenSCAD, using CLI and much patience to render STLs in the background, and put my outstanding projects on hold until my new hardware is up and running. Happy to see progress on this project thanks to your time and coding chops!

Ciao Dorian