<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1139347882;
        mso-list-type:hybrid;
        mso-list-template-ids:1454302700 1343522886 134807555 134807557 134807553 134807555 134807557 134807553 134807555 134807557;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:20.25pt;
        text-indent:-18.0pt;
        font-family:Wingdings;
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:56.25pt;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:92.25pt;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:128.25pt;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:164.25pt;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:200.25pt;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:236.25pt;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:272.25pt;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:308.25pt;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am trying to install geonode 2.4 in Windows 8.1 virtual machine and now I am some confusing problems with the osgeo installation, that I cannot understand.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I followed the installation guidelines from http://docs.geonode.org/en/master/tutorials/devel/devel_env/win_devinstall.html<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I use Python 2.7.9 and virtualenv for the Geonode installation. I have download the GDAL libraries from <a href="http://www.gisinternals.com/release.php">http://www.gisinternals.com/release.php</a> using the version of build v1500 and AMD64, as this is the Version of my Python installation. I checked-out the stable branch 2.4.x from Geonode. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>When I activate my virtualenv environment and execute “python manage.py createsuperuser” I get the following error log.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:72.0pt'>Traceback (most recent call last):<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "manage.py", line 28, in <module><o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    execute_from_command_line(sys.argv)<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\django\core\management\__init__.py", li<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>ne 399, in execute_from_command_line<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    utility.execute()<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\django\core\management\__init__.py", li<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>ne 392, in execute<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    self.fetch_command(subcommand).run_from_argv(self.argv)<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\django\core\management\base.py", line 2<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>42, in run_from_argv<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    self.execute(*args, **options.__dict__)<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\django\core\management\base.py", line 2<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>84, in execute<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    self.validate()<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\django\core\management\base.py", line 3<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>10, in validate<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    num_errors = get_validation_errors(s, app)<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\django\core\management\validation.py",<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>line 34, in get_validation_errors<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    for (app_name, error) in get_app_errors().items():<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\django\db\models\loading.py", line 196,<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> in get_app_errors<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    self._populate()<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\django\db\models\loading.py", line 78,<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>in _populate<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    self.load_app(app_name)<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\django\db\models\loading.py", line 99,<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>in load_app<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    models = import_module('%s.models' % app_name)<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\django\utils\importlib.py", line 40, in<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> import_module<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    __import__(name)<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\modeltranslation\models.py", line 84, i<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>n <module><o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    handle_translation_registrations()<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\modeltranslation\models.py", line 80, i<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>n handle_translation_registrations<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    autodiscover()<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\modeltranslation\models.py", line 31, i<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>n autodiscover<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    import_module(module)<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\django\utils\importlib.py", line 40, in<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> import_module<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    __import__(name)<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "C:\ENV\geonode\geonode\base\translation.py", line 2, in <module><o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    from geonode.base.models import (TopicCategory, SpatialRepresentationType, R<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>egion,<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "C:\ENV\geonode\geonode\base\models.py", line 28, in <module><o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    from geonode.utils import bbox_to_wkt<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "C:\ENV\geonode\geonode\utils.py", line 28, in <module><o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    from osgeo import ogr<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>  File "c:\ENV\geonode\lib\site-packages\osgeo\__init__.py", line 26, in <module<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>><o:p> </o:p></p><p class=MsoNormal style='margin-left:72.0pt'>    <span style='background:yellow;mso-highlight:yellow'>_gdal = swig_import_helper()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:72.0pt'><span style='background:yellow;mso-highlight:yellow'>  File "c:\ENV\geonode\lib\site-packages\osgeo\__init__.py", line 21, in swig_im<o:p></o:p></span></p><p class=MsoNormal style='margin-left:72.0pt'><span style='background:yellow;mso-highlight:yellow'>port_helper<o:p></o:p></span></p><p class=MsoNormal style='margin-left:72.0pt'><span style='background:yellow;mso-highlight:yellow'>    _mod = imp.load_module('_gdal', fp, pathname, description)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:72.0pt'><span lang=DE style='background:yellow;mso-highlight:yellow'>ImportError: DLL load failed: Die angegebene Prozedur wurde nicht gefunden.</span><span lang=DE><o:p></o:p></span></p><p class=MsoNormal style='margin-left:72.0pt'><span lang=DE><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:72.0pt'>(geonode) C:\ENV\geonode><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have read a lot in the internet  and understand what this error usually means. But sadly, this cannot be the case of my problems. I double-checked the correct version of gdal and the osgeo library so that it is of the same version as my Python install. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Command line output for starting python and manually importing osgeo in the virtualenv environment:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:72.0pt'>(geonode) C:\ENV\geonode>python<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>Python 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)] on win<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>32<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>Type "help", "copyright", "credits" or "license" for more information.<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>>>> import osgeo<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>1.11.4<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>>>><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If I start Python in the virtualenv environment and execute every step of the __init__.py of the osgeo package manually, there is no error. In the Python console, I can import osgeo or ogr from osgeo without any problems. But when executing the manage.py script where, at some point, the __init__.py from osgeo is called, the above described error is thrown.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I used 64bit installation packages, but also tried the same installation with only 32bit packages. For both variants, the error occurs.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Does anybody knows, what the cause of this confusing error might be? <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Cheers,<o:p></o:p></p><p class=MsoNormal>Xenia<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>