Git Product home page Git Product logo

Comments (8)

svenkreiss avatar svenkreiss commented on July 17, 2024

Strange. Please make sure you don't have conflicting versions, i.e. do not clone this repository and also do pip install openpifpafwebdemo.

If that is not it:
Which operating system are you on?
Did you clone or use pip install openpifpafwebdemo?

from openpifpafwebdemo.

HuAndrew avatar HuAndrew commented on July 17, 2024

I can test single images successfully.

But run openpifpafwebdemo.server occur the same problems as follow:

Traceback (most recent call last):
  File "E:\Program Files\PyTools\Anaconda3\lib\site-packages\tornado\web.py", line 1590, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "E:\Program Files\PyTools\Anaconda3\lib\site-packages\databench\meta.py", line 269, in get
    **self.info)
  File "E:\Program Files\PyTools\Anaconda3\lib\site-packages\tornado\web.py", line 766, in render
    html = self.render_string(template_name, **kwargs)
  File "E:\Program Files\PyTools\Anaconda3\lib\site-packages\tornado\web.py", line 904, in render_string
    t = loader.load(template_name)
  File "E:\Program Files\PyTools\Anaconda3\lib\site-packages\tornado\template.py", line 425, in load
    self.templates[name] = self._create_template(name)
  File "E:\Program Files\PyTools\Anaconda3\lib\site-packages\databench\template.py", line 29, in _create_template
    f.read(), name=name, loader=self)
  File "E:\Program Files\PyTools\Anaconda3\lib\site-packages\tornado\template.py", line 305, in __init__
    self.code = self._generate_python(loader)
  File "E:\Program Files\PyTools\Anaconda3\lib\site-packages\tornado\template.py", line 353, in _generate_python
    ancestors = self._get_ancestors(loader)
  File "E:\Program Files\PyTools\Anaconda3\lib\site-packages\tornado\template.py", line 371, in _get_ancestors
    template = loader.load(chunk.name, self.name)
  File "E:\Program Files\PyTools\Anaconda3\lib\site-packages\tornado\template.py", line 425, in load
    self.templates[name] = self._create_template(name)
  File "E:\Program Files\PyTools\Anaconda3\lib\site-packages\databench\template.py", line 27, in _create_template
    with open(name, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'analysis.html'

from openpifpafwebdemo.

HuAndrew avatar HuAndrew commented on July 17, 2024

Ans I test in windows10 platform.

from openpifpafwebdemo.

svenkreiss avatar svenkreiss commented on July 17, 2024

I am trying to setup unit tests for Windows to reproduce the problem, but it is not easy for me. For reference: svenkreiss/databench#67

Has anyone seen this on a different platform than windows?

from openpifpafwebdemo.

HuAndrew avatar HuAndrew commented on July 17, 2024

Thanks for sharing your work.

from openpifpafwebdemo.

svenkreiss avatar svenkreiss commented on July 17, 2024

Is this fixed with the new databench?
I.e. run pip install --upgrade databench before trying again.

from openpifpafwebdemo.

HuAndrew avatar HuAndrew commented on July 17, 2024

It's very perfect! Thanks a lot.

from openpifpafwebdemo.

svenkreiss avatar svenkreiss commented on July 17, 2024

Great! Thanks for confirming.

from openpifpafwebdemo.

Related Issues (7)

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.