Open nickl- opened 12 years ago
[2012-06-07 06:45 UTC] lahiruhd at gmail dot com Hi, I installed gearman in ubuntu 10.10 using the following command; apt-get install gearman-job-server
Then checked the installation using the following command and got success result. gearmand -vvv
In my program I have to use Python, so I installed python gearman client using following command;
easy_install gearman
also installed and checked with;
pip install gearman
Both are installed successfully
But when I going to import GearmanClient in python, it gives an error saying cannot import name GearmanClient
IDE : Eclipse
Code :
import time
from gearman import GearmanClient, Task
client = GearmanClient(["127.0.0.1"])
for i in range(5):
client.dispatch_background_task('speak', i)
print 'Dispatched %d' % i
time.sleep(1)
Result error :
from gearman import GearmanClient, Task
ImportError: cannot import name GearmanClient
ERROR: Module: producer could not be imported (file: /home/lahiru/workspace/GearMan-Test/producer.py).
Thanks in advanced for any help.
Bug #61488 Installation successful but unable to load , i don't know why
Submitted: 2012-03-23 08:51 UTC Modified: -
From: jianwangok at 163 dot com Assigned:
Status: Open Package: python (PECL) PHP Version: 5.4.0 OS: CentOS Private report: No CVE-ID:
[2012-03-23 08:51 UTC] jianwangok at 163 dot com
Description:
I have tried with php 5.2.9 and PHP 5.4.0
please tell why,thank you very mush! my email address: jianwangok@163.com