Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basler error when launching server Lima/applications/tango/LimaCCDs.py #19

Open
PhilLAL opened this issue Mar 2, 2015 · 3 comments
Open

Comments

@PhilLAL
Copy link

PhilLAL commented Mar 2, 2015

I get this output when I launch LimaCCDs :

python $PYTHONPATH/Ressources/Lima/applications/tango/LimaCCDs.py 1
Traceback (most recent call last):
File "/home/tangosrv/SW_tango/Ressources/Lima/applications/tango/LimaCCDs.py", line 60, in
LimaCameraType = setup_lima_env(sys.argv)
File "/home/tangosrv/SW_tango/Ressources/Lima/applications/tango/EnvHelper.py", line 141, in setup_lima_env
lima_camera_type = get_lima_camera_type(server_name)
File "/home/tangosrv/SW_tango/Ressources/Lima/applications/tango/EnvHelper.py", line 125, in get_lima_camera_type
lima_dev_name = get_lima_device_name(server=server, cache=cache)
File "/home/tangosrv/SW_tango/Ressources/Lima/applications/tango/EnvHelper.py", line 103, in get_lima_device_name
return get_device_class_map(server=server, cache=cache)['LimaCCDs'][0]
KeyError: 'LimaCCDs'

When getting back through log, the last commit which allow to launch this server and run correctly Basler CCD is ce225ec from 2014, Oct 20th.

@PhilLAL
Copy link
Author

PhilLAL commented Mar 5, 2015

In detail, I ran jive to register a LimaCCDs server and then launch in command line the instance LimaCCDs as described.

@esrf-bliss
Copy link
Collaborator

please tell me if you created the property or not?
In the documentation you can find this is a mandatory property, the
LimaCCDs server cannot know which camera plugin you want to instantiate.
Even using the jive Wizard tool you will get asked for this property.

Cheers.

On 05/03/2015 10:22, PhilLAL wrote:

In detail, I ran jive to register a LimaCCDs server and then launch in
command line the instance LimaCCDs as described.


Reply to this email directly or view it on GitHub
#19 (comment).

/===============================================================
| Laurent Claustre | eMail: [email protected] |
| BeamLine Control Unit / | Tel : +33 (0)476 88 29 12 |
| Software Group / | Fax : +33 (0)476 88 27 43 |
| | Web : www.esrf.eu |
| Instrumentation Services | |
| and Development Division | Office 07-1-05 |
| ------------------------------------------------------------- |
| ESRF - The European Synchrotron |
| Physical address: 71 avenue des Martyrs Grenoble - France |
| Postal address: CS40220 38043 Grenoble Cedex 9 - France |
===============================================================/

@PhilLAL
Copy link
Author

PhilLAL commented Mar 5, 2015

It seems to me I can not reach this step where you can set this parameter.
When I follow step by steps instruction from LImA documentation 1.3.1 at page 12 at chapter 1.3.2 (described at url http://lima.blissgarden.org/install_tango_device_server.html#example-of-plugin-server-setup-basler-detector) there is the behavior :

  • run Jive and select “Tools->Server Wizard” menu and enter server and instance names
  • start the Lima device server. Open a terminal and execute the command “server_name instance_name”. In my environment, this command is "$PYTHONPATH/Ressources/Lima/applications/tango/LimaCCDs.py 1".

In my first message, I executed it prefixed by python with "python $PYTHONPATH/Ressources/Lima/applications/tango/LimaCCDs.py 1" as it worked with old commit. The behavior is a bit different but it does not work either.

Without python prefix (with "$PYTHONPATH/Ressources/Lima/applications/tango/LimaCCDs.py 1" as described in documentation), the output is the following :

when I then click on "next" button, a window opened with error message opened :

Tango error
Desc -> dserver/LimaCCDs/1 Not Exported !
Reason -> TangoApi_DEVICE_NOT_EXPORTED
Origin -> Connection(dserver/LimaCCDs/1)
Desc -> Cannot import dserver/LimaCCDs/1
Reason -> TangoApi_CANNOT_IMPORT_DEVICE
Origin -> Connection.build_connection(dserver/LimaCCDs/1)

the terminal output is :

import: unable to grab mouse ': Ressource temporairement non disponible @ xwindow.c/XSelectWindow/8993. /home/tangosrv/SW_tango/Ressources/Lima/applications/tango/LimaCCDs.py: line 57: LimaCameraType : commande introuvable /home/tangosrv/SW_tango/Ressources/Lima/applications/tango/LimaCCDs.py: line 60: Erreur de syntaxe près du symbole inattendu « ( » /home/tangosrv/SW_tango/Ressources/Lima/applications/tango/LimaCCDs.py: line 60: LimaCameraType = setup_lima_env(sys.argv)'

And it failed. When I clicked "OK" (which is the only option), the following jive windows appears :

Class Selection
Sorry, but the server has no class...
The Wizard cannot conitnue.

With the typo. The only options appearing are "< Back" and "Cancel".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant