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
