google cloud messaging - Python 3.4 import gcm raise a SystemError: Parent module '' not loaded, cannot perform relative import -


i'm trying import gcm following:

from . import gcm  

and get:

systemerror: parent module '' not loaded, cannot perform relative import 

i tried called:

from gcm import gcm 

by pip install python-gcm follwoing error: module' object has no attribute 'gcm

don't use relative import syntax, from . import gcm. instead, put library python interpreter can find (via pip install python-gcm) , call from gcm import gcm in program.

however, if still error while attempting import, should add comment project's open python3 import issue thread on github , let them know, since there still appears ambiguity if bug has been fixed yet or not.


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -