Comments (8)
This should be fixed by #6. Please reopen if it is not.
from webruntime.
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.
Right. with the "app" runtime, you need to have either Firefox or Nw.js installed.
from webruntime.
from webruntime.
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.
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.
Oh yeah and BTW, Firefox is not my default browser, that is Chrome. Maybe that has something to do with it..
from webruntime.
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)
- Making single-process desktop apps?
- Using 'browser' uses Chrome even if Firefox is the default HOT 2
- _common.py exe_name on MacOS HOT 1
- Running app runtime in fullscreen doesn't go over the taskbar HOT 4
- Use new SSB functionality of Firefox
- How to focus the dom on launch? HOT 2
- Icon not working in firefox runtime
- Could not detect a suitable backend among ['firefox-browser'] HOT 6
- Could not detect a suitable backend among ['googlechrome-browser', 'chromium-browser'] HOT 2
- Unable to launch a webruntime on Win10 x64 Python 3.6 HOT 4
- Support Chromium based Edge
- Title and size argument not respected for chrome-app HOT 2
- XULRunner error HOT 5
- Maybe implement a runtime for cefpython
- Electron runtime HOT 2
- Runtime based on Firefox' engine
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webruntime.