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

Stuck on this: OSError: [Errno 8] Exec format error: '/tmp/ngrok/ngrok' #29

Open
snarflakes opened this issue Jan 13, 2022 · 1 comment

Comments

@snarflakes
Copy link

snarflakes commented Jan 13, 2022

Any idea why I'm getting this error with a basic test script?
i'm running the script as:
sudo python3 flaskngrokdemo.py

raspberry pi zero (not 64bit, maybe the problem?)

Name: flask-ngrok
Version: 0.0.26
Summary: A simple way to demo Flask apps from your machine.
Home-page: https://github.com/gstaff/flask-ngrok
Author: Grant Stafford
Author-email: None
License: UNKNOWN
Location: /home/pi/.local/lib/python3.7/site-packages
Requires: Flask, requests
Required-by:

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 1166, in run
self.function(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/dist-packages/flask_ngrok.py", line 70, in start_ngrok
ngrok_address = _run_ngrok()
File "/usr/local/lib/python3.7/dist-packages/flask_ngrok.py", line 31, in _run_ngrok
ngrok = subprocess.Popen([executable, 'http', '5000'])
File "/usr/lib/python3.7/subprocess.py", line 775, in init
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/tmp/ngrok/ngrok'

@srividya-p
Copy link

srividya-p commented Jan 19, 2022

Any updates on this? Getting the same error on my Raspberry Pi 3B+, I have installed flask-ngrok===0.0.26 on a virtual environment and I am running the script without sudo.

[EDIT] Figured it out. Check #30

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