Closed hanleybrand closed 1 year ago
Lutra's Mac package contains future by default, see https://github.com/lutraconsulting/qgis-mac-packager/blob/master/scripts/install_brew.bash#L150
For official package, one has to install it manually as suggested
@wonder-sk I think that future is such common package that we should not bundle it in first-aid-plugin, what do you think? In that case I would close this ticket.
The easiest will be to to just get rid of from past.builtins import execfile
and rewrite execfile(filename, ...)
to exec(open(filename).read(), ...)
to get rid of the python2 syntax
I am having the same problem
QGIS version | 3.30.1-'s-Hertogenbosch | QGIS code revision | 447e8d717a |
---|---|---|---|
Qt version | 5.15.3 | ||
Python version | 3.10.6 | ||
GDAL/OGR version | 3.4.1 | ||
PROJ version | 8.2.1 | ||
EPSG Registry database version | v10.041 (2021-12-03) | ||
GEOS version | 3.10.2-CAPI-1.16.0 | ||
SQLite version | 3.37.2 | ||
PDAL version | 2.3.0 | ||
PostgreSQL client version | unknown | ||
SpatiaLite version | 5.0.1 | ||
QWT version | 6.1.4 | ||
QScintilla2 version | 2.11.6 | ||
OS version | Pop!_OS 22.04 LTS | ||
Active Python plugins pyqgis_resource_browser | 0.2.0 plugin_reloader | 0.9.3 qgis_resource_sharing | 1.0.0 qgis_hub_plugin | 0.1.0 db_manager | 0.1.20 grassprovider | 2.12.99 MetaSearch | 0.3.6 processing | 2.12.99
I installed this plugin via the plugin manager in QGIS and got this error when QGIS tried to load the plugin:
It was easily fixed by installing future (e.g.
pip3 install future
) - as long as pip3 is pointed to the qgis python installation it should work.Not sure if this is due to the OS the OS version, a change in QGIS 3(.2(2)), etc. In case it helps here's some information about my environment:
My machine: MacOS High Sierra (10.13.6)
python3 (3.6.4): /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 site-packages prior to installing
future
: