Python 3.4 import gcm raise a SystemError: Parent module '' not loaded, cannot perform relative import
Question: I'm trying to import gcm as following:

    
    
    from . import gcm 
    

And i get:

    
    
    SystemError: Parent module '' not loaded, cannot perform relative import
    

I tried also called:

    
    
    from gcm import GCM
    

by `pip install python-gcm` but i get the follwoing error: module' object has
no attribute 'GCM


Answer: Don't use the relative import syntax, `from . import gcm`. Instead, put the
library where the Python interpreter can find it (via `pip install python-
gcm`) and call `from gcm import GCM` in your program.

However, if you still get an error while attempting to import, you should add
a comment to the project's [open Python3 import issue thread on
GitHub](https://github.com/geeknam/python-gcm/issues/65) and let them know,
since there still appears to be some ambiguity if this bug has been fixed yet
or not.

