The error message is now osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
Le samedi 5 décembre 2020 à 11:21:02 UTC+1, [email protected] a écrit : > I don't know if I'm doing this right. The only way to find a base-jinja > folder in this site is in bin/python3.6/site-packages/nikola/data/themes. > Is it the path I have to declare in the snippets ? > > I updated jinja2-2.9.5 to 2.11.2 and pip-20.2.4 to pip-20.3.1 > > The rebuild is now really long and leads to a 404 not found. > > Here's my base-helper snippets : > {% macro late_load_js() %} > {% if use_bundles %} > {% if use_cdn %} > <script src=" > https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js > "></script> > <script src=" > https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js > "></script> > <script src="/assets/js/all.js"></script> > {% else %} > <script src="/assets/js/all-nocdn.js"></script> > {% endif %} > {% else %} > {% if use_cdn %} > <script src=" > https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js > "></script> > <script src=" > https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js > "></script> > {% else %} > <script src="/assets/js/jquery.min.js"></script> > <script src="/assets/js/bootstrap.min.js"></script> > <script src="/assets/js/moment-with-locales.min.js"></script> > <script src="/assets/js/fancydates.js"></script> > {% endif %} > <script src="/assets/js/baguetteBox.min.js" async></script> > <script type="text/javascript"> > window.addEventListener('load', function() { > baguetteBox.run('.gallery'); > }); > </script> > {% endif %} > <script src="/assets/js/modal_newsletter.js"></script> > {{ social_buttons_code }} > {% endmacro %} > > > {% macro html_stylesheets() %} > {% if use_bundles %} > {% if use_cdn %} > <link href=" > https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" > rel="stylesheet"> > <link href="/assets/css/all.css" rel="stylesheet" > type="text/css"> > {% else %} > <link href="/assets/css/all-nocdn.css" rel="stylesheet" > type="text/css"> > {% endif %} > {% else %} > {% if use_cdn %} > <link href=" > https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" > rel="stylesheet"> > {% else %} > <link href="/assets/css/bootstrap.min.css" rel="stylesheet" > type="text/css"> > {% endif %} > <link href="/assets/css/rst.css" rel="stylesheet" type="text/css"> > <link href="/assets/css/code.css" rel="stylesheet" type="text/css"> > <link rel="stylesheet" href="css/baguetteBox.min.css"> > <link href="/assets/css/theme.css" rel="stylesheet" > type="text/css"> > {% if has_custom_css %} > <link href="/assets/css/custom.css" rel="stylesheet" > type="text/css"> > {% endif %} > {% endif %} > {% if needs_ipython_css %} > <link href="/assets/css/ipython.min.css" rel="stylesheet" > type="text/css"> > <link href="/assets/css/nikola_ipython.css" rel="stylesheet" > type="text/css"> > {% endif %} > > Le samedi 5 décembre 2020 à 10:54:32 UTC+1, [email protected] a écrit : > >> On Sat, 5 Dec 2020 at 10:51, [email protected] <[email protected]> >> wrote: >> > >> > Thank you so much for helping ! >> > So I did replace (manually) colorbox with baguettebox (downloading it >> and calling it directly from the templates). >> > >> > Then it logged : >> > "jinja2.exceptions.UndefinedError: 'jinja2.environment.TemplateModule >> object' has no attribute 'bar'" >> > >> > I saw here https://github.com/getnikola/nikola-themes/issues/38 that >> it might come from an old version of jinja ? >> >> I’m not sure, remove the cache, update Jinja2 and try again. It’s also >> possible that your templates are doing something weird. >> >> Also, you should not download baguetteBox manually, it’s already >> available (in base/base-jinja, from which every theme must inherit >> directly or indirectly) and you just need to remove the colorbox >> references and copy-paste the baguetteBox snippets. >> >> -- >> Chris Warrick <https://chriswarrick.com/> >> PGP: 5EAAEA16 >> > -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/cce99952-7bf9-439f-ae95-736fcacbb57fn%40googlegroups.com.
