can't import delphixpy.delphix_server

  • 0
  • 1
  • Problem
  • Updated 2 years ago
  • Solved
Hey,
I'm using the delphixpy package but when I'm trying to import the delphix_server I got ImportError: No module named delphix_server. Is this module was removed from delphixpy?

Thanks
Photo of Luiza Nacshon

Luiza Nacshon

  • 184 Points 100 badge 2x thumb
  • sad

Posted 3 years ago

  • 0
  • 1
Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,884 Points 10k badge 2x thumb
Official Response
Luiza, a while ago we changed from delphix_server to DelphixEngine. Take a look at my Github for examples. https://github.com/CloudSurgeon/delphixpy-examples
Photo of Luiza Nacshon

Luiza Nacshon

  • 184 Points 100 badge 2x thumb
Thanks!

Hi Adam,

I am getting the same error. is this environment setup issue?


python list_all_databases.py
Traceback (most recent call last):
  File "list_all_databases.py", line 2, in <module>
    from delphixpy.v1_6_0.delphix_engine import DelphixEngine
ImportError: No module named delphixpy.v1_6_0.delphix_engine
bash-4.1$


I see module are there:

/opt/sybase/dba/delphixpy-1.8.0.0/build/lib/delphixpy/v1_6_0
bash-4.1$ ls -ltr
total 48
-rw-r--r--  1 sybase sybasedv  1996 Sep 27  2016 response_validator.py
-rw-r--r--  1 sybase sybasedv  2061 Sep 27  2016 job_context.py
-rw-r--r--  1 sybase sybasedv   194 Sep 27  2016 __init__.py
-rw-r--r--  1 sybase sybasedv  5897 Sep 27  2016 http_client.py
-rw-r--r--  1 sybase sybasedv  1592 Sep 27  2016 factory.py
-rw-r--r--  1 sybase sybasedv  1870 Sep 27  2016 exceptions.py
-rw-r--r--  1 sybase sybasedv 11038 Sep 27  2016 delphix_engine.py
-rw-r--r--  1 sybase sybasedv  2103 Sep 27  2016 common.py
drwxr-xr-x 38 sybase sybasedv  4096 Feb  7 11:06 web
bash-4.1$ pwd
/opt/sybase/dba/delphixpy-1.8.0.0/build/lib/delphixpy/v1_6_0
bash-4.1$