ubarsc / tuiview

TuiView is a lightweight raster GIS with powerful raster attribute table manipulation abilities
http://tuiview.org/
GNU General Public License v2.0
26 stars 13 forks source link

Install broken #2

Closed gillins closed 8 years ago

gillins commented 8 years ago

Original report by Anonymous.


The install method listed here (conda) doesn't work since the upgrade to Python 3.5.

Using the python 2 version of conda is not much better:

#!bash
$ conda install -c osgeo tuiview
$ tuiview
/bin/bash: /Users/mperry/miniconda2/bin/python.app: No such file or directory

Running with the conda python interpreter directly, there are conflicts with other QT libs on the system, with dozens of errors like

objc[92324]: Class QNSImageView is implemented in both /usr/local/lib/QtGui.framework/Versions/4/QtGui and /Users/mperry/miniconda2/lib/libQtGui.4.8.7.dylib. One of the two will be used. Which one is undefined.
QWidget: Must construct a QApplication before a QPaintDevice
Abort trap: 6

before a hard crash.

Versions. Anaconda as of the posting date, OS X 10.10

gillins commented 8 years ago

Original comment by Sam Gillingham (Bitbucket: gillins, GitHub: gillins).


Thanks for your report. 2 responses below:

Short version

We only ever supported Python3.4, but I am not sure it still works. Your Qt problem looks more like an Anaconda issue than anything to do with TuiView.

Long version

Lately I have been more and more disappointed with Conda. Along with weird problems like your Qt issue, the default version of GDAL is broken. We had been maintaining our own GDAL build in the 'osgeo' channel but this meant we had to upgrade ours each time they made a change to anything and inevitably lead to conflicts.

A while back I reached out to Continuum and helped them sort out the default build of GDAL (see my anaconda-recipes fork). We made good progress, but stumbled at the end with a trivial Windows problem that they haven't resolved and made them lose interest it seems. Hence our lack of progress with Python3.5 etc.

So, I might wait another week or 2 before changing the install method to instructions for building from source and discourage Conda. I don't wish to continue supporting the old Windows installer, and this doesn't help on OS X or Linux anyway. Unless there is any other suggestions?

Does TuiView work OK if you install it and all the necessary prerequisites from source (or official repositories) instead?

gillins commented 8 years ago

Original comment by Daniel Clewley (Bitbucket: danclewley, GitHub: danclewley).


Only recently seen this. I had made a TuiView package available for Python 3.5 on OS X and Linux in our osgeo channel. These haven't been as widely tested as the Python 3.4 versions and some people are having problems with them - they are working for me though.

It is also possible to force a Python 3.4 install using:

conda install -c osgeo tuiview python=3.4 gdal=1.11.2
gillins commented 8 years ago

Original comment by Sam Gillingham (Bitbucket: gillins, GitHub: gillins).


These problems appear to have been resolved in conda-forge. TuiView currently resides in the "rios" channel. I am recommending the recipe below for installing TuiView. Let me know if you have any more problems: conda config --add channels conda-forge conda config --add channels rios conda create -n myenv tuiview source activate myenv # omit 'source' on Windows