HFriberg / cblib-base

The CBLIB base of scripts and tools
http://cblib.zib.de
Other
8 stars 3 forks source link

No module named 'psdvarcones' #3

Open VHarisop opened 2 years ago

VHarisop commented 2 years ago

I'm trying to use the filter script to filter out some instances, but I run across the following error:

> python3 scripts/filter.py "||psdcones||"
PACK;INSTANCESNo module named 'psdvarcones'

Initially I thought the problem was my path relative to the scripts/filters subfolder. But no matter where I invoke the script from, I'm getting a similar error message. I believe this is the offending line.

The error persists if I change the filter. For example:

❯ python3 filter.py "||cones|so||"
PACK;INSTANCESNo module named 'varcones'

❯ python3 filter.py "||int||"
PACK;INSTANCESNo module named '__common__'

I'm using Python 3.9 on MacOS.

Creaptis commented 8 months ago

Hi,

it seems that the issue comes from the "import psdvarcones", "import varcones" etc.... in the /filters/ folder. try replacing them with " from . import psdvarcones" "from . import varcones" etc....

It should work. There might be a simpler way

HFriberg commented 7 months ago

Thanks. If you send me a pull request I will merge.