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

pyinstaller.spec overwrites version.py #1136

Closed
mr-tz opened this issue Aug 10, 2022 · 0 comments · Fixed by #1140
Closed

pyinstaller.spec overwrites version.py #1136

mr-tz opened this issue Aug 10, 2022 · 0 comments · Fixed by #1140

Comments

@mr-tz
Copy link
Collaborator

mr-tz commented Aug 10, 2022

Overwrites helper functions, see example error on loading invalid rules:

ERROR:capa:invalid rule: rules\anti-analysis\anti-debugging\debugger-detection\check-for-debugger-via-api.yml: invalid rule: unexpected statement: property
Traceback (most recent call last):
  File "main.py", line 1018, in main
  File "main.py", line 618, in get_rules
  File "rules.py", line 805, in from_yaml_file
capa.rules.InvalidRuleWithPath: invalid rule: rules\anti-analysis\anti-debugging\debugger-detection\check-for-debugger-via-api.yml: invalid rule: unexpected statement: property

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 1197, in <module>
  File "main.py", line 1038, in main
AttributeError: module 'capa.version' has no attribute 'get_major_version'
[11516] Failed to execute script 'main' due to unhandled exception!
mr-tz added a commit that referenced this issue Aug 11, 2022
mr-tz added a commit that referenced this issue Aug 11, 2022
mr-tz added a commit that referenced this issue Aug 15, 2022
* doc: update v4 resources

* tmp

* fix: set version #1136

* format: black

* comment version substring replacement
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

Successfully merging a pull request may close this issue.

1 participant