Hi Hans-Rudolf;
Yes!!  I didn't pay attention and i was really  calling the script fom  ~/galaxy_dist/scripts/cleanup_datasets/.
Now when I call it from  ~/galaxy_dist/ it works very well.
Thanks :)
Amine



2012/6/20 Hans-Rudolf Hotz <hrh@fmi.ch>


On 06/19/2012 07:11 PM, Chebbi Mohamed Amine wrote:
Hi Galaxy team !
I'am trying to remove userless histories from my galaxy database as
mentoned in this link (
by using the command above :
python cleanup_datasets.py universe_wsgi.ini -d 60 -1
However I get an error message like this :

File "cleanup_datasets.py", line 13, in <module>
from galaxy import eggs
ImportError: No module named galaxy


looks like you are calling the script from:

 ~/galaxy_dist/scripts/cleanup_datasets/


try calling it with:

python scripts/cleanup_datasets/cleanup_datasets.py universe_wsgi.ini -d 60 -1

from:  ~/galaxy_dist/



Regards, Hans


Although I set cleanup_job = never in my Galaxy config and check the PBS
script like mentioned in the mailing list discussions as above , i have
always the same problem of galaxy module :

GALAXY_LIB="/path/to/galaxy-dist/lib"
if [ "$GALAXY_LIB" != "None" ]; then
if [ -n "$PYTHONPATH" ]; then
export PYTHONPATH="$GALAXY_LIB:$PYTHONPATH"
else
export PYTHONPATH="$GALAXY_LIB"
fi
fi

Could someone help me please !

Thanks
Amine


___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/