Skip to content

Broken DnsResponse - Not available for import  #11

@jbabbin

Description

@jbabbin

Trying to use passivetotal library in a CRITS instance. However the service keeps reporting that the 'DnsResponse' function isn't available.

'
WARNING 2016-06-15 12:39:38,306 crits.services.core Failed to import service (passivetotal_service): cannot import name DnsResponse
`

`
------------------ Trying to manually import following docs found here

Python 2.7.11 (default, Dec 14 2015, 22:56:59)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

from passivetotal.libs.dns import DnsRequest
from passivetotal.libs.dns import DnsResponse
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name DnsResponse

`

I've tried both with 'pip' and manual installs as well as using the provided 'pt-config' to set my options

------------- Setting by hand

xxx@crits:/opt/git_passivetotal_python# pt-config setup jakxxxx@xxx.com ee7xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Current Configuration:

api_key : ee7xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
api_server : api.passivetotal.org
api_version : v2
http_proxy :
https_proxy :
username : jakxxxx@xxx.com
xxx@crits:/opt/git_passivetotal_python#
xxx@crits:/opt/git_passivetotal_python# pt-config show

Current Configuration:

api_key : ee7xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
api_server : api.passivetotal.org
api_version : v2
http_proxy :
https_proxy :
username : jakxxxx@xxx.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions