gustavk
2015-07-25 20:20:44 UTC
Hi,
I'm using Pygame which is working without any problem with Python 3.4 in my virtualenv (Ubuntu 15.04) and Eclipse Luna release 2 (4.4.2)
The only problem is the false error triggered by Pydev for some modules from Pygame.
Strangely, it's not for all the imports:
`from pygame.locals import *` raises no error,
but doing:
-`pygame.init()` raises the `undefined variable from import` (after having done `import pygame`of course).
-Other import error:
Using constant defined by `from pygame.locals import *' (this module allows to import constants into the namespace): the locals.py imports itself in fact another file: constants.cpython-34m.so
I've tried adding `pygame` in forced builtins in the interpreter.
I've read different answers for this type of import problems but contrary to other, everything is running without problem, except these errors raised by Pydev.
It seems a problem with `.so` file (but I didn't find it for `pygame.init()`??). How is it possible to solve it?
Thanks !
I'm using Pygame which is working without any problem with Python 3.4 in my virtualenv (Ubuntu 15.04) and Eclipse Luna release 2 (4.4.2)
The only problem is the false error triggered by Pydev for some modules from Pygame.
Strangely, it's not for all the imports:
`from pygame.locals import *` raises no error,
but doing:
-`pygame.init()` raises the `undefined variable from import` (after having done `import pygame`of course).
-Other import error:
Using constant defined by `from pygame.locals import *' (this module allows to import constants into the namespace): the locals.py imports itself in fact another file: constants.cpython-34m.so
I've tried adding `pygame` in forced builtins in the interpreter.
I've read different answers for this type of import problems but contrary to other, everything is running without problem, except these errors raised by Pydev.
It seems a problem with `.so` file (but I didn't find it for `pygame.init()`??). How is it possible to solve it?
Thanks !