Closed cr2s367067 closed 9 months ago
The following steps could help workaround this issue while we identify and implement a fix for Raspberry Pi.
Install rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Checkout ngrok-python:
git clone https://github.com/ngrok/ngrok-python.git && cd ngrok-python
β
Edit requirements.txt. Remove mypy
and Sphinx
lines from requirements.txt
β
Add pip upgrade to Makefile:
diff --git a/Makefile b/Makefile
index cba3175..16349cf 100644
--- a/Makefile
+++ b/Makefile
@@ -14,9 +14,10 @@ all: venv run
venv:
: # Create venv if it doesn't exist
- test -d $(VENV) || ($(PY) -m venv $(VENV) && $(BIN)/pip install -r requirements.txt)
+ test -d $(VENV) || ($(PY) -m venv $(VENV) && $(BIN)/pip install -U pip && $(BIN)/pip install -r requirements.txt)
install: venv
+ . $(BIN)/activate && pip install -U pip
. $(BIN)/activate && pip install -r requirements.txt
examples-install: venv
Run make:
make
Would you be able to follow up with more details about your Raspberry Pi while we debug this further?
Yes, I would love to. I have made it run the make command for a day, but it's still compiling. I would leave a message if there's any updated information. thanks for your help.
: # Create venv if it doesn't exist
test -d .env || (python3 -m venv .env && .env/bin/pip install -U pip && .env/bin/pip install -r requirements.txt)
. .env/bin/activate && maturin develop
π¦ Including license file "/home/pi/textPyngrok/ngrok-python/LICENSE-APACHE"
π¦ Including license file "/home/pi/textPyngrok/ngrok-python/LICENSE-MIT"
πΉ Building a mixed python/rust project
π Found pyo3 bindings with abi3 support for Python β₯ 3.7
π Not using a specific python interpreter
Compiling tokio v1.32.0
Compiling futures-util v0.3.28
Compiling openssl v0.10.57
Compiling pin-project-internal v1.1.3
Building [==============> ] 119/197: pin-project-internal, tokio, futures-util, openssl
Good news, it works in the testing environment.
: # Create venv if it doesn't exist
test -d .env || (python3 -m venv .env && .env/bin/pip install -U pip && .env/bin/pip install -r requirements.txt)
. .env/bin/activate && maturin develop
π¦ Including license file "/home/pi/textPyngrok/ngrok-python/LICENSE-APACHE"
π¦ Including license file "/home/pi/textPyngrok/ngrok-python/LICENSE-MIT"
πΉ Building a mixed python/rust project
π Found pyo3 bindings with abi3 support for Python β₯ 3.7
π Not using a specific python interpreter
Finished dev [unoptimized + debuginfo] target(s) in 3.96s
π¦ Built wheel for abi3 Python β₯ 3.7 to /tmp/.tmpB0TaSg/ngrok-0.9.0-cp37-abi3-linux_aarch64.whl
π Installed ngrok-0.9.0
. .env/bin/activate && ./examples/ngrok-http-minimal.py
INFO:ngrok.session:Session created
INFO:ngrok.tunnel:Created tunnel "4860d9febcb2ff05a6b5e54d1e94ee85" with url "https://1c68-1-171-161-143.ngrok-free.app"
INFO:ngrok.tunnel:Tunnel "4860d9febcb2ff05a6b5e54d1e94ee85" forwarding to "tcp://127.0.0.1:37373"
INFO:ngrok.tunnel_ext:forward_tunnel; tunnel_id="4860d9febcb2ff05a6b5e54d1e94ee85" url=tcp://127.0.0.1:3737
Version 0.10.1
should now fix the issue when ngrok-python
is being installed from pypi.
HI, I'm new in ngrok, and I'm trying to implement the example code in raspberry pi.
also this version
These two version shows me the same error, I have tried to do some research these days and still can't solve this issue. Am I missing something need to set up, before I use the example code?