OpenCue icon indicating copy to clipboard operation
OpenCue copied to clipboard

unable to run cuegui and cuesubmit and cueadmin

Open mrkataei opened this issue 4 years ago • 5 comments

hi when run this commands in venv CUEBOT_HOSTS=$CUEBOT_HOSTNAME_OR_IP cuegui CUEBOT_HOSTS=$CUEBOT_HOSTNAME_OR_IP cuesubmit show this ModuleNotFoundError ModuleNotFoundError: No module named 'opencue' and sometime show AttributeError: module 'opencue' has no attribute 'api' and when run this command python ./cueadmin/ -server localhost -ls show this /root/venv/bin/python: can't find 'main' module in './cueadmin/'

mrkataei avatar Jan 31 '21 08:01 mrkataei

hi @mrkataei ModuleNotFoundError would indicate that the pycue package was not successfully installed into your virtual enviroment.

Can you have a look inside of the venv for venv/lib/python2.7/site-packages/opencue (the python version will depend on your system) and see if exists.

larsbijl avatar Jan 31 '21 11:01 larsbijl

there is not any opencue in this directory but I was successfully installed pycue into venv there is some error too like AttributeError: module 'opencue' has no attribute 'api' and for cueadmin /root/venv/bin/python: can't find 'main' module in './cueadmin/'

mrkataei avatar Jan 31 '21 12:01 mrkataei

the pycue package holds the opencue module.

the api error might indicate there is a opencue.py file somewhere locally that it it picking up.

which version of python are you running?

larsbijl avatar Jan 31 '21 12:01 larsbijl

3.6

mrkataei avatar Jan 31 '21 13:01 mrkataei

Hi @mrkataei I think the issue is with the command you're running, python ./cueadmin/ will try to execute the toplevel cueadmin dir however the module is actually one level deeper ./cueadmin/cueadmin.

I think the actual command you want to run is:

cueadmin -server localhost -ls

IdrisMiles avatar Feb 01 '21 21:02 IdrisMiles