cms-gem-daq-project / xhal

XHAL interface library
0 stars 10 forks source link

Bug Report: NameError obtained in update_lmdb #78

Closed bdorney closed 6 years ago

bdorney commented 6 years ago

Brief summary of issue

Attempting to update the LMDB fails.

Types of issue

Expected Behavior

Should not throw a name error.

Current Behavior

Throws a name error:

CTP7 > connect eagle64
eagle64 > help update_lmdb
Updates LMDB address table at the CTP7. USAGE: update_lmdb <absolute path name to the AMC xml address table at the CTP7>
eagle64 > update_lmdb /mnt/persistent/gemdaq/xml/gem_amc_top.xml
Traceback (most recent call last):
  File "/opt/xhal/bin//gem_reg.py", line 31, in <module>
    prompt.cmdloop_with_keyboard_interrupt()
  File "/usr/lib/python2.7/site-packages/reg_utils/reg_interface/common/ri_prompt.py", line 42, in cmdloop_with_keyboard_interrupt
    self.cmdloop()
  File "/usr/lib64/python2.7/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib64/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
  File "/usr/lib/python2.7/site-packages/xhal/reg_interface_gem/core/ri_prompt_extended.py", line 260, in do_update_lmdb
    update_atdb(args)
NameError: global name 'update_atdb' is not defined

Steps to Reproduce (for bugs)

  1. export LD_LIBRARY_PATH=/opt/xdaq/lib:$LD_LIBRARY_PATH
  2. export LD_LIBRARY_PATH=/opt/wiscrpcsvc/lib:$LD_LIBRARY_PATH
  3. export LD_LIBRARY_PATH=/opt/rwreg/lib:$LD_LIBRARY_PATH
  4. export LD_LIBRARY_PATH=/opt/xhal/lib:$LD_LIBRARY_PATH
  5. export PATH=/opt/xhal/bin/:$PATH
  6. export PATH=/opt/reg_utils/bin:$PATH
  7. gem_reg.py
  8. connect eagle64
  9. update_lmdb /mnt/persistent/gemdaq/xml/gem_amc_top.xml

Possible Solution (for bugs)

Perhaps I am missing some setup command for LD_LIBRARY_PATH?

Context (for feature requests)

Unable to update lmdb or debug rpc connection issues.

Your Environment

% yum info xhal
Loaded plugins: changelog, fastestmirror, kernel-module, langpacks, protectbase, tsflags, versionlock
Loading mirror speeds from cached hostfile
epel                                                                                                                                                                                                                  12608/12608
791 packages excluded due to repository protections
Installed Packages
Name        : xhal
Arch        : x86_64
Version     : 1.0.0
Release     : centos7
Size        : 1.6 M
Repo        : installed
Summary     : None
URL         : None
License     : __license_
Description : None
bdorney commented 6 years ago

I think an import from

python/reg_interface_gem/core/reg_extra_ops.py

Will resolve this bug.