gumyr / build123d

A python CAD programming library
Apache License 2.0
395 stars 72 forks source link

No matching distribution found for cadquery-ocp #373

Open MurKit opened 8 months ago

MurKit commented 8 months ago

Ubuntu 20 Python 3.11.5 pip 23.2.1 from /home/me/miniconda3/lib/python3.11/site-packages/pip (python 3.11)

python3 -m pip install git+https://github.com/gumyr/build123d
...
ERROR: Could not find a version that satisfies the requirement cadquery-ocp~=7.7.1 (from build123d) (from versions: none)
ERROR: No matching distribution found for cadquery-ocp~=7.7.1

Other issues that did not help me:

pip install numpy-stl didn't help https://github.com/gumyr/build123d/issues/289

looks like the update doesn't work for me here https://github.com/gumyr/build123d/pull/333

maybe related to apple silicon somehow https://github.com/gumyr/build123d/pull/330

gumyr commented 8 months ago

If you using a Mac with Apple silicon you need to follow the instructions listed here: https://build123d.readthedocs.io/en/latest/installation.html#special-notes-on-apple-silicon-installs

gumyr commented 8 months ago

If you're running Ubuntu 20 there may be issues - IIRC there was a need for some custom settings. Are you able to use a more up-to-date version of Ubuntu? I use Ubuntu 23.04.

MurKit commented 8 months ago

Sorry didn't mention it - I use an AMD and not apple.

Yeah I guess updating the system looks like an easier option. I was just trying to run with what I have now.

jdegenstein commented 8 months ago

Jumping in here late, you should be able to install cadquery-ocp (aka ocp) from conda-forge on Ubuntu 20.04 -- for some reason the manylinux version was increased on the pypi packages which broke compatibility with Ubuntu 20.04 (as you noticed with our readthedocs builds).

MurKit commented 8 months ago

conda is so broken, couldn't install ocp with it, oh well

gumyr commented 8 months ago

Should there be a note in the installation instructions that Ubuntu 20 isn't supported or at least not advised?

jdegenstein commented 8 months ago

No, because I am pretty sure that a conda install of OCP is still possible on Ubuntu 20.04 -- might call for custom commands section in the docs? Maybe we should petition CQ for adjusting the pypi manylinux support back down to 2.31 (from 2.35)? https://pypi.org/project/cadquery-ocp/7.7.1/#files

and https://pypi.org/project/cadquery-ocp/7.7.0/#files

gumyr commented 8 months ago

@jdegenstein you could try to ask Adam to go back but I would guess there's a reason for requiring the upgrade. Ubuntu 20.04 LTS is being supported until 2025 so it would be unfortunate if we can't support it.