LarsSchy / SMAC-M

Scripts to convert nautical data and display it with Mapserver
MIT License
66 stars 33 forks source link

Filed to install GDAL in the virtual environment. #32

Open VladimirKalachikhin opened 3 years ago

VladimirKalachikhin commented 3 years ago
:~/SMAC-M$ pipenv run pip install "GDAL<=$(gdal-config --version)"
Loading .env environment variables...
Collecting GDAL<=2.4.2
  Downloading GDAL-2.4.2.tar.gz (564 kB)
     |████████████████████████████████| 564 kB 817 kB/s            
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/stager/.local/share/virtualenvs/SMAC-M-Y3M1gHrJ/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nov8b7j8/gdal_a7db3120cc154d03b7b8944009585eb4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nov8b7j8/gdal_a7db3120cc154d03b7b8944009585eb4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-sy37a_yv
       cwd: /tmp/pip-install-nov8b7j8/gdal_a7db3120cc154d03b7b8944009585eb4/
  Complete output (5 lines):
  /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'use_2to3_fixers'
    warnings.warn(msg)
  /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'use_2to3_exclude_fixers'
    warnings.warn(msg)
  error in GDAL setup command: use_2to3 is invalid.
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/dc/d5/90339b48bdcabc76124eaa058a32d796963a05624eb418ed5ea5af7db9fa/GDAL-2.4.2.tar.gz#sha256=c01c4bbcc61354af1bd3c9ca0b7190d9ce6e2786f6ec7c60e7e271fb6ea2c7fd (from https://pypi.org/simple/gdal/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Any python app does rot after one year...

Laro88 commented 1 year ago

Hi Lars. Thanks for the link in the mailing list the other day. I am trying to get it to work on Windows 11 as a test, and using the ms4w project as a server configuration. I have the same problem as above, seems to be something deprecated. image

Kind regards.