Skip to content

cannot import name contact #3

Description

@panaceya
from epp import EPP, Contact, Domain, Nameserver
config = {
    'host': 'epp-server.com',
    'port': 700,
    'user': 'user',
    'pass': '*****',
}

epp =  epp(**config)

domain = Domain(epp, 'nextgear.nl')
print domain.token()

ns = epp.Nameserver(epp, ns[0])
print ns.get_ip()

contact = epp.Contact(epp, 'JOO011933-NEXTG')
print contact.info()
Traceback (most recent call last):
  File "epp-TEST.py", line 1, in <module>
    from epp import EPP, Contact, Domain, Nameserver
  File "/usr/local/lib/python2.7/dist-packages/epp/EPP.py", line 8, in <module>
    from commands import contact
ImportError: cannot import name contact

Test script not work, plese fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions