I accidentally installed python-babel
instead of python3-babel thx everybody t3ss On 27.07.21 18:34, t3sserakt wrote: > $ pip --version > pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8) > $ python3 --version > Python 3.8.10 > $ pip list|grep -i jinja > Jinja2 3.0.1 > Jinja2-Ext 0.1 > $ dpkg -l |grep jinja > ii python3-jinja2 2.10.1-2 > > - t3ss > > > On 27.07.21 14:55, Florian Dold wrote: >> Hi t3ss, >> >> Is the pip you're invoking pip2 or pip3? Maybe you're installing the >> package for Python2, when the Website builder is using Python3. Could >> you post the output of "pip --version"? >> >> - Florian >> >> On 7/27/21 2:15 PM, t3sserakt wrote: >>> Hello *, >>> >>> although I run >>> >>> pip install jinja2.ext >>> >>> I got the error below. What am I doing wrong? >>> >>> - t3ss >>> >>> $ make >>> ./inc/update-messages >>> Using languages en ar fr it es de zh_Hant hi ja ko pt >>> Updating message catalog >>> extracting messages from common/base.j2 (trim_blocks="True", >>> lstrip_blocks="True", encoding="utf-8") >>> Traceback (most recent call last): >>> File "/usr/bin/pybabel", line 11, in <module> >>> load_entry_point('Babel==2.6.0', 'console_scripts', 'pybabel')() >>> File "/usr/lib/python2.7/dist-packages/babel/messages/frontend.py", >>> line 911, in main >>> return CommandLineInterface().run(sys.argv) >>> File "/usr/lib/python2.7/dist-packages/babel/messages/frontend.py", >>> line 835, in run >>> return cmdinst.run() >>> File "/usr/lib/python2.7/dist-packages/babel/messages/frontend.py", >>> line 470, in run >>> for filename, lineno, message, comments, context in extracted: >>> File "/usr/lib/python2.7/dist-packages/babel/messages/extract.py", >>> line 157, in extract_from_dir >>> dirpath=absname, >>> File "/usr/lib/python2.7/dist-packages/babel/messages/extract.py", >>> line 212, in check_and_call_extract_file >>> strip_comment_tags=strip_comment_tags >>> File "/usr/lib/python2.7/dist-packages/babel/messages/extract.py", >>> line 241, in extract_from_file >>> strip_comment_tags)) >>> File "/usr/lib/python2.7/dist-packages/babel/messages/extract.py", >>> line 294, in extract >>> func = getattr(__import__(module, {}, {}, [attrname]), attrname) >>> File "/home/t3sserakt/Dokumente/www/inc/sitegen/i18nfix.py", line >>> 16, >>> in <module> >>> import jinja2.ext >>> ImportError: No module named jinja2.ext >>> >>> >>>
pEpkey.asc
Description: application/pgp-keys