Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

backward_slice #43

Closed
hanchaoqiang opened this issue Apr 13, 2016 · 2 comments
Closed

backward_slice #43

hanchaoqiang opened this issue Apr 13, 2016 · 2 comments

Comments

@hanchaoqiang
Copy link

Traceback (most recent call last):
File "backward_slice.py", line 10, in
from ..annocfg import AnnotatedCFG
ValueError: Attempted relative import in non-packag
but my files has the annocfg.py,why?

@rhelmot
Copy link
Member

rhelmot commented Apr 13, 2016

What did your run to get this? It looks like you're trying to run backward_slice.py from your shell. You need to import the entire angr module in the python REPL or a python script in order to use any angr component.

@ltfish
Copy link
Member

ltfish commented Apr 13, 2016

Is your own script running inside angr/analyses directory and directly importing BackwardSlice from backward_slice.py? Please make sure you are using angr as a package.

Also, please open angr-related issues under angr repo, not angr-doc repo. I'm closing this issue.

@ltfish ltfish closed this as completed Apr 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants