Error while running dx_provision_vdb.py

  • 0
  • 1
  • Problem
  • Updated 1 year ago
  • Solved

Hi,
I am getting following error while running dx_provision_db.py against Sybase ASE:

[root@PD911SOURCE01 delphixpy-examples-master]# /root/python/Python-2.7.11/python ./dx_provision_vdb.py --engine PD911ENGINE02 --source_grp Oracle --source "testdb" --db vase --target ASE_S --target_grp Sybase --environment SourceDB1 --type ase --envinst "SourceDB1" --config "/root/delphixpy-examples-master/dxtools.conf"
INFO: Welcome to dx_provision_vdb.py version v.0.2.301
INFO: Executing against Delphix Engine: PD911ENGINE02

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/root/python/Python-2.7.11/Lib/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/root/python/Python-2.7.11/Lib/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "./dx_provision_vdb.py", line 848, in main_workflow
    create_ase_vdb(engine, server, jobs, group_obj,
NameError: global name 'server' is not defined

Please advice me to solve this issue.


Thanks,
Takayuki

Photo of taka

taka

  • 70 Points

Posted 1 year ago

  • 0
  • 1
Photo of fMarcin Przepiorowski

fMarcin Przepiorowski, Employee

  • 770 Points 500 badge 2x thumb
Official Response
Hello,

Did  you installed a delphixpy module in your Python installation using pip ?
If you please run this command

pip install delphixpy

regards,
Marcin