Coder Social home page Coder Social logo

Comments (5)

bkueng avatar bkueng commented on June 15, 2024

What is the exact exception?
I don't get an error with 3.1.1.

from flight_review.

eduardkieser avatar eduardkieser commented on June 15, 2024

Apologies, it seems to be a combination between the Bokeh and Jinja2 version. So templates.py in bokey lib, so not stricktly speaking a PX4/flight_review problem.

Traceback (most recent call last):
  File "/home/eduard/workspace/flight_review/app/./serve.py", line 12, in <module>
    from bokeh.application import Application
  File "/home/eduard/.pyenv/versions/bc395/lib/python3.9/site-packages/bokeh/application/__init__.py", line 28, in <module>
    from .application import Application
  File "/home/eduard/.pyenv/versions/bc395/lib/python3.9/site-packages/bokeh/application/application.py", line 33, in <module>
    from ..document import Document
  File "/home/eduard/.pyenv/versions/bc395/lib/python3.9/site-packages/bokeh/document/__init__.py", line 35, in <module>
    from .document import DEFAULT_TITLE ; DEFAULT_TITLE
  File "/home/eduard/.pyenv/versions/bc395/lib/python3.9/site-packages/bokeh/document/document.py", line 49, in <module>
    from ..core.templates import FILE
  File "/home/eduard/.pyenv/versions/bc395/lib/python3.9/site-packages/bokeh/core/templates.py", line 46, in <module>
    from jinja2.utils import Markup
ImportError: cannot import name 'Markup' from 'jinja2.utils' (/home/eduard/.pyenv/versions/bc395/lib/python3.9/site-packages/jinja2/utils.py)

Packages in my venv:

bokeh==2.1.1
Jinja2==3.1.1

from flight_review.

luvwinnie avatar luvwinnie commented on June 15, 2024

I'm facing the same problem, it seems like by upgrading the bokeh==2.1.1 to bokeh==2.4.2(latest) can be fix this error.
But need to test first.

from flight_review.

luvwinnie avatar luvwinnie commented on June 15, 2024

I have tested that if upgrade from bokeh 2.1.1 to 2.4.2 would broke the program, instead make sure that Jinja2 use for example 3.0.0 instead of latest 3.1.1.

from flight_review.

bkueng avatar bkueng commented on June 15, 2024

Should be resolved with #238

from flight_review.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.