apache/pulsar

ImportError: No module named _pulsar

Open

#14.386 geöffnet am 20. Feb. 2022

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (3.485 Forks)batch import
Stalehelp wantedlifecycle/stale

Repository-Metriken

Stars
 (13.697 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 3T 10h) (146 gemergte PRs in 30 T)

Beschreibung

Expected behavior

I'm just trying to execute the format-phone-number example in local I'm using the Python3

I have installed the pulsar 2.0.2 pulsar-client 2.9.1

I'm using bin/pulsar standalone (2.6.0)

I tried to localrun the pulsar function using the below command

bin/pulsar-admin functions localrun
--broker-service-url pulsar://localhost:6650
--tenant public
--namespace default
--py /tmp/format-phone-number.zip
--classname phoneValidation.TestEtl
--inputs persistent://public/default/in
--output persistent://public/default/out
--log-topic persistent://public/default/log
--state-storage-service-url bk://127.0.0.1:4181

after running the above command I got the following error

File "/home/karthik/apache-pulsar-2.6.0/instances/python-instance/python_instance_main.py", line 36, in import pulsar File "/home/karthik/apache-pulsar-2.6.0/instances/python-instance/pulsar/init.py", line 102, in import _pulsar ImportError: No module named _pulsar

Contributor Guide