Skip to content

ERROR: DATA_SERVER_HOST environment variable is not set, cannot continue #41

@benajamin

Description

@benajamin

Describe the problem:
I installed, started Pixelator, then started pyStxm. A window poped up with the following:

An unhandled exception occurred. Please report the problem
using the error reporting dialog or via email to <russ.berg@lightsource.ca>.
A log has been written to "".

Error information:
--------------------------------------------------------------------------------
2025-10-30, 18:41:05
--------------------------------------------------------------------------------
<class 'Exception'>: 
ERROR: DATA_SERVER_HOST environment variable is not set, cannot continue
--------------------------------------------------------------------------------
  File "/home/watts/dev/Pixelator/pyStxm/pyStxm/./cls/applications/pyStxm/runPyStxm.py", line 244, in <module>
    go()
  File "/home/watts/dev/Pixelator/pyStxm/pyStxm/./cls/applications/pyStxm/runPyStxm.py", line 219, in go
    from cls.applications.pyStxm.stxmMain import pySTXMWindow
  File "/home/watts/dev/Pixelator/pyStxm/pyStxm/cls/applications/pyStxm/../../../cls/applications/pyStxm/stxmMain.py", line 24, in <module>
    from cls.applications.pyStxm.main_obj_init import MAIN_OBJ
  File "/home/watts/dev/Pixelator/pyStxm/pyStxm/cls/applications/pyStxm/../../../cls/applications/pyStxm/main_obj_init.py", line 63, in <module>
    MAIN_OBJ = main_object_base(beamline_desc, endstation_name, beamline_cfg_dct=bl_config_dct, main_cfg=appConfig)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/watts/dev/Pixelator/pyStxm/pyStxm/cls/applications/pyStxm/../../../cls/appWidgets/main_object.py", line 143, in __init__
    raise Exception("ERROR: DATA_SERVER_HOST environment variable is not set, cannot continue")
0.0.1

The console had the following output:

(pyStxm) watts@Flask:~/dev/Pixelator/pyStxm/pyStxm$ ./runpyStxm.sh 
/home/watts/dev/Pixelator/pyStxm/miniforge3/envs/pyStxm/lib/python3.11/site-packages/epics/ca.py:28: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  from pkg_resources import resource_filename
Successfully wrote to /home/watts/dev/Pixelator/pyStxm/pyStxm/cls/applications/pyStxm/../../../bcm/backend.py
Screen: HDMI-A-1
Final destination screen size: 3440 x 1440
get_style: Using stylesheets in dark_linux_hires_disp
Loading beam line configuration from [amb_bl10ID1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConfigurationGeneral configuration issuebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions