Closed samuelchassot closed 1 year ago
Hi,
A simple way is Just cloning the project, use the scalpel folder only, and importing.
--Scalpel
| -- src
|- scalpel
|- your script here.
your script can be
from scalpel.cfg import CFGBuilder
# some other code
We changed the folder structure because we will follow the new packing guideline.
Hi @Jarvx , Thanks for your quick reply! I just tried this solution but I still get this error:
File ".../Scalpel/src/scalpel/test_cfg.py", line 2, in <module>
from scalpel.cfg import CFGBuilder
ModuleNotFoundError: No module named 'scalpel'
Hi @Jarvx , Thanks for your quick reply! I just tried this solution but I still get this error:
File ".../Scalpel/src/scalpel/test_cfg.py", line 2, in <module> from scalpel.cfg import CFGBuilder ModuleNotFoundError: No module named 'scalpel'
your test_cfg.py should appear under src folder.
Wow, I'm really sorry, I misread the hierarchy you (well) described. Sorry for the dumb question...
No problem!
Hi, I wanted to work on the bug I found and exposed in #98 but I sadly cannot install the package locally using the command
python3 -m pip install -e .
as the Github Actions workflow file is suggesting. I also try to run the CI on a fork of the repo but the same error occured (i.e., the packagescalpel
is not found when importing). I also try to simply install it locally (without the-e
option) but it does not work. It is install under theScalpel
name with version0.0.1
(as stated inpyproject.toml
and thus different fromsetup.py
)Do you have any input on that? How are you testing the tool locally?
Thanks a lot!