bellockk / alphashape

Toolbox for constructing alpha shapes.
MIT License
252 stars 28 forks source link

Updates to stable versions #46

Open wischmcj opened 10 months ago

wischmcj commented 10 months ago

Description

Identified some libraries that can be updated to allow the tutorial to function properly

What I Did

Attempted to run the tutorial but found the same issues as motioned in https://github.com/bellockk/alphashape/issues/44

Attempted to match my env to that described in requirements.txt (note that this is different than that described in setup.py) and found that many library versions used are no longer stable and fail on install.

pip install shapely==1.7.0

[21 lines of output] Traceback (most recent call last): File "C:\Users\wisch\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module> main() File "C:\Users\wisch\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "C:\Users\wisch\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "C:\Users\wisch\AppData\Local\Temp\pip-build-env-2jghjqcx\overlay\Lib\site-packages\setuptools\build_meta.py", line 355, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) File "C:\Users\wisch\AppData\Local\Temp\pip-build-env-2jghjqcx\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in _get_build_requires self.run_setup() File "C:\Users\wisch\AppData\Local\Temp\pip-build-env-2jghjqcx\overlay\Lib\site-packages\setuptools\build_meta.py", line 507, in run_setup super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script) File "C:\Users\wisch\AppData\Local\Temp\pip-build-env-2jghjqcx\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in run_setup exec(code, locals()) File "<string>", line 85, in <module> File "C:\Users\wisch\AppData\Local\Temp\pip-install-tt23r6e_\shapely_7768876d24d64883a68e39f25fabf682\shapely\_buildcfg.py", line 205, in <module> lgeos = CDLL("geos_c.dll") File "C:\Users\wisch\AppData\Local\Programs\Python\Python310\lib\ctypes\__init__.py", line 374, in __init__ self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax.

pip install scipy==1.5.2

` C:\Users\wisch\AppData\Local\Temp\pip-install-n4htu1uc\numpy_7f356b0642a84939984027a4849e48bc\numpy\distutils\system_info.py:1712: UserWarning: Lapack (http://www.netlib.org/lapack/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [lapack_src]) or by setting the LAPACK_SRC environment variable. if getattr(self, '_calcinfo{}'.format(lapack))(): NOT AVAILABLE

    C:\Users\wisch\AppData\Local\Temp\pip-build-env-2r1mfm2k\overlay\Lib\site-packages\setuptools\_distutils\dist.py:265: UserWarning: Unknown distribution option: 'define_macros'
      warnings.warn(msg)
    running dist_info
    running build_src
    build_src
    building py_modules sources
    creating build
    creating build\src.win-amd64-3.1
    creating build\src.win-amd64-3.1\numpy
    creating build\src.win-amd64-3.1\numpy\distutils
    building library "npymath" sources
    No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: metadata-generation-failed`

What I Expected

Successfully installed shapely-1.8.0 Successfully installed scipy-1.5.2

Acceptance Criteria

successful run of the following

python -m venv c:\path\to\myenv c:\path\to\myenv\Scripts\activate.ps1 pip install -r requirements.txt returns: Successfully installed <libraries listed in requirements.txt>