Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot del version from mathutils, and AttributeError: module 'glm' has no attribute 'u8vec2' #75

Closed
ejlmljt opened this issue Apr 19, 2023 · 4 comments

Comments

@ejlmljt
Copy link

ejlmljt commented Apr 19, 2023

pymadcad 0.15.1, Python 3.9.7 , Windows 10, install "pip install pymadcad "Feb 19,2023
Ran from windows cmd window "python madcad_test1.py"

I had to change mathutils.py when script errored out with unfound module
Change from

del version, license

to

try:
del version, license
except:
print ("Could not delete module version,license in mathutils")

Also
AttributeError: module 'glm' has no attribute 'u8vec2'

Traceback (most recent call last):
File "C:\Users\XXXX\OneDrive\Documents\madcad\madcad_test1.py", line 3, in
from madcad import *
File "C:\Users\XXXX\AppData\Local\Programs\Python\Python39\lib\site-packages\madcad_init_.py", line 135, in
from . import (
File "C:\Users\XXXX\AppData\Local\Programs\Python\Python39\lib\site-packages\madcad\mathutils.py", line 21, in
import arrex.glm
File "C:\Users\XXXX\AppData\Local\Programs\Python\Python39\lib\site-packages\arrex\glm.py", line 28, in
type = getattr(glm, prec+'vec'+str(size))
AttributeError: module 'glm' has no attribute 'u8vec2'

Thanks

@jimy-byerley
Copy link
Owner

Weird issue, module glm usually has a class u8vec2
Can you please try to run the following in a python shell ?

import glm
print(glm)
print(glm.version)

@ejlmljt
Copy link
Author

ejlmljt commented Apr 24, 2023 via email

@jimy-byerley
Copy link
Owner

That's right, the correct glm module for pymadcad is pyglm and not glm from here
They are named likewise once installed, but usually that's not a problem when leaving the dependencies resolution to pip ... still this should be harmonized.

Well I'm glad you solved your issue. Come back if you have any other issue ;)

@ejlmljt
Copy link
Author

ejlmljt commented Apr 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants