Thanks for the info Ross

But I still get the same error

"ImportError: No module named scripts.db_shell"

After chmod 777 scripts/

When you get "ImportError: No module named galaxy"  for example it's because 
the PYTHONPATH isn't set so I guess there's some variable I need to set for the 
scripts directory???

Thanks anyway


From: Ross []
Sent: Tuesday, 30 April 2013 12:00 PM
To: Burdett, Neil (ICT Centre, Herston - RBWH)
Subject: Re: [galaxy-dev] Command Line Tool for Creating New Users

AFAIK, python will not load a module unless the relevant script file is marked 
as executable by the current user?
Try something like:
chmod ugo+x scripts/
and see if that fixes your problem?

On Tue, Apr 30, 2013 at 11:50 AM, 
<<>> wrote:
    I'm trying to use the tool, however, when I run it I get:


Traceback (most recent call last):
  File "", line 2, in <module>
    from scripts.db_shell import *
ImportError: No module named scripts.db_shell

I've set my PYTHONPATH to be ~/galaxy-dist/lib. What else do I need to do? I'm 
running the script from ~/galaxy-dist/ directory, but I get the same error if I 
copy it into the scripts directory. I've checked and I can see that the<> script exists

If I comment out the line then the next error I get is:

Traceback (most recent call last):
  File "", line 7, in <module>
    from import GalaxyRBACAgent
  File "/home/galaxy/galaxy-dist/lib/galaxy/security/", line 9, in 
    from galaxy.model.orm import *
  File "/home/galaxy/galaxy-dist/lib/galaxy/model/", line 15, in 
    from import RBACAgent, get_permitted_actions
ImportError: cannot import name RBACAgent

Any help much appreciated


Message: 1
Date: Sat, 27 Apr 2013 14:07:49 -0500
From: John Chilton <<>>
To: Adam Brenner <<>>
Cc: "<>" 
Subject: Re: [galaxy-dev] Command Line Tool for Creating New Users
Content-Type: text/plain; charset=ISO-8859-1

I put together a script to do this. It is described in the galaxy-dev thread 
titled: "[galaxy-dev] user creation using API". It doesn't actually use the 
API, it uses the script.

Hope this helps.


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:

To search Galaxy mailing lists use the unified search at:

Reply via email to