bernhard-42 / vscode-cadquery-viewer

A viewer for CadQuery integrated into VS Code based on three-cad-viewer
Apache License 2.0
7 stars 1 forks source link

Cant install CadQuery #6

Closed giannissc closed 1 year ago

giannissc commented 1 year ago

This extension cannot install the cadquery dependency with any of the methods provided.

bernhard-42 commented 1 year ago

Could you add some more details on what you do and what happens? Which version of cq_vscode and ocp_tessellate are you using?

bernhard-42 commented 1 year ago

There is an issue with cadquery installation using conda on Windows, however, with pip it worked for me on both Windows and MacOS (cq_vscode version 0.29.0)

bernhard-42 commented 1 year ago

see https://github.com/bernhard-42/vscode-cadquery-viewer/issues/7

giannissc commented 1 year ago

I am running this on linux This is the error I get with pip

Ignored the following versions that require a different python version: 0.7 Requires-Python ~=2.7, >=3.4

ERROR: Could not find a version that satisfies the requirement casadi (from cadquery) (from versions: none)

ERROR: No matching distribution found for casadi
bernhard-42 commented 1 year ago

VS Code uses pip. are you able to install cadquery in your environment from the command line? Does VS Code use the correct python as seen in the terminal output of VS Code? Is env -u CONDA_PREFIX_1 part of the command? If you look into pypi.org, is casadi supported for your version of Python?

I know lot's of questions. But really all VS Code does is issue the pip command in a terminal ...

giannissc commented 1 year ago

I have actually fixed the issue through vscode. So originally I had a custom environement with all the dependecies installed but the extension would recognise. But it turned out it was just a setting for vscode. This is the solution: Screencast from 2023-03-18 14-38-06.webm