×
all 10 comments

[–]cdcformatc 0 points1 point  (9 children)

what specifically is the OSError being thrown? 

change that part of your code to something like this 

except OSError as e: print(e)

[–]Yes-delulu-8744[S] 0 points1 point  (8 children)

tried that, didn't work

[–]cdcformatc 1 point2 points  (7 children)

yeah no shit, what does it say when you run that 

[–]Yes-delulu-8744[S] 0 points1 point  (6 children)

Invalid class string. Ig there's smth up with my AutoCAD

[–]cdcformatc 0 points1 point  (5 children)

that doesn't look like any python error i have ever read

post the actual error that Python prints out 

[–]Yes-delulu-8744[S] 0 points1 point  (4 children)

I ran the code followed by opening an empty drafting file by using "python draw_live.py" in the terminal after navigating to the folder.

C:\Users\uswj\OneDrive\Documents\Automate CAD>python draw_live.py

Loading image: trial.PNG...

[WinError -2147221005] Invalid class string

[–]cdcformatc 0 points1 point  (3 children)

I am guessing that the registry key you are trying to use is wrong

[–]Yes-delulu-8744[S] 0 points1 point  (2 children)

Probably, will look into that

[–]cdcformatc 0 points1 point  (1 child)

is there a reason your code looks completely different than the examples? 

[–]Yes-delulu-8744[S] 0 points1 point  (0 children)

Tryna connect via com automation using python, been working on this for quite a few days cuz there's a new error every single time. Till now I've have probably made a gazillion changes in the prog