I set up a galaxy server.
I can upload and delete data but can not permanently delete data from disk.
in my config/galaxy.ini
allow_user_dataset_purge = True
Then I'd like to run
python scripts/cleanup_datasets/cleanup_datasets.py config/galaxy.ini -d 5 -1 -r
And it shows that
Traceback (most recent call last):
File "scripts/cleanup_datasets/cleanup_datasets.py", line 18, in <module>
import galaxy.config
File "/root/galaxy/lib/galaxy/config.py", line 22, in <module>
from galaxy.util import listify
File "/root/galaxy/lib/galaxy/util/__init__.py", line 31, in <module>
from six.moves import email_mime_text, xrange, zip
ImportError: cannot import name email_mime_text
Any help would be appreciate.
Hello,
How many times did you run the command? Is it possible that it was run without "-r" once, then re-run again with that used?
Try running this again but adding in a "-f" and let us know if that solves the problem.
The error is not familiar to me, so if that doesn't work we can bring in some admins to help troubleshoot.
Reference: https://wiki.galaxyproject.org/Admin/Config/Performance/Purge%20Histories%20and%20Datasets
Thanks, Jen, Galaxy team
Thanks Jen. I tried without "-r" and adding "-f", but neither of them works for me.
And it shows that:
root@master:~/galaxy# python scripts/cleanup_datasets/cleanup_datasets.py config/galaxy.ini -d 5 -1 Traceback (most recent call last): File "scripts/cleanup_datasets/cleanup_datasets.py", line 18, in <module> import galaxy.config File "/root/galaxy/lib/galaxy/config.py", line 22, in <module> from galaxy.util import listify File "/root/galaxy/lib/galaxy/util/__init__.py", line 31, in <module> from six.moves import email_mime_text, xrange, zip ImportError: cannot import name email_mime_text root@master:~/galaxy# python scripts/cleanup_datasets/cleanup_datasets.py config/galaxy.ini -d 5 -1 -f Traceback (most recent call last): File "scripts/cleanup_datasets/cleanup_datasets.py", line 18, in <module> import galaxy.config File "/root/galaxy/lib/galaxy/config.py", line 22, in <module> from galaxy.util import listify File "/root/galaxy/lib/galaxy/util/__init__.py", line 31, in <module> from six.moves import email_mime_text, xrange, zip ImportError: cannot import name email_mime_text
What version of the six module is installed?
Thanks Ryan. What do you mean, the six module?
For example, what does
pip freeze | grep six
say? The error you're seeing is coming from that module.