nathan-zhu opened a new issue #5514: use pulsar get error in mac os
URL: https://github.com/apache/pulsar/issues/5514
 
 
   #### Expected behavior
   hi, i use docker to start pulsar, use simple code to test connect pulsar 
server. the code like below:
   ```
   import pulsar
   client = pulsar.Client('pulsar://localhost:6650')
   producer = client.create_producer('my-topic')
   for i in range(10):
      producer.send(('hello-pulsar-%d' % i).encode('utf-8'))
   client.close()
   ```
   #### Actual behavior
   ```
   Traceback (most recent call last):
     File "pulsar.py", line 1, in <module>
       import pulsar
     File "/Users/python/Pulsar/pulsar.py", line 2, in <module>
       client = pulsar.Client('pulsar://localhost:6650')
   AttributeError: module 'pulsar' has no attribute 'Client'
   ```
   #### Steps to reproduce
   
   How can we reproduce the issue
   
   #### System configuration
   **Pulsar version**: 2.4.1
   **python**: 3.7.1
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to