problems after QGIS installation

53 views
Skip to first unread message

chrisschn...@gmail.com

unread,
Aug 11, 2014, 8:50:57 AM8/11/14
to openqua...@googlegroups.com
Hey OQ users,

I have some trouble with my OQ engine after installing Quantum GIS.
Maybe some of you have some more experiences with ubuntu.

If I try to use OQ I get the following error message:

 hao@hao:~$ openquake --version
Traceback (most recent call last):
  File "/usr/bin/openquake", line 9, in <module>
    load_entry_point('openquake.engine==1.0.0', 'console_scripts', 'openquake')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 337, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2279, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/dist-packages/openquake/engine/bin/oqscript.py", line 44, in <module>
    from openquake.commonlib import source
  File "/usr/lib/python2.7/dist-packages/openquake/commonlib/source.py", line 21, in <module>
    from shapely import wkt
  File "/usr/lib/python2.7/dist-packages/shapely/wkt.py", line 6, in <module>
    from shapely.geos import lgeos, ReadingError
  File "/usr/lib/python2.7/dist-packages/shapely/geos.py", line 100, in <module>
    geos_capi_version = geos_c_version = _geos_c_version()
  File "/usr/lib/python2.7/dist-packages/shapely/geos.py", line 98, in _geos_c_version
    return tuple(int(n) for n in v.split('.'))
  File "/usr/lib/python2.7/dist-packages/shapely/geos.py", line 98, in <genexpr>
    return tuple(int(n) for n in v.split('.'))
ValueError: invalid literal for int() with base 10: '2 r3921'


I suppose a new or false package was installed but I don't know how to fix it.
My OQ version (nightly build) is two days old.

Thanks for any help!


Cheers,
Chris


Daniele Viganò

unread,
Aug 11, 2014, 8:59:01 AM8/11/14
to openqua...@googlegroups.com
Hi Chris,

how did you installed QGIS?

You have to avoid ubuntugis and QGIS nightly builds since they will use and install an incompatible version of libgeos, overriding the one provided by Ubuntu; use instead this repo: http://www.qgis.org/en/site/forusers/alldownloads.html#on-plain-ubuntu

Cheers,
Daniele








--
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
DANIELE VIGANÒ | System Administrator | Skype dennyv85 | +39-0382-5169882
GLOBAL EARTHQUAKE MODEL | working together to assess risk
GEM - globalquakemodel.org | T - @GEMwrld | F - GEMwrld

chrisschn...@gmail.com

unread,
Aug 11, 2014, 9:44:27 AM8/11/14
to openqua...@googlegroups.com
Hi Daniele,

ok I understand the problem.
I suppose I installed the wrong version.
Following statements were used in terminal to install QGIS:

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install qgis

Is there a way to fix my problem? So uninstall and install QGIS?


Best regards,
Chris

Daniele Viganò

unread,
Aug 11, 2014, 12:04:22 PM8/11/14
to openqua...@googlegroups.com
Dear Chris,

you have to:

1) Remove QGIS with
sudo apt-get remove --purge qgis.*
sudo apt-get autoremove --purge

2) Remove the ubuntugis repo
sudo add-apt-repository -r ppa:ubuntugis/ubuntugis-unstable

3) Reinstall the right libgeos version
sudo apt-get install --reinstall libgeos-c1

4) Check that now libgeos is the right one
sudo apt-cache policy libgeos-c1
libgeos-c1:
  Installed: 3.2.2-3ubuntu1
  Candidate: 3.2.2-3ubuntu1
  Version table:
 *** 3.2.2-3ubuntu1 0
        500 http://ch.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status


5) Install QGIS using the "stable" repo as in the link I sent previously

Cheers,
Daniele


--
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages