Zuzu-Typ / PyGLM

Fast OpenGL Mathematics (GLM) for Python
zlib License
214 stars 29 forks source link

importing glm doesnt work #216

Closed rexolon closed 1 year ago

rexolon commented 1 year ago

i can install it with pip, that works but i cant import it to my projects when i impoprt it "import glm" i cant use it

e.g.: res = glm.vec2(1600, 900) but it gives the warning Cannot find reference 'vec2' in 'init.py | init.py'

i am 100% sure i installed PyGLM and NOT glm

rexolon commented 1 year ago

am using PyCharm btw

Zuzu-Typ commented 1 year ago

I suspect you're using Python 3.11, which I haven't yet published PyGLM for. I'm a little busy, so please remind me if I haven't published PyGLM for Python 3.11 in a week

rexolon commented 1 year ago

oh alright thank you :D

Zuzu-Typ commented 1 year ago

Nevermind, PyGLM already supports 3.11. Are you using Python 3.12 (prerelease) perhaps?

rexolon commented 1 year ago

no, i am using Python 3.11.4 but i switched to VSCode, it works there, so its probably a PyCharm thing abyway thanks for your time :)