Git Product home page Git Product logo

Comments (3)

daleroberts avatar daleroberts commented on June 11, 2024

Hi, I've tested the above and I've been able to reproduce the problem. It's due to the dependency GDAL (and not tv) which fails to install properly using homebrew. It's quite annoying since homebrew's version of gdal is way behind (v1) so the '--HEAD' flag was a nice workaround to get version (2.2+) but I think there might be something either wrong with the HEAD version or homebrew is incorrectly patching something... I'll need to investigate.

from tv.

sethwoodworth avatar sethwoodworth commented on June 11, 2024

On ubuntu 17.10, the same error happens when calling tv.

Traceback (most recent call last):
  File "/home/swoodworth/.local/lib/python3.6/site-packages/osgeo/gdal_array.py", line 18, in swig_import_helper
    fp, pathname, description = imp.find_module('_gdal_array', [dirname(__file__)])
  File "/usr/lib/python3.6/imp.py", line 297, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_gdal_array'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/swoodworth/.local/bin/tv", line 11, in <module>
    load_entry_point('tv==0.1', 'console_scripts', 'tv')()
  File "/home/swoodworth/.local/lib/python3.6/site-packages/tv/cli.py", line 4, in main
    tv.main()
  File "/home/swoodworth/.local/lib/python3.6/site-packages/tv/__init__.py", line 314, in main
    show_fn(img, **kwargs)
  File "/home/swoodworth/.local/lib/python3.6/site-packages/tv/__init__.py", line 248, in show_fn
    show_fd(gdal.Open(fn), *args, **kwargs)
  File "/home/swoodworth/.local/lib/python3.6/site-packages/tv/__init__.py", line 243, in show_fd
    show(rbs, xoff, yoff, ow, oh, w, h, r, slowout)
  File "/home/swoodworth/.local/lib/python3.6/site-packages/tv/__init__.py", line 178, in show
    buf_ysize=h, resample_alg=SAMPLING[r])
  File "/home/swoodworth/.local/lib/python3.6/site-packages/osgeo/gdal.py", line 2536, in ReadAsArray
    from . import gdalnumeric
  File "/home/swoodworth/.local/lib/python3.6/site-packages/osgeo/gdalnumeric.py", line 1, in <module>
    from osgeo.gdal_array import *
  File "/home/swoodworth/.local/lib/python3.6/site-packages/osgeo/gdal_array.py", line 28, in <module>
    _gdal_array = swig_import_helper()
  File "/home/swoodworth/.local/lib/python3.6/site-packages/osgeo/gdal_array.py", line 20, in swig_import_helper
    import _gdal_array
ModuleNotFoundError: No module named '_gdal_array'

I have libgdal-dev installed

from tv.

sethwoodworth avatar sethwoodworth commented on June 11, 2024

My issue on Ubuntu seems to have been addressed in this launchpad issue

from tv.

Related Issues (12)

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.