Qgis поддержка python выключена параметры модулей недоступны windows 7

Геоинформационные системы (ГИС) и дистанционное зондирование Земли (ДЗЗ), новости, программное обеспечение, журналы, публикации, документация, форум

Denisredhat

Интересующийся

Сообщения: 29
Зарегистрирован: 21 янв 2020, 07:35

Репутация: 13
Откуда: Самара

QGIS 3.20.0 и 3.20.1 устанавливается не полностью

После установки QGIS запускается, в меню «Вектор» отсутствует большая часть инструментов, меню «Анализ данных» отсутствует, в меню «Модули» отсутствует Консоль Python, доступных для установки модулей только 5 штук, на вкладке «Параметры модулей» — «Поддержка Python выключена. Параметры модулей недоступны». Windows 7/64.
В чем может быть дело?


Denisredhat

Интересующийся

Сообщения: 29
Зарегистрирован: 21 янв 2020, 07:35

Репутация: 13
Откуда: Самара

Re: QGIS 3.20.0 и 3.20.1 устанавливается не полностью

Сообщение

Denisredhat » 05 авг 2021, 09:04

Похоже, связано с этим:
Windows 7 no longer works as we are now using Python 3.9, which dropped support for it


maunty

Новоприбывший

Сообщения: 1
Зарегистрирован: 07 окт 2015, 08:24

Репутация: 0

Re: QGIS 3.20.0 и 3.20.1 устанавливается не полностью

Сообщение

maunty » 17 авг 2021, 05:18

Столкнулся с той же проблемой, пришлось откатится до предыдущей версий QGIS (3.4.13).


Following the recent PSA recommending users to upgrade from 3.16.12 to 3.16.13 (link), I’ve been having trouble accessing my plugins and Python console ever since upgrading.

I’ve done some digging and found that 3.16.13 uses python version 3.9 while 3.16.12 uses Python version 3.8. My OS is windows 7 which supports Python 3.8 but not 3.9, which was the initial issue I assumed which was causing QGIS to say that there was no Python support.

I’ve since done a rollback to 3.16.12 (by uninstalling 3.16.13 and reinstalling 3.16.12) but I still see the same problem. I’ve tried version 3.16.11 and also see the same issue. This is strange because I did not have this issue when I was using version 3.16.12 and I am unsure how to fix it. I could try installing the last long term release version which was 3.10 but I would prefer the newer one for its added features.

Also I am unsure what is the difference between the old .exe installers and the new .msi installers

No Python Support

Update: I have since installed QGIS version 3.10.11 and I am able to access plugins and the Python console again. I am still unsure as to what was causing the issue outlined in the third paragraph. I do note that for version 3.16 I tried both the .msi installers and the .exe installers and found that the .msi installed QGIS had the Python issue and the .exe installer had a different issue where the installer says the program was installed but Windows is unable to find it in it’s list of programs.

Same problem issue in Ubuntu 20.04 👍

Couldn't load SIP module.
Python support will be disabled.


Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3/dist-packages/qgis/__init__.py", line 70, in 
    from qgis.PyQt import QtCore
  File "/usr/lib/python3/dist-packages/qgis/PyQt/QtCore.py", line 24, in 
    from PyQt5.QtCore import *
ImportError: /lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.14' not found (required by /home/nesrine/.local/lib/python3.8/site-packages/PyQt5/QtCore.abi3.so)


Python version:
3.8.2 (default, Apr 27 2020, 15:53:34) 
[GCC 9.3.0]

QGIS version:
3.12.3-București 'București', 8234261527

Python path:
['/usr/share/qgis/python', '/home/user/.local/share/QGIS/QGIS3/profiles/default/python', '/home/user/.local/share/QGIS/QGIS3/profiles/default/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/user/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/local/lib/python3.8/dist-packages/Mentalist-1.0-py3.8.egg', '/usr/lib/python3/dist-packages']

I don’t know from where this error can come from ? As shown below, Python 3 imports correctly PyQt package :

~$ python3
Python 3.8.2 (default, Apr 27 2020, 15:53:34) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from qgis.PyQt import QtCore
>>> from PyQt5.QtCore import *
>>> 

I tried to set the Qt environment to Qt_5.14 as the default installed is version in 5.12, following these instructions. However it doesn’t work.
Please is there any config files to fix this problem ?

Author Name: Roberto Comune Boffelli Comune (Roberto Comune Boffelli Comune)
Original Redmine Issue: 21975
Affected QGIS version: 3.6.1
Redmine category:build/install


as the subject report …
I have (or better the informatic service IT of my company where i’m ’employed’)
to install the all possible version of QGis installers (32 or 64 … stand alone and web installation… and more
various version of QGis ‘last weekly version’ and ‘long term/stable release version’)

but every time (afer the conclusion of the installation process) i have the same problem ……
at start the QGis app show me a ‘strange error’ concerned ‘a strage import operation’ of a module

qgis._core (is the ‘underscore’ that appaire to me to be strange …. because there is the qgis/core … modules folders
but opposite there isn’t qgis/_core folders) ….

the consequences of this …. are that QGis block every Python usage and after the ‘bad start’ of the application
i don’t have any support to use Phyton …. (console and etc)

why it happen with all possible installer versions? … it strange no? am i the only one with this problem?
are made a wrong installation?

thank you
have a nice day

Roberto


  • Error_on_QGIS_Start.Jpg (Roberto Comune Boffelli Comune)

Author Name: Roberto Comune Boffelli Comune (Roberto Comune Boffelli Comune)
Original Redmine Issue: 21975
Affected QGIS version: 3.6.1
Redmine category:build/install


as the subject report …
I have (or better the informatic service IT of my company where i’m ’employed’)
to install the all possible version of QGis installers (32 or 64 … stand alone and web installation… and more
various version of QGis ‘last weekly version’ and ‘long term/stable release version’)

but every time (afer the conclusion of the installation process) i have the same problem ……
at start the QGis app show me a ‘strange error’ concerned ‘a strage import operation’ of a module

qgis._core (is the ‘underscore’ that appaire to me to be strange …. because there is the qgis/core … modules folders
but opposite there isn’t qgis/_core folders) ….

the consequences of this …. are that QGis block every Python usage and after the ‘bad start’ of the application
i don’t have any support to use Phyton …. (console and etc)

why it happen with all possible installer versions? … it strange no? am i the only one with this problem?
are made a wrong installation?

thank you
have a nice day

Roberto


  • Error_on_QGIS_Start.Jpg (Roberto Comune Boffelli Comune)

Как я могу использовать сторонние библиотеки на плагинах QGIS в Windows? Я разработал плагин, который использует растерио и numpy для клиента, но у него возникают проблемы с установкой растерио и numpy.

На самом деле растерио и numpy были установлены в основной системе Python (C: Python27), но мне нужен QGIS Python для его распознавания.

Как это можно сделать?

Ответы:


QGIS, распространяемый OSGeo4W, обычно поставляется с собственной установкой Python и собственными пакетами, независимыми от вашей «обычной» установки Python.

Самый простой способ установить пакет Python в дистрибутив OSGeo4W — это открыть оболочку OSGeo4W и использовать оттуда pip. Это установит пакет в дистрибутив Python, который использует QGIS, в моем случае — в, C:OSGeo4W64appsPython27а модули — в C:OSGeo4W64appsPython27Libsite-packages. Вы также можете делать обычные pip listвнутри оболочки OSGeo4W и вашей обычной оболочки Windows (cmd.exe) и сравнивать результаты, чтобы увидеть, какие пакеты вы можете пропустить.

Если вы не хотите устанавливать пакеты для двух установок Python, вы также можете попытаться изменить PythonPath для включения пакетов из одной установки в другую.

edit: Этот ответ направлен на оригинальный вопрос, касающийся pip для установки модулей, которые будут использоваться с QGIS в Windows. ОП с тех пор отредактировал / уточнил вопрос, так что этот ответ теперь немного широк.



Numpy по умолчанию устанавливается в QGIS (автономная версия, версия OSGeo4W). Для растерио много проблем. Я знаю, что растерио является мощным и простым в использовании (я его использую), но зачем растерио в плагине QGIS, когда у вас есть все функции PyQGIS? (он был разработан для оболочки Python или для скриптов, не должен использоваться с QGIS / PyQGIS, как Fiona для шейп-файлов)

В Linux или Mac OS X (системы Unix) QGIS использует стандартную установку Python (независимо от QGIS) и, если легко установить или обновить модуль Python (по умолчанию также установлено много компиляторов)

В Windows Python по умолчанию не устанавливается, а QGIS устанавливает свою собственную версию. Для установки чистых модулей Python (без библиотек C, C ++) у вас есть решения ( автономный QGIS и модули Python , установка установочных инструментов Python в OSGeo4W Python или установка PySAL для OSGeo4W )

Но для модулей, которые должны быть скомпилированы (по умолчанию компилятор отсутствует), это нелегко. Вы можете попробовать скопировать / вставить ваш установленный модуль в папку сайта QGIS Python, но есть проблемы.

Растерио необходимо скомпилировать с установленной библиотекой GDAL, и если вы устанавливаете ее, например, из неофициальных бинарных файлов Windows от Christoph Gohlke для пакетов расширения Python , я не уверен, что версия GDAL, используемая QGIS, одинакова (для ссылок на библиотеки dll)

Если вы используете исключительно NumPy и Rasterio, почему бы не независимый сценарий?





В консоли Python 2.7.14 Qgis 2.18.28 это работает для меня. Это позволяет избежать необходимости использовать приглашения с абсолютными путями Python.

import subprocess
subprocess.check_call(['python', '-m', 'pip', 'install', 'openpyxl'])

По словам разработчиков pip, pip.main или pip._internal.main не поддерживаются. https://pip.pypa.io/en/stable/user_guide/#using-pip-from-your-program
Я изменил рекомендуемый sys.executable на «python», потому что в Qgis это сам qgis.


Description


IvanKhakhaev



2019-09-14 18:56:30 MSK

В диалоге "Управление и установка модулей" выводится сообщение "Поддержка Python выключена. Параметры модулей недоступны".
qgis 3.8.2-alt1:p9+236761.3200.2.1@1567098960


Comment 1


Andrey Cherepanov



2019-09-15 12:50:12 MSK

Так и задумано, так как полностью на Python3 модули не переведены. Пока собирается без поддержки Python.


Comment 2


Grigory Ustinov



2019-09-15 20:15:52 MSK

(В ответ на комментарий №1)
> Так и задумано, так как полностью на Python3 модули не переведены. Пока
> собирается без поддержки Python.

А что там не переведено?


Comment 3


Andrey Cherepanov



2019-09-16 08:40:51 MSK

(В ответ на комментарий №2)
> (В ответ на комментарий №1)
> > Так и задумано, так как полностью на Python3 модули не переведены. Пока
> > собирается без поддержки Python.
> 
> А что там не переведено?
На стыке с grass и wx.

I have installed the custom plugin which was created through plugin builder 3. I just added an import pymango statement and have deployed the plugin to QGIS. This gave below error with stacktrace.

ModuleNotFoundError: No module named ‘pymongo’

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 335, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/home/ubuntu/.local/share/QGIS/QGIS3/profiles/default/python/plugins/sample/__init__.py", line 35, in classFactory
    from .sample import custom_plugin
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 672, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/ubuntu/.local/share/QGIS/QGIS3/profiles/default/python/plugins/sample/custom_plugin.py", line 33, in 
    import pymongo
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 672, in _import
        mod = _builtin_import(name, globals, locals, fromlist, level)
    ModuleNotFoundError: No module named 'pymongo'

Python Path:
/usr/share/qgis/python
/home/ubuntu/.local/share/QGIS/QGIS3/profiles/default/python
/home/ubuntu/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/usr/share/qgis/python/plugins
/usr/lib/python36.zip
/usr/lib/python3.6
/usr/lib/python3.6/lib-dynload
/home/ubuntu/.local/lib/python3.6/site-packages
/usr/local/lib/python3.6/dist-packages
/usr/lib/python3/dist-packages
/home/ubuntu/.local/share/QGIS/QGIS3/profiles/default/python

The pymango python library is installed in /home/ubuntu/.local/lib/python3.6/site-packages folder. You can see this folder in python path, still QGIS3.6 desktop application is not able to locate the package. Any solution?

System details:

Python version: 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]

QGIS version: 3.6.0-Noosa Noosa, 5873452

Ubuntu: 18.04

Понравилась статья? Поделить с друзьями:
  • Qemu system x86 64 windows 7
  • Qemu guest agent windows 2008 r2
  • Qcyber neon драйвера для windows 10
  • Qcyber dragon 2 драйвера для windows 10
  • Qcy t5 драйвер для windows 7 x64