Re: [QGIS-Developer] Issues building from source on Mac - No module named PyQt5

2018-03-09 Thread Timur Girgin
Well, you might just be right since I could not get some of the packages
working off of brew (due to installation issues, or unavailability). Some
of them were build from source (e.g., SIP), which might be causing the
issue that you are talking about.

And no, I have not been using Remi's formula.

What I am trying to accomplish is to create a QGIS installer for Mac since
there seems to be demand for one, though I have little experience in doing
so.

Thank you for your help

On Fri, Mar 9, 2018 at 11:40 AM, Carlo A. Bertelli (Charta s.r.l.) <
carlo.berte...@gmail.com> wrote:

> This discussion is going a bit off-topic, but I think the problem could be
> in your Homebrew installation. If someone changes the reference to qt from
> qt4 to qt5 may cause some issue (I call it a mess, but I am biased, I had a
> very bad time with these issue – thanks to Larry did fix them). Maybe you
> will have to uninstall all qt related formulas and reinstall qt 4 and 5.
> I see Remi Desgrange made a formula for the released QGIS 3 here:
> https://github.com/RemiDesgrange/homebrew-qgisrelease
> Are you using it?
> c
>
>
> On Fri, Mar 9, 2018 at 5:22 PM, Timur Girgin <girgin.ti...@gmail.com>
> wrote:
>
>> Hello Carlo,
>>
>> Would you advice building Qt5 from source then, rather than using brew?
>>
>> Thanks
>>
>> On Fri, Mar 9, 2018 at 11:13 AM, Carlo A. Bertelli (Charta s.r.l.) <
>> carlo.berte...@gmail.com> wrote:
>>
>>> Hello,
>>> I suggest to remind that using Homebrew carries in another issue. The
>>> maintainers decided to force everyone to use Qt5 as Qt4 is deprecated by Qt
>>> developers. Everything that was called qt5-something should become
>>> qt-something, so everyone who uses Qt4 had to make formulas called
>>> qt4-something for every Qt4 dependency.
>>> This was the case even for OsGeo4Mac (https://github.com/OsGeo/home
>>> brew-osgeo4mac/) and Larry Shaffer had to recreate all the needed
>>> dependencies inside this tap. If you have old Qt dependencies inside your
>>> Homebrew, it may happen that qt-something is still qt4-something even if
>>> brew thinks it's qt5... Feeling bewildered? So am I.
>>> c
>>>
>>> On Thu, Mar 8, 2018 at 4:10 PM, Timur Girgin <girgin.ti...@gmail.com>
>>> wrote:
>>>
>>>> Hello everyone,
>>>>
>>>> I am having trouble building the QGIS release-3_0 branch on my Mac. I
>>>> finally got it to cmake, however I am getting an error during the make
>>>> process in which it seems that spatialite is using the system's Python(@2)
>>>> executable to find PyQT5 when in reality it should be looking for it in the
>>>> Python@3 executable that has been given during CMAKE. I am guessing
>>>> this is what is causing the issue.
>>>>
>>>> Please find the error at the bottom of this email. If anyone knows what
>>>> I am doing wrong, would you please let me know?
>>>>
>>>> Thank you very much!
>>>> Tim
>>>>
>>>> Here is my CMAKE:
>>>>
>>>> cmake -D CMAKE_INSTALL_PREFIX=~/Downloads/QGIS-build \
>>>>   -D CMAKE_BUILD_TYPE=MINSIZEREL -D ENABLE_TESTS=FALSE \
>>>>   -D 
>>>> SPATIALINDEX_LIBRARY=/usr/local/Cellar/spatialindex/1.8.5/lib/libspatialindex.4.dylib
>>>> \
>>>>   -D SPATIALINDEX_INCLUDE_DIR=/usr/local/Cellar/spatialindex/1.8.
>>>> 5/include/spatialindex/\
>>>>   -D QWT_LIBRARY=/usr/local/qwt-6.1.3/lib/libqwt.dylib \
>>>>   -D QWT_INCLUDE_DIR=/usr/local/qwt-6.1.3/include \
>>>>   -D BISON_EXECUTABLE=/usr/local/Cellar/bison/3.0.4_1/bin/bison \
>>>>   -D GEOS_LIBRARY=/usr/local/Cellar/geos/3.6.2/lib/libgeos.dylib \
>>>>   -D GEOS_INCLUDE_DIR=/usr/local/Cellar/geos/3.6.2/include \
>>>>   -D LIBZIP_LIBRARY=/usr/local/Cellar/libzip/1.4.0/lib/libzip.5.0.dylib
>>>> \
>>>>   -D LIBZIP_INCLUDE_DIR=/usr/local/Cellar/libzip/1.4.0/include \
>>>>   -D LIBZIP_CONF_INCLUDE_DIR=/usr/local/Cellar/libzip/1.4.0/include \
>>>>   -D EXPAT_LIBRARY=/usr/local/Cellar/expat/2.2.5/lib/libexpat.1.6.7.dylib
>>>> \
>>>>   -D EXPAT_INCLUDE_DIR=/usr/local/Cellar/expat/2.2.5/include \
>>>>   -D Qt5Core_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Core \
>>>>   -D Qt5Gui_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Gui \
>>>>   -D Qt5Test_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Test \
>>>>   -D Qt5Widgets_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Widgets \
>>>>   -D Qt5Concurrent_

Re: [QGIS-Developer] Issues building from source on Mac - No module named PyQt5

2018-03-09 Thread Timur Girgin
Hello Carlo,

Would you advice building Qt5 from source then, rather than using brew?

Thanks

On Fri, Mar 9, 2018 at 11:13 AM, Carlo A. Bertelli (Charta s.r.l.) <
carlo.berte...@gmail.com> wrote:

> Hello,
> I suggest to remind that using Homebrew carries in another issue. The
> maintainers decided to force everyone to use Qt5 as Qt4 is deprecated by Qt
> developers. Everything that was called qt5-something should become
> qt-something, so everyone who uses Qt4 had to make formulas called
> qt4-something for every Qt4 dependency.
> This was the case even for OsGeo4Mac (https://github.com/OsGeo/
> homebrew-osgeo4mac/) and Larry Shaffer had to recreate all the needed
> dependencies inside this tap. If you have old Qt dependencies inside your
> Homebrew, it may happen that qt-something is still qt4-something even if
> brew thinks it's qt5... Feeling bewildered? So am I.
> c
>
> On Thu, Mar 8, 2018 at 4:10 PM, Timur Girgin <girgin.ti...@gmail.com>
> wrote:
>
>> Hello everyone,
>>
>> I am having trouble building the QGIS release-3_0 branch on my Mac. I
>> finally got it to cmake, however I am getting an error during the make
>> process in which it seems that spatialite is using the system's Python(@2)
>> executable to find PyQT5 when in reality it should be looking for it in the
>> Python@3 executable that has been given during CMAKE. I am guessing this
>> is what is causing the issue.
>>
>> Please find the error at the bottom of this email. If anyone knows what I
>> am doing wrong, would you please let me know?
>>
>> Thank you very much!
>> Tim
>>
>> Here is my CMAKE:
>>
>> cmake -D CMAKE_INSTALL_PREFIX=~/Downloads/QGIS-build \
>>   -D CMAKE_BUILD_TYPE=MINSIZEREL -D ENABLE_TESTS=FALSE \
>>   -D 
>> SPATIALINDEX_LIBRARY=/usr/local/Cellar/spatialindex/1.8.5/lib/libspatialindex.4.dylib
>> \
>>   -D SPATIALINDEX_INCLUDE_DIR=/usr/local/Cellar/spatialindex/1.8.
>> 5/include/spatialindex/\
>>   -D QWT_LIBRARY=/usr/local/qwt-6.1.3/lib/libqwt.dylib \
>>   -D QWT_INCLUDE_DIR=/usr/local/qwt-6.1.3/include \
>>   -D BISON_EXECUTABLE=/usr/local/Cellar/bison/3.0.4_1/bin/bison \
>>   -D GEOS_LIBRARY=/usr/local/Cellar/geos/3.6.2/lib/libgeos.dylib \
>>   -D GEOS_INCLUDE_DIR=/usr/local/Cellar/geos/3.6.2/include \
>>   -D LIBZIP_LIBRARY=/usr/local/Cellar/libzip/1.4.0/lib/libzip.5.0.dylib \
>>   -D LIBZIP_INCLUDE_DIR=/usr/local/Cellar/libzip/1.4.0/include \
>>   -D LIBZIP_CONF_INCLUDE_DIR=/usr/local/Cellar/libzip/1.4.0/include \
>>   -D EXPAT_LIBRARY=/usr/local/Cellar/expat/2.2.5/lib/libexpat.1.6.7.dylib
>> \
>>   -D EXPAT_INCLUDE_DIR=/usr/local/Cellar/expat/2.2.5/include \
>>   -D Qt5Core_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Core \
>>   -D Qt5Gui_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Gui \
>>   -D Qt5Test_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Test \
>>   -D Qt5Widgets_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Widgets \
>>   -D Qt5Concurrent_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Concurrent
>> \
>>   -D Qt5OpenGL_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5OpenGL \
>>   -D Qt5Xml_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Xml \
>>   -D Qt5Svg_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Svg \
>>   -D Qt5Network_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Network \
>>   -D 
>> Qt5PrintSupport_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5PrintSupport
>> \
>>   -D Qt5Positioning_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Positioning
>> \
>>   -D Qt5XmlPatterns_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5XmlPatterns
>> \
>>   -D Qt5WebKit_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5WebView \
>>   -D Qt5UiTools_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5UiTools \
>>   -D Qt5Sql_DIR=/usr/local/Cellar/qt/5.10.1/lib/cmake/Qt5Sql \
>>   -D 
>> QCA_INCLUDE_DIR=/usr/local/Cellar/qt/5.10.1/lib/qca-qt5.framework/Versions/2.1.3/Headers
>> \
>>   -D 
>> QCA_LIBRARY=/usr/local/Cellar/qt/5.10.1/lib/qca-qt5.framework/Versions/2.1.3/qca-qt5
>> \
>>   -D LIBTASN1_LIBRARY=/usr/local/Cellar/libtasn1/4.13/lib/libtasn1.6.dylib
>> \
>>   -D LIBTASN1_INCLUDE_DIR=/usr/local/Cellar/libtasn1/4.13/include \
>>   -D QSCINTILLA_INCLUDE_DIR=/usr/local/Cellar/qscintilla2/2.10.2_1/include
>> \
>>   -D QSCINTILLA_LIBRARY=/usr/local/Cellar/qscintilla2/2.10.2_1/li
>> b/libqscintilla2_qt5.13.1.0.dylib \
>>   -D QTKEYCHAIN_INCLUDE_DIR=/usr/local/Cellar/qtkeychain/0.8.0/include \
>>   -D 
>> QTKEYCHAIN_LIBRARY=/usr/local/Cellar/qtkeychain/0.8.0/lib/libqt5keychain.0.8.0.dylib
>> \
>>   -D 
>> SPATIALITE_LIBRARY=/usr