cadquery-vscode icon indicating copy to clipboard operation
cadquery-vscode copied to clipboard

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

Open Dorro101 opened this issue 3 years ago • 4 comments

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

Dorro101 avatar Jul 04 '22 05:07 Dorro101

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 :-)

snapo avatar Jul 05 '22 14:07 snapo

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

Dorro101 avatar Jul 06 '22 00:07 Dorro101

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.

lypwig avatar Sep 12 '22 10:09 lypwig

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

Dorro101 avatar Sep 13 '22 11:09 Dorro101