Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to launch the app #7

Closed
robin2010liu opened this issue Jan 31, 2021 · 5 comments
Closed

Error when trying to launch the app #7

robin2010liu opened this issue Jan 31, 2021 · 5 comments

Comments

@robin2010liu
Copy link

I tried to run it on a mac, but got error message like this. Any ideas? Thanks!

Traceback (most recent call last):
File "", line 1, in
File "/Users/robin/Library/Python/3.7/lib/python/site-packages/dtale_desktop/init.py", line 64, in run
app.run()
File "/Users/robin/Library/Python/3.7/lib/python/site-packages/dtale_desktop/app.py", line 74, in run
launch_browser_opener(f"http://{settings.HOST}:{settings.PORT}")
File "/Users/robin/Library/Python/3.7/lib/python/site-packages/dtale_desktop/subprocesses.py", line 55, in launch_browser_opener
subprocess.Popen(["dtaledesktop_open_browser", url])
File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 800, in init
restore_signals, start_new_session)
File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'dtaledesktop_open_browser': 'dtaledesktop_open_browser'

@phillipdupuis
Copy link
Owner

phillipdupuis commented Jan 31, 2021

Hmm that's strange, sorry about that. Can you type this into your terminal and post what it prints out?
$ which dtaledesktop_open_browser

In the meantime, I think a workaround might be to run it like this:
$ DTALEDESKTOP_DISABLE_OPEN_BROWSER=true dtaledesktop

That environment variable prevents the 'open_browser' subprocess from running on startup. You'll just need to grab the URL from the INFO: Uvicorn running on <url> (Press CTRL+C to quit) line that gets printed to the console and then paste it into your browser.

@robin2010liu
Copy link
Author

Thanks for fast reply!
$ which dtaledesktop_open_browser
returns nothing,
$ DTALEDESKTOP_DISABLE_OPEN_BROWSER=true dtaledesktop
returns
-bash: dtaledesktop: command not found
and if open python and import the module to run, it will show the above error.
It seems I installed successfully, let me try reinstall it.

@phillipdupuis
Copy link
Owner

Hm okay :/ it may be worth looking at some of the answers here, since it seems like your issue is that it can't find any of the executables: https://stackoverflow.com/questions/35898734/pip-installs-packages-successfully-but-executables-not-found-from-command-line

Does $ which python return anything?

@robin2010liu
Copy link
Author

It looks like the executable is installed in a folder which is not in the 'PATH'. I moved the executables to /usr/local/bin and it worked. Thanks for your help! Great work!

@phillipdupuis
Copy link
Owner

Oh awesome! And no problem :) I'll close this one out in that case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants