(If I am continuing to top-post still, would someone be able to tell me the
proper way to reply to the thread? Currently, I am simply clicking "Reply"
in Gmail to the latest email in the thread that I have)

Just to provide an update for you all, I uninstalled Python 2 and
reinstalled it along with all modules in the book (without pip) with no
change.

So after digging deeper into the log, I decided to visit Debian's package
repository site for their Jessie distribution and downloaded the source
tarbell for MarkupSafe-0.23 just for the heck of it.

I installed it identically to how the book installs MarkupSafe-1.1.1 except
I installed the Python 2 module instead like so:

`python2 setup.py build &&

 python2 setup.py install --optimize=1`


Afterwards, I attempted the Jinja2 module install again. This time, it was
able to "see" the MarkupSafe module and used 1.1.1 to successfully install
the Python 2 module.

So it appears that installing MarkupSafe-0.23 allows for Jinja2 to find the
most recent version of MarkupSafe installed (which is 1.1.1) when building
the Python 2 module.

However, I am still unable to install Qt5WebEngine. While the above fixes
my first issue that caused a build failure, I am now experiencing yet
another build failure MUCH later into the process. Here is the output:

`In member function ‘void SocketCanBackend::readSocket()’:
socketcanbackend.cpp:697:41: error: ‘SIOCGSTAMP’ was not declared in this
scope
         if (Q_UNLIKELY(ioctl(canSocket, SIOCGSTAMP, &timeStamp) < 0)) {
                                         ^~~~~~~~~~
/sources/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/global/qcompilerdetection.h:237:49:
note: in definition of macro ‘Q_UNLIKELY’
 #  define Q_UNLIKELY(expr)  __builtin_expect(!!(expr), false)
                                                 ^~~~
socketcanbackend.cpp:697:41: note: suggested alternative: ‘SIOCSARP’
         if (Q_UNLIKELY(ioctl(canSocket, SIOCGSTAMP, &timeStamp) < 0)) {
                                         ^~~~~~~~~~
/sources/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/global/qcompilerdetection.h:237:49:
note: in definition of macro ‘Q_UNLIKELY’
 #  define Q_UNLIKELY(expr)  __builtin_expect(!!(expr), false)
                                                 ^~~~
make[5]: *** [Makefile:1241: .obj/socketcanbackend.o] Error 1
make[5]: Leaving directory
'/sources/qt-everywhere-src-5.13.0/qtserialbus/src/plugins/canbus/socketcan'
make[4]: *** [Makefile:88: sub-socketcan-install_subtargets] Error 2
make[4]: Leaving directory
'/sources/qt-everywhere-src-5.13.0/qtserialbus/src/plugins/canbus'
make[3]: *** [Makefile:59: sub-canbus-install_subtargets] Error 2
make[3]: Leaving directory
'/sources/qt-everywhere-src-5.13.0/qtserialbus/src/plugins'
make[2]: *** [Makefile:86: sub-plugins-install_subtargets] Error 2
make[2]: Leaving directory
'/sources/qt-everywhere-src-5.13.0/qtserialbus/src'
make[1]: *** [Makefile:61: sub-src-install_subtargets] Error 2
make[1]: Leaving directory '/sources/qt-everywhere-src-5.13.0/qtserialbus'
make: *** [Makefile:248: module-qtserialbus-install_subtargets] Error 2`

I have no idea what this issue could be except perhaps a lack of Internet
connectivity is to blame somehow. I am reasonably confident the issue is
not with Qt-5.13.0 as I have been able to install other packages that use
it as a dependency with no trouble.

Thanks,

Jared Stevens





On Sun, Sep 15, 2019 at 9:24 AM Christopher Gregory via blfs-support <
[email protected]> wrote:

>
>
> > Sent: Monday, September 16, 2019 at 1:06 AM
> > From: "Pierre Labastie via blfs-support" <
> [email protected]>
> > To: [email protected]
> > Cc: "Pierre Labastie" <[email protected]>
> > Subject: Re: [blfs-support] Issue installing Python2 module for
> Jinja2-2.10.1
> >
> > On 15/09/2019 12:52, Christopher Gregory via blfs-support wrote:
> > >
> > >
> > >> Sent: Sunday, September 15, 2019 at 8:53 PM
> > >> From: "Pierre Labastie via blfs-support" <
> [email protected]>
> > >> To: [email protected]
> > >> Cc: "Pierre Labastie" <[email protected]>
> > >> Subject: Re: [blfs-support] Issue installing Python2 module for
> Jinja2-2.10.1
> > >>
> > >> On 15/09/2019 01:23, Jared Stevens via blfs-support wrote:
> > >>> Thanks for the replies everyone, and I apologize for my late
> response.
> > >>>
> > >>> The QT5WebEngine-5.13.0 build is breaking during the `make` process
> at
> > >>> [155/15841] where it attempts to import Jinja2. For files
> > >>> `/Jinja2-2.10.1-py2.7.egg/jinja2/__init__.py, environment.py,
> nodes.py, and
> > >>> utils.py` it returns an error: `ImportError: No module named
> markupsafe.`
> > >>>
> > >>> So I am reasonably confident that the issue exists somewhere in the
> Python 2
> > >>> modules for either Jinja2 or MarkupSafe. I have reinstalled both
> modules
> > >>> several times with MarkupSafe always installing both modules
> successfully and
> > >>> Jinja2 failing to install the Python 2 module (due to said error in
> my first
> > >>> post) but installing the Python 3 module no problem.
> > >>>
> > >>> I have also tried reinstalling the dependencies for QT5WebEngine
> such as
> > >>> NSS-3.45, Qt-5.13.0, and Python-2.7.16 with no change. It will fail
> at this
> > >>> exact spot each and every time.
> > >>>
> > >>> The reason I have not yet tried to use `pip2 install Jinja2` or
> `pip2 install
> > >>> MarkupSafe` is because as of writing this post, I am also
> experiencing issues
> > >>> with getting wpa_supplicant and dhcpcd to properly connect to my
> > >>> WPA2-protected Wi-Fi (I cannot use Ethernet currently due to lack of
> Ethernet
> > >>> ports).
> > >>>
> > >>> That is a whole other issue, however, that I planned on also making
> a post in
> > >>> here for. So for the time being, I have been mostly using the chroot
> > >>> environment for installing packages as I can use my local Ubuntu
> account to
> > >>> wget updated packages if need be while also researching solutions
> online.
> > >>>
> > >>> I figured my next step would be to try reinstalling each and every
> Python
> > >>> module in the book and see if I didn't miss a dependency somewhere
> else, but I
> > >>> am open to suggestions and will attempt pip2 once I solve my
> Internet issue as
> > >>> well.
> > >>>
> > >>> Here is the output of the point in the build in which it fails
> (there is a lot
> > >>> of output so I only copied the section from the first fail message
> to the end):
> > >>>
> > >>> `[155/15841] /usr/bin/python2
> > >>>
> ../../../../src/3rdparty/chromium/services/catalog/public/tools/sourcify_manifest.py
> > >>>
> --root-manifest=../../../../src/3rdparty/chromium/components/services/heap_profiling/heap_profiling_manifest.json
> > >>>
> --submanifest-info=gen/components/services/heap_profiling/manifest.submanifest_info
> > >>> --output-function-name=heap_profiling::GetManifest
> > >>>
> --output-filename-base=gen/components/services/heap_profiling/manifest
> > >>> --module-path=components/services/heap_profiling/manifest
> > >>> FAILED: gen/components/services/heap_profiling/manifest.cc
> > >>> gen/components/services/heap_profiling/manifest.h
> > >>> /usr/bin/python2
> > >>>
> ../../../../src/3rdparty/chromium/services/catalog/public/tools/sourcify_manifest.py
> > >>>
> --root-manifest=../../../../src/3rdparty/chromium/components/services/heap_profiling/heap_profiling_manifest.json
> > >>>
> --submanifest-info=gen/components/services/heap_profiling/manifest.submanifest_info
> > >>> --output-function-name=heap_profiling::GetManifest
> > >>>
> --output-filename-base=gen/components/services/heap_profiling/manifest
> > >>> --module-path=components/services/heap_profiling/manifest
> > >>> Traceback (most recent call last):
> > >>>   File
> > >>>
> "../../../../src/3rdparty/chromium/services/catalog/public/tools/sourcify_manifest.py",
> > >>> line 53, in <module>
> > >>>     import jinja2
> > >>>   File
> > >>>
> "/usr/lib/python2.7/site-packages/Jinja2-2.10.1-py2.7.egg/jinja2/__init__.py",
> > >>> line 33, in <module>
> > >>>     from jinja2.environment import Environment, Template
> > >>>   File
> > >>>
> "/usr/lib/python2.7/site-packages/Jinja2-2.10.1-py2.7.egg/jinja2/environment.py",
> > >>> line 15, in <module>
> > >>>     from jinja2 import nodes
> > >>>   File
> > >>>
> "/usr/lib/python2.7/site-packages/Jinja2-2.10.1-py2.7.egg/jinja2/nodes.py",
> > >>> line 19, in <module>
> > >>>     from jinja2.utils import Markup
> > >>>   File
> > >>>
> "/usr/lib/python2.7/site-packages/Jinja2-2.10.1-py2.7.egg/jinja2/utils.py",
> > >>> line 647, in <module>
> > >>>     from markupsafe import Markup, escape, soft_unicode
> > >>> ImportError: No module named markupsafe
> > >>
> > >> Do not top-post, please. I've trimmed the message below, and it may
> have
> > >> important information...
> > >>
> > >> I do not have Jinja2 installed, I have the same command in my
> qtwebengine log,
> > >> and it does not fail. So there must be a shipped Jinja2 module with
> > >> qtwebengine, which is used if there is no Jinja2 on the system.
> > >>
> > >> I think you should follow Christopher advice of removing python2
> altogether
> > >> (taking care of removing /usr/lib/python2.7 completely), and
> rebuilding
> > >> python2 and all modules you need.
> > >>
> > >> Now, there are two problems with our book:
> > >> - Jinja2 python2 module should be recommended for QtWebEngine (since
> otherwise
> > >> a shipped version is used)
> > >> - We build Jinja2 for both P2 and P3, while Jinja2 depends on
> MarkupSafe, that
> > >> we only build for P3. So, a MarkupSafe "python egg" for P2 is
> downloaded
> > >> during the build of Jinja2 for P2, which we should avoid on a "build
> from
> > >> source" book. We should add a P2 build for MarkupSafe.
> > >>
> > >> But we need to test that Jinja2 for P2 is able to use MarkupSafe for
> P2, since
> > >> it seems the OP was showing some problem with that...
> > >>
> > >> Will do.
> > >>
> > >> Pierre
> > >> --
> > >> http://lists.linuxfromscratch.org/listinfo/blfs-support
> > >> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> > >> Unsubscribe: See the above information page
> > >>
> > >
> > > Hello,
> > >
> > > Just for reference, as I also have qtwebengine installed, here are a
> list of the python2 modules that I have installed.  It *may* give you a
> clue as to if you are missing anything:
> > >
> > > alabaster                0.7.12
> > > anytree                  2.6.0
> > > Babel                    2.6.0
> > > Beaker                   1.10.1
> > > caca                     0.99b19
> > > certifi                  2019.3.9
> > > chardet                  3.0.4
> > > Cython                   0.29.7
> > > dblatex                  0.3.10
> > > docutils                 0.14
> > > funcsigs                 1.0.2
> > > gpg                      1.13.0
> > > idna                     2.8
> > > imagesize                1.1.0
> > > Jinja2                   2.10.1
> > > libxml2-python           2.9.9
> > > lxml                     4.3.3
> > > Mako                     1.0.10
> > > MarkupSafe               1.1.1
> > > numpy                    1.16.3
> > > packaging                19.0
> > > parameterized            0.7.0
> > > pip                      19.2.3
> > > pycairo                  1.18.1
> > > pycrypto                 2.6.1
> > > Pygments                 2.4.0
> > > PyGObject                3.32.1
> > > pyparsing                2.4.0
> > > python-musicbrainz       2.1.5
> > > python-nghttp2           1.38.0
> > > pytz                     2019.1
> > > pyxdg                    0.26
> > > PyYAML                   5.1
> > > requests                 2.22.0
> > > setuptools               40.6.2
> > > six                      1.12.0
> > > snowballstemmer          1.2.1
> > > Sphinx                   1.8.5
> > > sphinxcontrib-websupport 1.1.2
> > > typing                   3.6.6
> > > urllib3                  1.25.3
> > > zenmap                   7.70
> > >
> >
> > Arrrgh, are they all used in Qtwebengine build (directly or indirectly as
> > dependencies of other modules)?
> >
> > Pierre
> >
> > --
> > http://lists.linuxfromscratch.org/listinfo/blfs-support
> > FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> > Unsubscribe: See the above information page
> >
>
> Hello Pierre,
>
> Sorry, didn't mean to cause you panic.  I was just stating what I have
> installed, for when the op re-installs python2. Some of course are pulled
> in because I have gnome, kde, lxde installed.  I expect some may have been
> pulled in when I installed modules via pip. caca is an optional package
> that I installed, so that can be discarded.
>
> Regards,
>
> Christopher.
> --
> http://lists.linuxfromscratch.org/listinfo/blfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
>
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to