CQ-editor icon indicating copy to clipboard operation
CQ-editor copied to clipboard

CQ-Editor binary release for Linux ignores Conda environment

Open wcraigtrader opened this issue 4 years ago • 2 comments

I downloaded and installed the 0.2 binary release in /opt/cq-editor. I'm using miniconda3 to manage my environment; as such I have a cad environment that includes all of the CadQuery libraries as well as other packages I need/like. Here's the sys.path when I start Python from a command line.

$ python -c "import sys ; print( '\n'.join( sys.path ) )"

/opt/miniconda3/envs/cad/lib/python38.zip
/opt/miniconda3/envs/cad/lib/python3.8
/opt/miniconda3/envs/cad/lib/python3.8/lib-dynload
/home/ct7/.local/lib/python3.8/site-packages
/opt/miniconda3/envs/cad/lib/python3.8/site-packages

When I start CQ-Editor from the command line with this env activated, the sys.path doesn't include my environment.

import sys

print( '\n'.join( sys.path ) )
/opt/cq-editor/CQ-editor/base_library.zip
/opt/cq-editor/CQ-editor
/opt/cq-editor/CQ-editor/IPython/extensions

There should be a way to include other packages / libraries into the CQ-editor environment.

wcraigtrader avatar Mar 18 '21 17:03 wcraigtrader

The binary release is a pyinstaller bundle. If you already have conda, use the provided conda packages from the cadquery channel

adam-urbanczyk avatar Mar 18 '21 17:03 adam-urbanczyk

The binary release is a pyinstaller bundle. If you already have conda, use the provided conda packages from the cadquery channel

See #250 for why that doesn't help me.

wcraigtrader avatar Mar 18 '21 19:03 wcraigtrader