Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[processing] Script collection plugins don't work in qgis 2.99.0-254, x64 #25676

Closed
qgib opened this issue Jan 3, 2018 · 2 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Jan 3, 2018

Author Name: Clemens Raffler (@root676)
Original Redmine Issue: 17780
Affected QGIS version: master
Redmine category:processing/core
Assignee: Victor Olaya


Dear devs,
first of all a huge thank you for the rework of the processing framework for qgis3 - it is promising huge improvements!
Unfortunately I ran into a bug that breaks the script collection plugin functionality for me while I was porting such a plugin from qgis2.x to qgis3. The problem still exists when I populate the plugin with the scripts from the current on-line scripts collection and throws a GUI-related python error.

Is this bug replicable for you?

I suppose that the script collection plugin might trigger some other python errors besides this gui-related error due to the rework of processing - just a guess.

I will paste the stack trace and my path-vars here for reference, if you need more information from me don't hesitate to ask!

Thanks!

####################################################################################
Couldn't load plugin 'testscript' due to an error when calling its initGui() method

AttributeError: 'QGISAlgorithmProvider' object has no attribute '_icon'
Traceback (most recent call last):
File "S:/OSGeo4W64/apps/qgis-dev/./python\qgis\utils.py", line 345, in startPlugin
plugins[packageName].initGui()
File "C:/Users/Clemens Raffler/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\testscript\plugin.py", line 8, in initGui
Processing.addScripts(os.path.join(os.path.dirname(file), "scripts"))
File "S:/OSGeo4W64/apps/qgis-dev/./python/plugins\processing\core\Processing.py", line 112, in addScripts
script._icon = provider._icon
AttributeError: 'QGISAlgorithmProvider' object has no attribute '_icon'

Python version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
QGIS version: 2.99.0-Master Master, f9d6a99

Python Path:
S:/OSGeo4W64/apps/qgis-dev/./python/plugins\processing
S:/OSGeo4W64/apps/qgis-dev/./python
C:/Users/Username/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/Username/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
S:/OSGeo4W64/apps/qgis-dev/./python/plugins
C:\EnterpriseDB\LanguagePack\9.5\x64\Python-3.3
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\system32\WBem
C:\Program Files\R\R-3.2.2\bin\x64
C:\ProgramData\Oracle\Java\javapath
C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live
C:\Program Files (x86)\Intel\iCLS Client
C:\Program Files\Intel\iCLS Client
C:\WINDOWS\System32\WindowsPowerShell\v1.0
C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
C:\Program Files (x86)\Boundless\OpenGeo\jetty\jre\bin
C:\Program Files (x86)\QuickTime\QTSystem
C:\Program Files\Microsoft SQL Server\130\Tools\Binn
C:\Program Files (x86)\Skype\Phone
C:\Program Files\IBM\SPSS\Statistics\24\JRE\bin
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
S:\OSGeo4W64\bin%USERPROFILE%.dnx\bin
C:\Program Files\Microsoft DNX\Dnvm
C:\Program Files\CMake\bin
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin
C:\Program Files (x86)\Graphviz2.38\bin
C:\Program Files\apache-maven-3.5.2\bin
C:\Program Files\Java\jdk1.8.0_121\bin
C:\Program Files\Java\jre1.8.0_121\bin
S:\Cygwin\bin
C:\Program Files\PostgreSQL\9.5\bin
S:\OSGeo4W64\bin
S:\OSGeo4W64\bin\python36.zip
S:\OSGeo4W64\apps\Python36\DLLs
S:\OSGeo4W64\apps\Python36\lib
S:\OSGeo4W64\apps\Python36
S:\OSGeo4W64\apps\Python36\lib\site-packages
C:/Users/Username/AppData/Roaming/QGIS/QGIS3\profiles\default/python
####################################################################################

@qgib
Copy link
Contributor Author

qgib commented Jan 15, 2018

Author Name: Alexander Bruy (@alexbruy)


Applied in changeset 7ecb053.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Jan 15, 2018
@qgib
Copy link
Contributor Author

qgib commented Feb 22, 2018

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to fixed/implemented

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms Regression Something which used to work, but doesn't anymore labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant