{"id":23388,"library":"cadquery-ocp-proxy","title":"CadQuery OCP Proxy","description":"Proxy package that tracks the cadquery_ocp / cadquery_ocp_novtk version to avoid version mismatches. Version 7.9.3.1, released monthly alongside CadQuery OCP. Use this package to pin the OCP version in your CadQuery projects.","status":"active","version":"7.9.3.1","language":"python","source_language":"en","source_url":"https://github.com/CadQuery/cadquery","tags":["cadquery","ocp","open-cascade","cad","3d-modeling"],"install":[{"cmd":"pip install cadquery-ocp-proxy","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required at runtime, version tracked by this proxy","package":"cadquery_ocp","optional":false}],"imports":[{"note":"This proxy enables correct OCP imports for visualization with ocp_vscode.","symbol":"ocp_vscode","correct":"from ocp_vscode import show, show_object"},{"note":"Directly importing from cadquery_ocp is fragile; use cadquery as the public API.","wrong":"from cadquery_ocp import *","symbol":"cadquery","correct":"import cadquery as cq"}],"quickstart":{"code":"import cadquery as cq\n\n# Create a simple box\nbox = cq.Workplane(\"XY\").box(1, 1, 1)\n\n# Export to STL\ncq.exporters.export(box, \"box.stl\")","lang":"python","description":"Basic usage: import cadquery as usual. This proxy ensures the correct OCP version is installed."},"warnings":[{"fix":"Use `import cadquery as cq` and work with the public CadQuery API.","message":"Do NOT import directly from cadquery_ocp or cadquery_ocp_novtk. Always import cadquery for your modeling code.","severity":"gotcha","affected_versions":"all"},{"fix":"Use a requirements.txt or pip freeze to pin both cadquery and cadquery-ocp-proxy to known compatible versions.","message":"This proxy does not pin an exact version of cadquery_ocp; it only tracks the version. Version mismatches can occur if multiple packages require different OCP versions.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install cadquery_ocp separately: `pip install cadquery-ocp` or `pip install cadquery-ocp-proxy cadquery-ocp`.","cause":"The proxy package is installed but does not install cadquery_ocp automatically (it only tracks version).","error":"ModuleNotFoundError: No module named 'cadquery_ocp'"},{"fix":"Create a clean virtual environment and install cadquery-ocp-proxy to the required version. Use `pip freeze` to lock versions.","cause":"Another dependency installed a different version of cadquery_ocp.","error":"RuntimeError: OCP version mismatch: expected x.y.z but got a.b.c"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}