Comments (3)
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.
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.
My issue on Ubuntu seems to have been addressed in this launchpad issue
from tv.
Related Issues (12)
- distortion HOT 5
- Produces an almost black image of a high-contrast image
- `tv` doesn't use Unicode 13's 2x3 mosaics HOT 2
- ModuleNotFoundError: No module named 'gdal'
- Obama pic gives error HOT 1
- License HOT 1
- Can't compile gdal==2.0.2: missing "cpl_vsi_error.h" header file HOT 4
- libsixel support HOT 1
- g
- Raspberry Pi?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tv.