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

SyntaxWarning: 'int' object is not callable in SystemFlags.py #9

Closed
elboulangero opened this issue Mar 1, 2023 · 2 comments
Closed

Comments

@elboulangero
Copy link

elboulangero commented Mar 1, 2023

When I install the package in Kali Linux, there are a lot of errors:

Setting up python3-dsinternals (1.2.4+git20220411-0kali1) ...
/usr/lib/python3/dist-packages/dsinternals/datastore/SystemFlags.py:21: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
  1 (0x00000001)
/usr/lib/python3/dist-packages/dsinternals/datastore/SystemFlags.py:25: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
  2 (0x00000002)
/usr/lib/python3/dist-packages/dsinternals/datastore/SystemFlags.py:28: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
  4 (0x00000004)
/usr/lib/python3/dist-packages/dsinternals/datastore/SystemFlags.py:31: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
  16 (0x00000010)
/usr/lib/python3/dist-packages/dsinternals/datastore/SystemFlags.py:34: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
  33554432 (0x02000000)
/usr/lib/python3/dist-packages/dsinternals/datastore/SystemFlags.py:37: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
  67108864 (0x04000000)
/usr/lib/python3/dist-packages/dsinternals/datastore/SystemFlags.py:40: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
  134217728 (0x08000000)
/usr/lib/python3/dist-packages/dsinternals/datastore/SystemFlags.py:43: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
  268435456 (0x10000000)
/usr/lib/python3/dist-packages/dsinternals/datastore/SystemFlags.py:46: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
  536870912 (0x20000000)
/usr/lib/python3/dist-packages/dsinternals/datastore/SystemFlags.py:49: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
  1073741824 (0x40000000)
/usr/lib/python3/dist-packages/dsinternals/datastore/SystemFlags.py:52: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
  2147483648 (0x80000000)

At first I thought it was due to a change in Python 3.11. But I tried with Python 3.9, and the syntax is not valid either. Minimal way to reproduce is (ie. I just take the first lines from https://github.com/p0dalirius/pydsinternals/blob/main/dsinternals/datastore/SystemFlags.py):

# python3 -c "
from enum import Enum
class SystemFlags(Enum):
    1 (0x00000001)
"
<string>:4: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "<string>", line 4, in SystemFlags
TypeError: 'int' object is not callable

Is it intended, is the file SystemFlags.py used in a special way, or is it really just wrong syntax?

Thanks!

@p0dalirius
Copy link
Owner

It was bad syntax, I forgot this file, sorry.

Best regards,

@elboulangero
Copy link
Author

Thanks for the quick fix!

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