You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run this command:
client.command("create edge my from #12:3903 to #12:3913 set date_s = '2014-08-27 17:21:29'")
Property date_s has DATETIME type.
And get error:
Traceback (most recent call last):
File "create_graph.py", line 93, in
res = client.command("create edge my from #12:3903 to #12:3913 set date_s = '2014-08-27 17:21:29'")
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/orient.py", line 204, in command
.prepare(( QUERY_CMD, ) + args).send().fetch_response()
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/messages/commands.py", line 145, in fetch_response
return self._read_sync()
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/messages/commands.py", line 193, in _read_sync
res.append( self._read_record() )
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/messages/base.py", line 335, in _read_record
_res = ORecordDecoder( __res['content'].rstrip() )
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/serialization.py", line 156, in init
self.__decode()
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/serialization.py", line 189, in __decode
self._stateCase[self._state](char, c_class)
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/serialization.py", line 474, in __state_number
token_value = datetime.fromtimestamp(float(self._buffer))
ValueError: year is out of range
I think, line 474 in serialization.py should be changed from
token_value = datetime.fromtimestamp(float(self._buffer))
to
token_value = datetime.fromtimestamp(float(self._buffer) / 1000)
The text was updated successfully, but these errors were encountered:
I run this command:
client.command("create edge my from #12:3903 to #12:3913 set date_s = '2014-08-27 17:21:29'")
Property date_s has DATETIME type.
And get error:
Traceback (most recent call last):
File "create_graph.py", line 93, in
res = client.command("create edge my from #12:3903 to #12:3913 set date_s = '2014-08-27 17:21:29'")
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/orient.py", line 204, in command
.prepare(( QUERY_CMD, ) + args).send().fetch_response()
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/messages/commands.py", line 145, in fetch_response
return self._read_sync()
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/messages/commands.py", line 193, in _read_sync
res.append( self._read_record() )
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/messages/base.py", line 335, in _read_record
_res = ORecordDecoder( __res['content'].rstrip() )
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/serialization.py", line 156, in init
self.__decode()
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/serialization.py", line 189, in __decode
self._stateCase[self._state](char, c_class)
File "/usr/lib64/python2.7/site-packages/pyorient-1.1.2-py2.7.egg/pyorient/serialization.py", line 474, in __state_number
token_value = datetime.fromtimestamp(float(self._buffer))
ValueError: year is out of range
I think, line 474 in serialization.py should be changed from
token_value = datetime.fromtimestamp(float(self._buffer))
to
token_value = datetime.fromtimestamp(float(self._buffer) / 1000)
The text was updated successfully, but these errors were encountered: