[Qgis-developer] Release naming and path problems

Bo Victor Thomsen bo.victor.thomsen at gmail.com
Fri Jul 15 09:49:18 PDT 2016


The error from QGIS says:

===============

    Couldn't load PyQGIS. Python support will be disabled.

    Traceback (most recent call last): File "", line 1, in ImportError:
    No module named qgis.core

    Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500
    64 bit (AMD64)]

    QGIS version: 2.16.0-Nødebo 'Nødebo', d0b3e39

    Python path: ['C:/PROGRA~1/QGIS N\xc3\xb8debo/apps/qgis/./python',
    u'C:/Users/bvtho/.qgis2/python',
    u'C:/Users/bvtho/.qgis2/python/plugins', 'C:/PROGRA~1/QGIS
     >N\xc3\xb8debo/apps/qgis/./python/plugins', 'C:\\PROGRA~1\\QGIS
     >N\xf8debo\\apps\\Python27\\lib\\site-packages\\matplotlib-1.3.1-py2.7-win-amd64.egg', >'C:\\PROGRA~1\\QGIS N\xf8debo\\apps\\Python27\\lib\\site-packages\\nose-1.3.3-py2.7.egg', 'C:\\PROGRA~1\\QGIS >N\xf8debo\\apps\\Python27\\lib\\site->packages\\tornado-4.0.1-py2.7-win-amd64.egg', 'C:\\PROGRA~1\\QGIS N\xf8debo\\apps\\Python27\\lib\\site-pack>

(and more Python path statements...)

===================

QGIS then starts normally, but without Python support

AFAIK, the problem is the use of the character "ø" (o-slash) in the 
directory name for the QGIS program directory: "C:\Program Files\QGIS 
Nødebo". If you make a name change of the installation directory to ex. 
"C:\Program Files\QGIS Noedebo" it works without a hitch.

(As a Dane, I would never use local danish "æøå" or other accented 
character in file or directory names that might be installed on 
windows-pc's with different encoding than "Latin1", ex. slavic windows 
pc's., but that's another issue)

The specific problem might be the representation of "ø" in the Python 
path: There is 2 *different* versions: "N*\xc3\xb8*debo" and "N*\xf8*debo"

"\xf8" -> "ø" in Latin1 encoding.
"\xc3\xb8" -> UTF-8 "ø" -> "ø" (if UTF8 "ø" is interpreted as a 2 
character Latin1 encoded string).

The cause is probably something like this: The python path is created 
using both UTF-8 encoding and Latin1 encoding. And later, the path is 
"decoded" using only Latin1 encoding.

Regards

Bo Victor Thomsen



Den 15/07/16 kl. 08:02 skrev Nathan Woodrow:
> Hi all,
>
> Seems the name of the release is causing a few issues on Windows installs:
>
> http://gis.stackexchange.com/questions/202222/qgis-2-16-n%C3%B8debo-libintl-8-dll-missing
> http://gis.stackexchange.com/questions/201657/problem-installing-new-version-of-qgis-under-windoss-10-64-bits/202200#202200
> etc
>
> Are we planning on keeping the unicode name for the folder name?  
> Could we use something else with doesn't include unicode so we don't 
> break too much.
>
> Have we done an official release yet or still resolving some issues 
> with the packages?
>
> Regards,
> Nathan
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160715/1e08be00/attachment.html>


More information about the Qgis-developer mailing list