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

Error module capa-render #1

Open
suricatalfon opened this issue Nov 10, 2021 · 6 comments
Open

Error module capa-render #1

suricatalfon opened this issue Nov 10, 2021 · 6 comments

Comments

@suricatalfon
Copy link

Hí,

I have everything I need installed. With python 3.6 and 3.9.

3.6:

python3.6 ./mbcscan.py -v
Traceback (most recent call last):
  File "./mbcscan.py", line 13, in <module>
    import capa.main
ModuleNotFoundError: No module named 'capa.main'

3.9:

$ python3.9 ./mbcscan.py -v

Traceback (most recent call last):
  File "/home/alfon/tools/mbcscan/./mbcscan.py", line 21, in <module>
    from capa.render import convert_capabilities_to_result_document
ImportError: cannot import name 'convert_capabilities_to_result_document' from 'capa.render' (/usr/local/lib/python3.9/dist-packages/capa/render/__init__.py)
@accidentalrebel
Copy link
Owner

accidentalrebel commented Nov 12, 2021 via email

@suricatalfon
Copy link
Author

Thanks ;-)

@anisyusof-sc
Copy link

I am experiencing the same error as above. May I know if you manage to check it out? Thanks!

@accidentalrebel
Copy link
Owner

I apologize for not getting back sooner.

I have looked into the problem and have seen that there are a couple of changes on the dependencies. I have done some fixes and would push them once properly implemented and tested.

Thanks!

@anisyusof-sc
Copy link

That is great, thank you. I will be looking forward to the upcoming update.

@accidentalrebel
Copy link
Owner

accidentalrebel commented May 13, 2022

Hello, everyone. So the problem was that one of the dependencies (flare-capa) has made changes to the structure of their code. I had to do a few fixes so it should be fine now.

Take note that I have only tested this code on a Windows machine because that's what I currently have access to now. I'll give it a whirl on Linux soon.

Also, if you are using Python 3.10 and are still encountering problems then download the capa repository (https://github.com/mandiant/capa) and install it using pip.

python -m pip install -e \path\to\capa\

Install the other dependencies too, just in case

python -m pip install mbclib
python -m pip install GitPython

This is only temporary fix until flare-capa releases a new version after 3.2.0 on pip.

Thanks!

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

3 participants