<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>26462</bug_id>
          
          <creation_ts>2011-10-16 21:29:38 +0400</creation_ts>
          <short_desc>Не импортируется модуль osgeo</short_desc>
          <delta_ts>2013-01-28 15:13:26 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>python-module-gdal</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yuriy Al. Shirokov">yuriy.shirokov</reporter>
          <assigned_to name="Anton V. Boyarshinov">boyarsh</assigned_to>
          <cc>cas</cc>
    
    <cc>fuckel</cc>
    
    <cc>george</cc>
    
    <cc>glebfm</cc>
    
    <cc>ikh1</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>126282</commentid>
    <comment_count>0</comment_count>
    <who name="Yuriy Al. Shirokov">yuriy.shirokov</who>
    <bug_when>2011-10-16 21:29:38 +0400</bug_when>
    <thetext>После установки модуль osgeo недоступен:
&gt;&gt;&gt; from osgeo import gdal
Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
ImportError: No module named osgeo

Из-за этого, в частности, не работает плагин GdalTools в QGis.

Лечится созданием симлинка:
$ sudo ln -s /usr/lib64/python2.6/site-packages/GDAL-1.8.0-py2.6-linux-x86_64.egg/osgeo/ /usr/lib64/python2.6/osgeo
$ python
Python 2.6.7 (r267:88850, Sep 20 2011, 22:12:01) 
[GCC 4.5.1 20101130 (ALT Linux 4.5.1-alt8)] on linux2
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; from osgeo import gdal
&gt;&gt;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>133633</commentid>
    <comment_count>1</comment_count>
    <who name="Vasyĺ V. Vercynśkyj">fuckel</who>
    <bug_when>2012-10-02 15:08:14 +0400</bug_when>
    <thetext>На t6 воспроизводиться</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>133900</commentid>
    <comment_count>2</comment_count>
    <who name="IvanKhakhaev">ikh1</who>
    <bug_when>2012-10-12 18:14:44 +0400</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; На t6 воспроизводиться

Вылечил при помощи &quot;ручной работы&quot; следующим образом:
В /usr/share/qgis/python/plugins/GdalTools
в файле GdalTools.py в начале добавляются строки
import sys
sys.path.append(&quot;/usr/lib/python2.6/site-packages/GDAL-1.8.0-py2.6-linux-i686.egg&quot;)

(в соответствии с выводом
# rpmquery - l python-module-gdal )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137329</commentid>
    <comment_count>3</comment_count>
    <who name="Fr. Br. George">george</who>
    <bug_when>2013-01-27 09:31:51 +0400</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; sys.path.append(&quot;/usr/lib/python2.6/site-packages/GDAL-1.8.0-py2.6-linux-i686.egg&quot;)
Это феерия. Каталог вместо egg-файла. Попробую починить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137332</commentid>
    <comment_count>4</comment_count>
    <who name="Fr. Br. George">george</who>
    <bug_when>2013-01-27 13:54:52 +0400</bug_when>
    <thetext>Можно потестировать task#88649</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137340</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2013-01-28 15:13:26 +0400</bug_when>
    <thetext>gdal-1.8.0-alt3 -&gt; sisyphus:

* Sun Jan 27 2013 Fr. Br. George &lt;george@altlinux&gt; 1.8.0-alt3
- Move python module out of .egg directory (Closes: #26462)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>