apache/pulsar

ImportError: No module named _pulsar

Open

#14,386 opened on 2022年2月20日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)Java (3,485 forks)batch import
Stalehelp wantedlifecycle/stale

Repository metrics

Stars
 (13,697 stars)
PR merge metrics
 (平均マージ 3d 10h) (30d で 146 merged PRs)

説明

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

コントリビューターガイド