ImportError: cannot import name pubnub
Question: i have problem with pubhub module in python 2.7.6.

I've installed by `sudo pip install pubnub`

Output:

    
    
    >>> import pubnub
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "pubnub.py", line 3, in <module>
        from pubnub import Pubnub
    ImportError: cannot import name Pubnub
    
    >>> from pubnub import Pubnub
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "pubnub.py", line 3, in <module>
        from pubnub import Pubnub
    ImportError: cannot import name Pubnub
    

I reinstalled requests, python-dev and pubnub. Nothing helped

In help('modules') there is module pubnub


Answer: You have a file in your project called `pubnub.py`, which the importer is
finding before your installation of the pubnub module, I think. Rename your
file to something else, and everything should work.

