Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to stable versions #46

Open
wischmcj opened this issue Nov 17, 2023 · 0 comments
Open

Updates to stable versions #46

wischmcj opened this issue Nov 17, 2023 · 0 comments

Comments

@wischmcj
Copy link

  • Alpha Shape Toolbox version: 1.3.1
  • Python version: 3.11
  • Operating System: Windows 10

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 #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, 'calc_info{}'.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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant