hbf / miniball

Fast computation of the smallest enclosing ball of a point set, in low or moderately high dimensions.
132 stars 40 forks source link

error when following Python instructions #36

Open josephko91 opened 1 year ago

josephko91 commented 1 year ago

I am following the instructions on the readme page, but I get the following errors when I try to run pip install setup.py:

ERROR: Could not find a version that satisfies the requirement setup.py (from versions: none) ERROR: No matching distribution found for setup.py

I have also tried to use the --user option and sudo as the instructions suggest. It didn't help.

I'm on a 2014 MacBook Pro with Apple M2 Pro chip if that is relevant.

LeviZhang1996 commented 1 year ago

I got these errors too. image

janbridley commented 11 months ago

Using pip install . solves part of this issue: the output is shown below.

Linux x86-64

pip install .
>Processing /home/jenbrad/miniball/python
>  Preparing metadata (setup.py) ... done
>Requirement already satisfied: numpy in /home/user/envname/lib/python3.10/site-packages >(from miniball==1.0) (1.25.0)
>Using legacy 'setup.py install' for miniball, since package 'wheel' is not installed.
>Installing collected packages: miniball
>  Running setup.py install for miniball ... done
>Successfully installed miniball-1.0

However, I have not been able to get the package to compile on ARM64:

Using a fresh conda environment, this package does install. There seems to be some commonly-used conflicting package that causes the above error that I have not yet identified.

MacOS arm64

pip install .
>//Output as above
janbridley commented 11 months ago

In any case, the setup.py install does not work any longer because that functionality has been deprecated. I can update the documentation, but in the mean time I am working to better understand the package and troubleshoot numerical errors with the python plugin.