Coder Social home page Coder Social logo

Comments (8)

almarklein avatar almarklein commented on September 6, 2024

This should be fixed by #6. Please reopen if it is not.

from webruntime.

zappfinger avatar zappfinger commented on September 6, 2024

Well, this version only solves the first part of the problem (about the unicode). But the last part remains:

[I 21:50:37 flexx.app] Asset store collected 2 new modules.
[I 21:50:38 flexx.app] Serving apps at http://localhost:49190/
[I 21:50:38 flexx.app] Asset store collected 23 new modules.
Traceback (most recent call last):
File "/Users/richard/PycharmProjects/FlexxTest/flexxTest.py", line 49, in
m = flx.launch(ThemedForm, 'app')
File "/Users/richard/py35env/lib/python3.5/site-packages/flexx/app/_funcs.py", line 231, in launch
return a.launch(runtime, **runtime_kwargs)
File "/Users/richard/py35env/lib/python3.5/site-packages/flexx/app/_app.py", line 166, in launch
session._runtime = webruntime.launch(url, runtime=runtime, **runtime_kwargs)
File "/Users/richard/py35env/lib/python3.5/site-packages/webruntime/init.py", line 200, in launch
raise ValueError('Could not detect a suitable backend among %r.' % runtimes)
ValueError: Could not detect a suitable backend among ['firefox-app', 'nw-app'].

Process finished with exit code 1

from webruntime.

almarklein avatar almarklein commented on September 6, 2024

Right. with the "app" runtime, you need to have either Firefox or Nw.js installed.

from webruntime.

zappfinger avatar zappfinger commented on September 6, 2024

from webruntime.

almarklein avatar almarklein commented on September 6, 2024

Oh, interesting. It looks like webruntime is unable to find it (the code that searches for it is here). Could you please try a few things?

  • Setting the runtime to 'firefox-app' and 'firefox-browser' (hoping for a clearer error msg).
  • What version of OS X are you using?
  • If possible, can you find it the location of the Firefox Application/executable?

from webruntime.

zappfinger avatar zappfinger commented on September 6, 2024

Ok, this sort of works. When I change 'app' to 'firefox', it works, but then it recommends me to use 'firefox-browser'. When I do that, it gives me:
[I 19:43:55 flexx.app] Asset store collected 2 new modules.
[I 19:43:56 flexx.app] Serving apps at http://localhost:49190/
[I 19:43:56 flexx.app] Asset store collected 23 new modules.
70:78: execution error: Firefox got an error: Application isn’t running. (-600)
[I 19:43:56 flexx.app] Starting Flexx event loop.
[I 19:43:59 flexx.app] New session ThemedForm 3E07Rsrtk8eSzLaRZrenR6JZ

When I use 'firefox-app' I get:
Traceback (most recent call last):
File "/Users/richard/PycharmProjects/FlexxTest/flexxTest.py", line 49, in
m = flx.launch(ThemedForm, 'firefox-app')
File "/Users/richard/py35env/lib/python3.5/site-packages/flexx/app/_funcs.py", line 231, in launch
return a.launch(runtime, **runtime_kwargs)
File "/Users/richard/py35env/lib/python3.5/site-packages/flexx/app/_app.py", line 166, in launch
session._runtime = webruntime.launch(url, runtime=runtime, **runtime_kwargs)
File "/Users/richard/py35env/lib/python3.5/site-packages/webruntime/init.py", line 200, in launch
raise ValueError('Could not detect a suitable backend among %r.' % runtimes)
ValueError: Could not detect a suitable backend among ['firefox-app'].

from webruntime.

zappfinger avatar zappfinger commented on September 6, 2024

Oh yeah and BTW, Firefox is not my default browser, that is Chrome. Maybe that has something to do with it..

from webruntime.

almarklein avatar almarklein commented on September 6, 2024

This is interesting. With 'firefox-browser' it gives an error, but does it still work (i.e. the app is opened in the browser)?

I don't think it matters whether ff is the default browser. My feeling is that webruntime finds a firefox executable that is not right, or broken in some way. It's hard for me to look into this, since I cannot reproduce it :) I can give some directions on where to look, and maybe we will be able to solve it that way.

I am curious what is found by _get_exe() https://github.com/flexxui/webruntime/blob/master/webruntime/_firefox.py#L134, and whether that matches the Firefox on your system. Could you place some breakpoints or print-statements there, to see what path is found?

from webruntime.

Related Issues (17)

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.