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

How to fix not run in linux python error.. #188

Open
kocoman2 opened this issue Nov 22, 2024 · 1 comment
Open

How to fix not run in linux python error.. #188

kocoman2 opened this issue Nov 22, 2024 · 1 comment

Comments

@kocoman2
Copy link

kocoman2 commented Nov 22, 2024

edit: ok I have to remove ", ctypes"
44b5bb1

./ProperTree.py
Traceback (most recent call last):
File "ProperTree-master/./ProperTree.py", line 2, in
import sys, os, binascii, base64, json, re, subprocess, webbrowser, multiprocessing, signal, ctypes
File "/usr/lib/python3.12/ctypes/init.py", line 157, in
class py_object(_SimpleCData):
AttributeError: class must define a 'type' attribute

Python 3.12.3 (main, Sep 11 2024, 14:17:37) [GCC 13.2.0] on linux

thx

@corpnewt
Copy link
Owner

Hmm - that looks to be an issue importing the built-in module ctypes which comes with the standard lib. I wonder if there's some issue with your python install? You could try opening a terminal, then typing python3 to start the python interpreter, then type import ctypes and see if it reports the same error. If so - then it's not an issue with ProperTree, but likely with your python install or local env.

Alternatively, if others have the same issue, I can wrap the ctypes import in a try/except to catch errors - but since it's a built-in module, that shouldn't be needed.

-CorpNewt

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