[QGIS-Developer] Error due to possible Qgis dependency

2020-01-15 Thread Pedro Peixoto
To the Qgis developer community,

I am part of a team that develops a standalone software for Windows that
encountered a critical error involving the Qgis software.
The software, called "Hera", is developed in Python and currently uses
PyQgis. The problem is that Hera works on all computers that have Qgis
installed, but only on some computers that don't have Qgist installed.
While trying to install it in a computer that has never had Qgis installed,
a critical error is given when we try to open the now installed program.
The error message displayed is as follows: "Failed to execute script Hera"
(as can be seen in the image, available in the link below). Every
dependency that I could think of that could influence the installation was
previously installed, such as all the possible Microsoft visual studio C++
packages, as listed below:
- Microsoft Visual C++ Redistributable for Visual Studio 2008, 2013, 2015,
2017 and 2019.
To test that the problem was truly due to the lack of some missing Qgis
dependency, we created a machine on the AWS Amazon server and tried to
install the software, as well as the  Microsoft visual studio C++ packages
and the previously mentioned error was given. Only after installing Qgis on
the machine was the Hera program successfully launched. However, after
uninstalling Qgis on the same machine, the Hera program continued to run
successfully, indicating to us that the source of the problem might be
because of some dependency or configuration that Qgis does while
installing.
Since PyQgis does not offer some kind of logging or error message showing
the user whats could possibly be missing, I was wondering if anyone could
offer me some insight into what it might be. I appreciate the help, thank
you.

Link to the error message image:
http://psr.me/1ayvzfn

-- 
Pedro R. Peixoto
PSR
www.psr-inc.com
Tel.: +55 21 3906.2100
  

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] QgsRendererPropertiesDialog crashes python application with PyQgis

2020-01-15 Thread Marcelo Metello
I have an external windows standalone python application that uses pyqgis.
When I display a QgsRendererPropertiesDialog, python crashes
(sometimes) when the user clicks on any color button (screenshot:
http://psr.me/1903oq2). The problem is intermitent and seems to be in
displaying the color dialog. In previous QGis versions I could avoid
this problem by using:

settings = QgsSettings()
settings.setValue('qgis/native_color_dialogs', True)

QGis then used another color dialog that did not crash my application.
However, since I updated to QGis 3.8.3 (OSGEO4W) this option no longer
works.

I wrote a very small PyQt5 application (below, at the end) that reproduces
the problem: the color button sometimes crashes the application.

Any thoughts on how to fix this?

Operating system: Windows 10 Home
Python version: 3.7.0 (OSGEO4W)
QGis version: 3.8.3 (OSGEO4W)

Thanks,
Marcelo Metello



from qgis.core import QgsVectorLayer, QgsStyle
from qgis.gui import QgsRendererPropertiesDialog
from PyQt5 import QtCore, QtWidgets


def editStyle():
layer = QgsVectorLayer('LineString?field=level:integer',
'contour_lines', 'memory')
dialog = QtWidgets.QDialog()
layout = QtWidgets.QVBoxLayout(dialog)

# Add symbology panel
symbPanel = QgsRendererPropertiesDialog(layer, QgsStyle.defaultStyle(),
True)
layout.addWidget(symbPanel)

# Add Ok Cancel button box
buttonBox = QtWidgets.QDialogButtonBox(QtWidgets.QDialogButtonBox.Ok |
QtWidgets.QDialogButtonBox.Cancel, QtCore.Qt.Horizontal, dialog)
buttonBox.button(QtWidgets.QDialogButtonBox.Ok).setText('Ok')
buttonBox.button(QtWidgets.QDialogButtonBox.Cancel).setText('Cancel')
buttonBox.accepted.connect(dialog.accept)
buttonBox.rejected.connect(dialog.reject)
layout.addWidget(buttonBox)

dialog.setLayout(layout)
dialog.adjustSize()

if (dialog.exec_() == QtWidgets.QDialog.Accepted):
symbPanel.apply()


# Create simple application with only one button
app = QtWidgets.QApplication([])

window = QtWidgets.QWidget()
layout = QtWidgets.QVBoxLayout()
editBtn = QtWidgets.QPushButton('Edit Style')
editBtn.clicked.connect(editStyle)
layout.addWidget(editBtn)
window.setLayout(layout)
window.show()
app.exec_()

app.exit()
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Plugin [629] Networks approval notification.

2020-01-15 Thread noreply

Plugin Networks approval by pcav.
The plugin version "[629] Networks 2.3.19" is now approved
Link: http://plugins.qgis.org/plugins/networks/
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Build failed on Azure CI, how to get details

2020-01-15 Thread René-Luc Dhont

Hi Dev,

My PRs https://github.com/qgis/QGIS/pull/33813 and 
https://github.com/qgis/QGIS/pull/33725 failed to build on Azure CI.


The build log is minimalistic :

2020-01-15T10:12:39.7333036Z Build project
2020-01-15T10:12:39.7350985ZEach symbol represents 1024 bytes of output.
2020-01-15T10:12:39.7351096Z'!' represents an error and '*' a warning.
2020-01-15T10:21:19.1415558Z 
.*  Size: 49K
2020-01-15T10:36:14.5224541Z 
..*...  Size: 99K
2020-01-15T10:49:37.5635400Z 
...*..  Size: 149K
2020-01-15T10:58:23.4653034Z 
**  Size: 199K
2020-01-15T11:07:34.3517006Z 
.*...*..**...*** Size of output: 248K
2020-01-15T11:07:34.4586592Z Error(s) when building project
2020-01-15T11:07:34.4586766Z1 Compiler errors
2020-01-15T11:07:34.4587572Z56 Compiler warnings
2020-01-15T11:07:34.7983476Z [0/1] cmd.exe /C "cd /D D:\a\1\s\ms-windows\osgeo4w\build-qgis-dev-x86 
&& "C:\Program Files\CMake\bin\ctest.exe" -D ExperimentalSubmit"
2020-01-15T11:07:34.8127277ZSite: azure-pipelines
2020-01-15T11:07:34.8127629ZBuild name: PR 33813 / master (1138) 
(d88e9cbd97) (qgis-dev Experimental x86)
2020-01-15T11:07:34.8147167Z Submit files
2020-01-15T11:07:34.8147322ZSend to track: Experimental
2020-01-15T11:07:34.8147841ZSubmitURL: 
https://cdash.orfeo-toolbox.org/submit.php?project=QGIS
2020-01-15T11:07:36.9734255ZUploaded: 
D:/a/1/s/ms-windows/osgeo4w/build-qgis-dev-x86/Testing/20200115-1012/Build.xml
2020-01-15T11:07:37.4788307ZUploaded: 
D:/a/1/s/ms-windows/osgeo4w/build-qgis-dev-x86/Testing/20200115-1012/Done.xml
2020-01-15T11:07:37.4789266ZSubmission successful
2020-01-15T11:07:37.4891009Z build failed
2020-01-15T11:07:37.4896897Z BUILD ERROR 0: Wed 01/15/2020 11:07:37.47
2020-01-15T11:07:37.9186422Z ##[error]Cmd.exe exited with code '1'.
2020-01-15T11:07:38.0958787Z ##[section]Finishing: Building QGIS

How to get details when the build failed ?

Thanks

René-Luc


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Plugin [1946] Globe Builder approval notification.

2020-01-15 Thread noreply

Plugin Globe Builder approval by pcav.
The plugin version "[1946] Globe Builder 0.2.3 Experimental" is now approved
Link: http://plugins.qgis.org/plugins/GlobeBuilder/
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer