{"action":"opened","issue":{"url":"https://api.github.com/repos/brython-dev/brython-pygame/issues/1","repository_url":"https://api.github.com/repos/brython-dev/brython-pygame","labels_url":"https://api.github.com/repos/brython-dev/brython-pygame/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/brython-dev/brython-pygame/issues/1/comments","events_url":"https://api.github.com/repos/brython-dev/brython-pygame/issues/1/events","html_url":"https://github.com/brython-dev/brython-pygame/issues/1","id":138843916,"number":1,"title":"Cannot import","user":{"login":"Lightning3105","id":6190754,"avatar_url":"https://avatars.githubusercontent.com/u/6190754?v=3","gravatar_id":"","url":"https://api.github.com/users/Lightning3105","html_url":"https://github.com/Lightning3105","followers_url":"https://api.github.com/users/Lightning3105/followers","following_url":"https://api.github.com/users/Lightning3105/following{/other_user}","gists_url":"https://api.github.com/users/Lightning3105/gists{/gist_id}","starred_url":"https://api.github.com/users/Lightning3105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lightning3105/subscriptions","organizations_url":"https://api.github.com/users/Lightning3105/orgs","repos_url":"https://api.github.com/users/Lightning3105/repos","events_url":"https://api.github.com/users/Lightning3105/events{/privacy}","received_events_url":"https://api.github.com/users/Lightning3105/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-06T22:10:57Z","updated_at":"2016-03-06T22:10:57Z","closed_at":null,"body":"Importing the pygame module does not seem to work. I can import the module from another file, but then I get this error report in my chrome console:\r\n\r\n> module pygame line 73\r\n    from pygame.base import *\r\nImportError: pygame\r\n\r\nI get no 404 errors, and the debug console of my flask server shows no GET requests. The same is true for all of the other imports:\r\n\r\n    from pygame.base import *\r\n    from pygame.constants import *\r\n    from pygame.version import *\r\n    from pygame.rect import Rect\r\n    import pygame.color\r\n\r\nI have tried changing the code to `from pygame_base import *`, and then routed \"pygame_base\" to the correct file through my web server, however this is an imperfect and time consuming solution.\r\n\r\nI also get errors a little further down the pygame __init__ file:\r\n\r\n    from . import time\r\n    from . import display\r\n    from . import constants\r\n    from . import event\r\n    from . import font\r\n    from . import mixer\r\n    from . import sprite\r\n    from .surface import Surface\r\n    from . import image\r\n    from . import mouse\r\n    from . import transform\r\nAgain, no 404 errors, just this error message:\r\n\r\n> module pygame line 82\r\n    from . import time\r\nImportError: Parent module '' not loaded, cannot perform relative import\r\n\r\nI have not yet been able to find a sure-fire solution to all of these problems. If you have any time to look into this, it would be much appreciated."}}