CybOXProject / python-cybox

A Python library for parsing, manipulating, and generating CybOX content.

Home Page:http://cybox.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SocketAddressObject host/port attributes TypeError

astrodeer opened this issue · comments

Failing when setting the SocketAddressObject port and hostname, no issues with ip_address.
Python version 2.7.5

socket.ip_address ="12.12.12.12"
socket.port = "8080"
socket.hostname = "somehost.com"

Traceback (most recent call last):
File "port.py", line 20, in
socket.port = "8080"
File "/usr/lib/python2.7/site-packages/cybox/init.py", line 659, in set
processed = self._handle_value(value)
File "/usr/lib/python2.7/site-packages/cybox/init.py", line 634, in handle_value
return self.type
(value)
TypeError: init() takes exactly 1 argument (2 given)