> 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
