Giter VIP home page Giter VIP logo

Comments (5)

ibaris avatar ibaris commented on June 30, 2024

Do you have already tried something like this at the travis configuration file?

python:
- "3.5_with_system_site_packages"```

from pyrosar.

felixcremer avatar felixcremer commented on June 30, 2024

We can try to use pygdal to install the python gdal bindings.
I can get the python2.7 test going with these changes to the .travis.yml:
python:

  • "2.7"
  • "3.4"
  • "3.5"

virtualenv:
before_script:

install:

  • pip install -r requirements.txt
  • pip install coveralls
  • pip install coverage
  • pip install "pygdal>=2.1.3,<=2.1.3.999"
  • python setup.py install

before_install:

  • sudo add-apt-repository ppa:ubuntugis/ppa -y
  • sudo apt-get update -q
  • sudo apt-get install gdal-bin python-gdal python3-gdal libproj-dev libgdal1-dev -y
  • pip install -U pip

Unfortunately, in python 3 I get an import error. The importing of ogr fails.

from pyrosar.

ibaris avatar ibaris commented on June 30, 2024

Unfortunately, in python 3 I get an import error. The importing of ogr fails.
This is exactly the same error that I got. And I tried with all of my packages and the result is always the same.

from pyrosar.

Echelon9 avatar Echelon9 commented on June 30, 2024

After some dependency wrangling, I've got a WIP patch that works testing Python 3.4 - 3.7 on Travis-CI.
See: https://travis-ci.org/Echelon9/pyroSAR/builds/455867555

Changes required before the patch could be properly upstreamed:

  • Clean up the documentation.
  • Confirm this doesn't regress Windows CI on appveyor.
  • Resolve the Python 2.7 only problem with sqlite dependencies [appears unrelated to this patch].

For discussion:

  • Preferred GDAL Python binding: Unofficial pygdal has some real problems, I would instead strongly recommend using the official gdal Python package to provide the bindings to the local libgdal-dev.

The benefits of using the official gdal Python package bindings are full support for Python 3, lockstep version releases alongside libgdal-dev, and with some clever scripting (see .travis.yml in the patch) it can be automated as part of the instructions to setup a development environment.

from pyrosar.

johntruckenbrodt avatar johntruckenbrodt commented on June 30, 2024

As of March 29, testing is now done with Python 3.5 in Ubuntu Xenial. This is currently the latest setup to support using system site packages

from pyrosar.

Related Issues (20)

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.