Giter VIP home page Giter VIP logo

geospatial's Introduction

geospatial

image image image image Conda Version Conda Downloads Conda Recipe image image

A Python package for installing commonly used packages for geospatial analysis and data visualization with only one command.

Credits

This package was created with Cookiecutter and the giswqs/pypackage project template.

geospatial's People

Contributors

giangblackk avatar giswqs avatar pre-commit-ci[bot] avatar remi-braun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

geospatial's Issues

Add packages

Kindly add segment-geospatial and simplekml packages. Also if possible, please again add pygis package.

error installing with pip from source

Environment Information

  • geospatial version: geospatial-0.9.0
  • Python version: Python 3.9.18
  • Operating System: MACOS-ARM Macbook Pro M2

Description

I'm trying to instal geospatial with pip because I have an environment with whitebox installed with pip, and some scripts that use both packages.

What I Did

(wbw) /Users/ju > git clone https://github.com/opengeos/geospatial.git

Output:

Cloning into 'geospatial'...
remote: Enumerating objects: 815, done.
remote: Counting objects: 100% (173/173), done.
remote: Compressing objects: 100% (70/70), done.
remote: Total 815 (delta 119), reused 141 (delta 102), pack-reused 642
Receiving objects: 100% (815/815), 888.14 KiB | 317.00 KiB/s, done.
Resolving deltas: 100% (431/431), done.
(wbw) /Users/ju > cd geospatial

2nd command:

(wbw) /Users/ju/geospatial > pip install .
Processing /Users/ju/geospatial
Preparing metadata (setup.py) ... done
Collecting bokeh (from geospatial==0.9.0)

2nd output

...stuff...
Building wheels for collected packages: geospatial, lightgbm
Building wheel for geospatial (setup.py) ... done
Created wheel for geospatial: filename=geospatial-0.9.0-py2.py3-none-any.whl size=4254 sha256=ee0dc2a9f9dda2765267f07e7a66851cfd5e2ca95354c18c102eb69cd9eae247
Stored in directory: /private/var/folders/xt/0fzdrsd52bj4z2cqvy77d5w00000gn/T/pip-ephem-wheel-cache-broy9lm4/wheels/4b/50/3d/f9922042c3c1dcfcf764bd47b61ea11c3a16e125d8b4426118
Building wheel for lightgbm (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for lightgbm (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [46 lines of output]
2023-09-22 17:08:33,836 - scikit_build_core - INFO - CMake version: 3.27.4
*** scikit-build-core 0.5.1 using CMake 3.27.4 (wheel)
2023-09-22 17:08:33,838 - scikit_build_core - INFO - Build directory: /private/var/folders/xt/0fzdrsd52bj4z2cqvy77d5w00000gn/T/tmp3b8bim10/build
*** Configuring CMake...
2023-09-22 17:08:34,809 - scikit_build_core - INFO - Ninja version: 1.11.1
2023-09-22 17:08:34,810 - scikit_build_core - WARNING - libdir/ldlibrary: /Users/ju/anaconda3/envs/wbw/lib/libpython3.9.a is not a real file!
2023-09-22 17:08:34,810 - scikit_build_core - WARNING - Can't find a Python library, got libdir=/Users/ju/anaconda3/envs/wbw/lib, ldlibrary=libpython3.9.a, multiarch=darwin, masd=None
loading initial cache file /var/folders/xt/0fzdrsd52bj4z2cqvy77d5w00000gn/T/tmp3b8bim10/build/CMakeInit.txt
CMake Deprecation Warning at CMakeLists.txt:35 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

    Update the VERSION argument <min> value or use a ...<max> suffix to tell
    CMake that the project does not need compatibility with older versions.
  
  
  -- The C compiler identification is AppleClang 14.0.3.14030022
  -- The CXX compiler identification is AppleClang 14.0.3.14030022
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
  -- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
  -- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
  -- Found OpenMP_C: -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include
  -- Found OpenMP_CXX: -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include
  -- Found OpenMP: TRUE
  -- Performing Test MM_PREFETCH
  -- Performing Test MM_PREFETCH - Failed
  -- Performing Test MM_MALLOC
  -- Performing Test MM_MALLOC - Success
  -- Using _mm_malloc
  -- Configuring done (0.7s)
  -- Generating done (0.0s)
  -- Build files have been written to: /var/folders/xt/0fzdrsd52bj4z2cqvy77d5w00000gn/T/tmp3b8bim10/build
  *** Building project with Ninja...
  ninja: error: '/opt/homebrew/opt/libomp/lib/libomp.dylib', needed by '/private/var/folders/xt/0fzdrsd52bj4z2cqvy77d5w00000gn/T/pip-install-t663i5f6/lightgbm_e0bfa722f2d44cfcb7590d43f679be92/lib_lightgbm.so', missing and no known rule to make it
  
  *** CMake build failed
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lightgbm
Successfully built geospatial
Failed to build lightgbm
ERROR: Could not build wheels for lightgbm, which is required to install pyproject.toml-based projects

Docker image are not visible for public

Tthe "Build and publish Docker Image" Github workflow works just fine, and it pushed the built image to ghcr.io/opengeos/geospatial:latest.

But it seems that this package is currently not visible to public use, as I can't see any package appear in this link https://github.com/orgs/opengeos/packages?repo_name=geospatial.

I think this is due to the misconfiguration in Package setting of the Open Geospatial Solutions GitHub Organization.
I suggest following this guide to see if we could make the geospatial Docker image visible to public so everyone can benefit from it.

And I also suggest to update the documentation to provide guide for using geospatial Docker image.

Best regards,

Suggestions for adding packages to geospatial

If you would like to suggest new packages to be added to the geospatial stack, please leave comments down here. Here are the steps:

First, check https://geospatial.gishub.org/#installed-packages and see if the suggested packages are listed on the list. If they are already listed, then you can skip the following steps.

Second, search the suggested packages on https://conda-forge.org/feedstock-outputs and make sure they can be found there. If not, that means the suggested packages are not available on conda-forge. If this is the case, then they cannot be added to the geospatial stack. Then you can skip the following step.

Third, leave the names of suggested packages here if they meet the above requirements.

mamba

i had this error while trying to run mamba install geopandas

(geo) C:\Users\victor>mamba install geopandas Traceback (most recent call last): File "C:\Users\victor\miniconda3\envs\geo\Scripts\mamba-script.py", line 6, in <module> from mamba.mamba import main File "C:\Users\victor\miniconda3\envs\geo\lib\site-packages\mamba\mamba.py", line 49, in <module> import libmambapy as api File "C:\Users\victor\miniconda3\envs\geo\lib\site-packages\libmambapy\__init__.py", line 7, in <module> raise e File "C:\Users\victor\miniconda3\envs\geo\lib\site-packages\libmambapy\__init__.py", line 4, in <module> from libmambapy.bindings import * # noqa: F401,F403 ImportError: DLL load failed while importing bindings: The specified procedure could not be found.

What could be the problem sir

error when trying to install geopandas in windows

Environment Information

  • geospatial version: 0.9
  • Python version: 3.9
  • Operating System: Windows 10 (enterprise)

Description

I followed the necessary steps for installing the geospatial package with combination of conda - mamba. When reaching the step for installing geopandas, I get an error message "could not solve for environment specs, the following packages are incompatible" (please see picture below).

The same issue was present also when to install the package in my personal computer running windows 11.

I also tried installing installing geopandas using only conda - without installing mamba.

What I Did

I run the following commands in git-bash, where in the last one I got the attached traceback message:

conda create -n geo python=3.9
conda activate geo
conda install -c conda-forge mamba
mamba install geopandas

geospatial_issue_geopandas_installation

Mamba fails to resolve hostname

Environment Information

  • geospatial version: current
  • Python version: 3.9
  • Operating System: OSX Monterey 12.3.1

Description

Hey Qiusheng,

followed the install instructions with conda + mamba but get 'could not resolve hostname' for every package

What I Did

followed the instructions for a clean 3.9 install

mamba install -c conda-forge geospatial

here is the stack trace for one package as an example (this pattern repeats for all packages, not just voila)

voila [> ] (00m:05s) Couldn't resolve host name

this is followed by a conda report, I'll dump it here:

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/Users/jakegearon/opt/anaconda3/lib/python3.8/site-packages/conda/exceptions.py", line 1082, in __call__
        return func(*args, **kwargs)
      File "/Users/jakegearon/opt/anaconda3/lib/python3.8/site-packages/mamba/mamba.py", line 882, in exception_converter
        raise e
      File "/Users/jakegearon/opt/anaconda3/lib/python3.8/site-packages/mamba/mamba.py", line 876, in exception_converter
        exit_code = _wrapped_main(*args, **kwargs)
      File "/Users/jakegearon/opt/anaconda3/lib/python3.8/site-packages/mamba/mamba.py", line 835, in _wrapped_main
        result = do_call(args, p)
      File "/Users/jakegearon/opt/anaconda3/lib/python3.8/site-packages/mamba/mamba.py", line 716, in do_call
        exit_code = install(args, parser, "install")
      File "/Users/jakegearon/opt/anaconda3/lib/python3.8/site-packages/mamba/mamba.py", line 572, in install
        downloaded = transaction.prompt(
    RuntimeError: Download error (6) Couldn't resolve host name [https://conda.anaconda.org/conda-forge/noarch/aenum-3.1.11-pyhd8ed1ab_0.tar.bz2]

`$ /Users/jakegearon/opt/anaconda3/bin/mamba install -c conda-forge geospatial`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=geo
                CONDA_EXE=/Users/jakegearon/opt/anaconda3/bin/conda
             CONDA_PREFIX=/Users/jakegearon/opt/anaconda3/envs/geo
           CONDA_PREFIX_1=/opt/miniconda3
           CONDA_PREFIX_2=/Users/jakegearon/opt/anaconda3
           CONDA_PREFIX_3=/Users/jakegearon/opt/anaconda3/envs/IS2SE
    CONDA_PROMPT_MODIFIER=(geo)
         CONDA_PYTHON_EXE=/Users/jakegearon/opt/anaconda3/bin/python
               CONDA_ROOT=/Users/jakegearon/opt/anaconda3
              CONDA_SHLVL=4
           CURL_CA_BUNDLE=<not set>
     JAVA_LD_LIBRARY_PATH=:-
                     PATH=/Library/Frameworks/GDAL.framework/Programs:/usr/local/opt/node@10/bin
                          :/Users/jakegearon/opt/anaconda3/envs/geo/bin:/opt/miniconda3/condabin
                          :/Users/jakegearon/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/us
                          r/sbin:/sbin:/opt/X11/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : geo
    active env location : /Users/jakegearon/opt/anaconda3/envs/geo
            shell level : 4
       user config file : /Users/jakegearon/.condarc
 populated config files : /Users/jakegearon/.condarc
          conda version : 4.12.0
    conda-build version : 3.21.4
         python version : 3.8.13.final.0
       virtual packages : __osx=10.16=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /Users/jakegearon/opt/anaconda3  (writable)
      conda av data dir : /Users/jakegearon/opt/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/jakegearon/opt/anaconda3/pkgs
                          /Users/jakegearon/.conda/pkgs
       envs directories : /Users/jakegearon/opt/anaconda3/envs
                          /Users/jakegearon/.conda/envs
               platform : osx-64
             user-agent : conda/4.12.0 requests/2.27.1 CPython/3.8.13 Darwin/21.4.0 OSX/10.16
                UID:GID : 501:20
             netrc file : /Users/jakegearon/.netrc
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.

I've checked that mamba and conda both work for individual packages (I use mamba normally). I think the conda installation of geospatial works, but I haven't been able to wait out the solver yet to confirm.

Tried multiple new envs and even restarting my computer and no dice. any advice?

Cheers,

Jake

Is there any update in this package?

  • geospatial version:
  • Python version:
  • Operating System:

Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.