Coder Social home page Coder Social logo

chucky-ng's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chucky-ng's Issues

ValueError: zero-size array to reduction operation minimum which has no identity

Also running on the pidgin-2.10.0 codebase
when downsize the neighbors to 10

python  chucky.py -n 10 -i callee  atoi
python chucky.py -n 10 -i callee atoi
Job (1/140): jabber_ibb_session_create_from_xmlnode (1359885) - jabber_ibb_session_create_from_xmlnode atoi [Callee]
 0.14962    jabber_ibb_session_create_from_xmlnode         1359885  $RET
Job (2/140): gntwm_init (69588) - gntwm_init atoi [Callee]
 0.21480    gntwm_init                                       69588  $ARG
Job (3/140): msn_parse_addressbook_contacts (1080546) - msn_parse_addressbook_contacts atoi [Callee]
...
Job (21/140): google_session_handle_candidates (1371190) - google_session_handle_candidates atoi [Callee]
 0.12511    google_session_handle_candidates               1371190  $RET
Job (22/140): im_mime_convert (1403094) - im_mime_convert atoi [Callee]
 0.14681    im_mime_convert                                1403094  NULL
Job (23/140): ipg_cmd (1014135) - ipg_cmd atoi [Callee]
Traceback (most recent call last):
  File "../python/anomaly_score.py", line 60, in <module>
    tool.run()
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/shelltool/PipeTool.py", line 37, in run
    self._processStream()
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/shelltool/PipeTool.py", line 49, in _processStream
    self.streamStart()
  File "../python/anomaly_score.py", line 33, in streamStart
    self.emb = self._loadEmbedding(self.args.dirname)
  File "../python/anomaly_score.py", line 26, in _loadEmbedding
    return self.loader.load(dirname)
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/mlutils/EmbeddingLoader.py", line 20, in load
    self.emb.x, self.emb.y = load_svmlight_file(dirname + EMBEDDING_FILENAME)
  File "/usr/local/lib/python2.7/dist-packages/sklearn/datasets/svmlight_format.py", line 113, in load_svmlight_file
    zero_based, query_id))
  File "/usr/local/lib/python2.7/dist-packages/sklearn/datasets/svmlight_format.py", line 237, in load_svmlight_files
    or zero_based == "auto" and all(np.min(tmp[1]) > 0 for tmp in r)):
  File "/usr/local/lib/python2.7/dist-packages/sklearn/datasets/svmlight_format.py", line 237, in <genexpr>
    or zero_based == "auto" and all(np.min(tmp[1]) > 0 for tmp in r)):
  File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 2214, in amin
    out=out, keepdims=keepdims)
  File "/usr/local/lib/python2.7/dist-packages/numpy/core/_methods.py", line 21, in _amin
    out=out, keepdims=keepdims)
ValueError: zero-size array to reduction operation minimum which has no identity
[ERROR] Command 'echo 1014135 |python ../python/anomaly_score.py -d .chucky/tmpcOX8Bs/exp' returned non-zero exit status 1
[ERROR] Do not clean up.
Job (24/140): iro_cmd (1094745) - iro_cmd atoi [Callee]
Traceback (most recent call last):
  File "../python/anomaly_score.py", line 60, in <module>
    tool.run()
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/shelltool/PipeTool.py", line 37, in run
    self._processStream()
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/shelltool/PipeTool.py", line 49, in _processStream
    self.streamStart()
  File "../python/anomaly_score.py", line 33, in streamStart
    self.emb = self._loadEmbedding(self.args.dirname)
  File "../python/anomaly_score.py", line 26, in _loadEmbedding
    return self.loader.load(dirname)
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/mlutils/EmbeddingLoader.py", line 20, in load
    self.emb.x, self.emb.y = load_svmlight_file(dirname + EMBEDDING_FILENAME)
  File "/usr/local/lib/python2.7/dist-packages/sklearn/datasets/svmlight_format.py", line 113, in load_svmlight_file
    zero_based, query_id))
  File "/usr/local/lib/python2.7/dist-packages/sklearn/datasets/svmlight_format.py", line 237, in load_svmlight_files
    or zero_based == "auto" and all(np.min(tmp[1]) > 0 for tmp in r)):
  File "/usr/local/lib/python2.7/dist-packages/sklearn/datasets/svmlight_format.py", line 237, in <genexpr>
    or zero_based == "auto" and all(np.min(tmp[1]) > 0 for tmp in r)):
  File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 2214, in amin
    out=out, keepdims=keepdims)
  File "/usr/local/lib/python2.7/dist-packages/numpy/core/_methods.py", line 21, in _amin
    out=out, keepdims=keepdims)
ValueError: zero-size array to reduction operation minimum which has no identity
[ERROR] Command 'echo 1094745 |python ../python/anomaly_score.py -d .chucky/tmphNLAZb/exp' returned non-zero exit status 1
[ERROR] Do not clean up.
Job (25/140): parse_priority (1358843) - parse_priority atoi [Callee]
 0.09366    parse_priority                                 1358843  NULL
Job (26/140): gg_watch_fd (1588677) - gg_watch_fd atoi [Callee]
 0.18309    gg_watch_fd                                    1588677  $RET
...

AttributeError: 'NoneType' object has no attribute 'rTOC'

hi

when trying to run chucky as per the instructions i've encountered the following error:

[3/920]:JobSet(2/36)Job (1/27): ....
Traceback (most recent call last):
File "../chucky/chucky.py", line 247, in
Chucky().execute()
File "../chucky/chucky.py", line 208, in execute
flag=self.analyzeJobSet(jobset,description,jobcount)
File "../chucky/chucky.py", line 235, in analyzeJobSet
self.engine.analyze(job)
File "/chucky/chucky_engine.py", line 45, in analyze
nearestNeighbors,s0,s1,s2,s3, = self._getKNearestNeighbors()
File "/chucky/chucky_engine.py", line 90, in _getKNearestNeighbors
return self.knn.getNearestNeighbors(self.job.function, symbolUsers)
File "/chucky/nearestNeighbor/NearestNeighborSelector.py", line 54, in getNearestNeighbors
ids,m0,m1,m2,m3 = knn.getSimilarContextNeighborsFor(str(nodeId))
File "/chucky/CallerKNN.py", line 98, in getSimilarContextNeighborsFor
validNeighbors = [self.emb.rTOC[str(x)] for x in validNeighborIds]
AttributeError: 'NoneType' object has no attribute 'rTOC'

Some error when running run.sh

Hi,Dear a0x77n
When I copied and run the run.sh in chucky_old,I got the following error.
Any suggestion to fix it?
Is there something wrong with my configuration?

Target source/sink is           memcpy
Target function is              35922
Maximum number of neighbors is  30
Identification of sinkes and sources ...
Warning: input line does not contain key
Warning: input line does not contain key
Warning: input line does not contain key
Warning: No config file given. Using defaults (see -D) (sally_parse_options)
Neighborhood discovery ...
Traceback (most recent call last):
  File "/usr/local/bin/knn.py", line 5, in <module>
    pkg_resources.run_script('joerntools==0.1', 'knn.py')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/EGG-INFO/scripts/knn.py", line 85, in <module>
    tool.run()
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/shelltool/PipeTool.py", line 37, in run
    self._processStream()
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/shelltool/PipeTool.py", line 52, in _processStream
    self.processLine(line.rstrip())
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/EGG-INFO/scripts/knn.py", line 51, in processLine
    self.calculateDistances()
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/EGG-INFO/scripts/knn.py", line 65, in calculateDistances
    self.emb.D = self._calculateDistanceMatrix()
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/EGG-INFO/scripts/knn.py", line 80, in _calculateDistanceMatrix
    return pairwise_distances(self.emb.x, metric='cosine')
  File "/usr/local/lib/python2.7/dist-packages/sklearn/metrics/pairwise.py", line 680, in pairwise_distances
    raise TypeError("scipy distance metrics do not"
TypeError: scipy distance metrics do not support sparse matrices.
Lightweight tainting ...
Embedding of functions ...
sed: can't read functions/data/*: No such file or directory
sed: can't read functions/data/*: No such file or directory
sed: can't read functions/data/*: No such file or directory
sed: can't read functions/data/*: No such file or directory
sed: can't read functions/data/*: No such file or directory
sed: can't read functions/data/*: No such file or directory
sed: can't read functions/data/*: No such file or directory
sed: can't read functions/data/*: No such file or directory
chucky/function-embedding.sh: line 58: ((: *: syntax error: operand expected (error token is "*")
sed: -e expression #1, char 1: unknown command: `*'
Traceback (most recent call last):
  File "/usr/local/bin/lookup.py", line 5, in <module>
    pkg_resources.run_script('joerntools==0.1', 'lookup.py')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/EGG-INFO/scripts/lookup.py", line 12, in <module>
    tool.run()
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/shelltool/PipeTool.py", line 37, in run
    self._processStream()
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/shelltool/PipeTool.py", line 52, in _processStream
    self.processLine(line.rstrip())
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/shelltool/TraversalTool.py", line 19, in processLine
    y = self.j.runGremlinQuery(query)
  File "/usr/local/lib/python2.7/dist-packages/joern-0.1-py2.7.egg/joern/all.py", line 42, in runGremlinQuery
    return self.gremlin.execute_script(finalQuery)
  File "/usr/local/lib/python2.7/dist-packages/py2neo_gremlin-0.1-py2.7.egg/py2neo_gremlin/gremlin.py", line 22, in execute_script
    rs = self._resources["execute_script"]._post({"script": script})
  File "/usr/local/lib/python2.7/dist-packages/py2neo-1.6.3-py2.7-linux-i686.egg/py2neo/neo4j.py", line 370, in _post
    raise ClientError(e)
py2neo.exceptions.ClientError: javax.script.ScriptException: java.lang.RuntimeException: org.apache.lucene.queryParser.ParseException: Cannot parse 'functionId: AND code:memcpy AND type:Symbol': Encountered " <AND> "AND "" at line 1, column 12.
Was expecting one of:
    <BAREOPER> ...
    "(" ...
    "*" ...
    <QUOTED> ...
    <TERM> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    "[" ...
    "{" ...
    <NUMBER> ...

sort: open failed: functions/data/*: No such file or directory
Warning: No config file given. Using defaults (see -D) (sally_parse_options)
Anomaly detection ...
Traceback (most recent call last):
  File "python/anomaly-score.py", line 55, in <module>
    tool.run()
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/shelltool/PipeTool.py", line 37, in run
    self._processStream()
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/shelltool/PipeTool.py", line 49, in _processStream
    self.streamStart()
  File "python/anomaly-score.py", line 33, in streamStart
    self.emb = self._loadEmbedding(self.args.dirname)
  File "python/anomaly-score.py", line 26, in _loadEmbedding
    return self.loader.load(dirname)
  File "/usr/local/lib/python2.7/dist-packages/joerntools-0.1-py2.7.egg/joerntools/mlutils/EmbeddingLoader.py", line 18, in load
    self.emb.x, self.emb.y = load_svmlight_file(dirname + EMBEDDING_FILENAME)
  File "/usr/local/lib/python2.7/dist-packages/sklearn/datasets/svmlight_format.py", line 112, in load_svmlight_file
    zero_based, query_id))
  File "/usr/local/lib/python2.7/dist-packages/sklearn/datasets/svmlight_format.py", line 210, in load_svmlight_files
    or zero_based == "auto" and all(np.min(tmp[1]) > 0 for tmp in r)):
  File "/usr/local/lib/python2.7/dist-packages/sklearn/datasets/svmlight_format.py", line 210, in <genexpr>
    or zero_based == "auto" and all(np.min(tmp[1]) > 0 for tmp in r)):
  File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 1895, in amin
    return amin(axis, out)
ValueError: zero-size array to minimum.reduce without identity

My chucky.conf is:

SYMBOL="memcpy"
FUNCTION="35922"
K="30"
NEIGHBORS_FILE="neighbors"
BAG_OF_WORDS_DIR="bagOfWords"
FUNCTIONS_DIR="functions"
TAINT_DIR="taint"

The function of id:35922 is

/* Copy as much of MSG into BUF as possible, without corrupting errno.
   Return 0 if MSG fit in BUFLEN, otherwise return ERANGE.  */
static int
safe_copy (char *buf, size_t buflen, const char *msg)
{
  size_t len = strlen (msg);
  int ret;

  if (len < buflen)
    {
      /* Although POSIX allows memcpy() to corrupt errno, we don't
         know of any implementation where this is a real problem.  */
      memcpy (buf, msg, len + 1);
      ret = 0;
    }
  else
    {
      memcpy (buf, msg, buflen - 1);
      buf[buflen - 1] = '\0';
      ret = ERANGE;
    }
  return ret;
}

Chucky deems that memcpy is type: Symbol,but I find that in my neo4j database parsed by joern-master memcpy is type:Identifer
This is the AST picture
image
Thanks very much for your attention in advance.

[ERROR] Command 'knn.py -k 10 --dirname .chucky/tmpo1r5FG/bag' returned non-zero exit status 1

Also the pidgin-2.10.0 code database
something wrong happened when calling knn.py
using session variable as a target symbol

pyhon chucky.py -n 10 --interactive msn_parse_oim_xml
Job (1/34): msn_parse_oim_xml (1120822) - MsnSession * session [Variable]
Run job ([yes]/no/quit)? 
[ERROR] Command 'knn.py -k 10 --dirname .chucky/tmpo1r5FG/bag' returned non-zero exit status 1
[ERROR] Do not clean up.
Job (2/34): msn_parse_oim_xml (1120822) - xmlnode * rt_node [Variable]
Run job ([yes]/no/quit)?
...

KeyError

Hi, I try to use chucky to analysis some projects, and I always encountered the following error:

[1/102]:JobSet(1/1)Job (1/102): __getcwd (235611) - malloc[Callee]
Traceback (most recent call last):
  File "chucky-ng/chucky/chucky.py", line 248, in <module>
    Chucky().execute()
  File "chucky-ng/chucky/chucky.py", line 209, in execute
    flag=self.analyzeJobSet(jobset,description,jobcount)
  File "chucky-ng/chucky/chucky.py", line 236, in analyzeJobSet
    self.engine.analyze(job)
  File "/home/cloud/Documents/lbx19/chucky-ng/chucky/chucky_engine.py", line 45, in analyze
    nearestNeighbors,s0,s1,s2,s3, = self._getKNearestNeighbors()
  File "/home/cloud/Documents/lbx19/chucky-ng/chucky/chucky_engine.py", line 90, in _getKNearestNeighbors
    return self.knn.getNearestNeighbors(self.job.function, symbolUsers)
  File "/home/cloud/Documents/lbx19/chucky-ng/chucky/nearestNeighbor/NearestNeighborSelector.py", line 54, in getNearestNeighbors
    ids,m0,m1,m2,m3 = knn.getSimilarContextNeighborsFor(str(nodeId))
  File "/home/cloud/Documents/lbx19/chucky-ng/chucky/CallerKNN.py", line 98, in getSimilarContextNeighborsFor
    validNeighbors = [self.emb.rTOC[str(x)] for x in validNeighborIds]
KeyError: '235611'

Warning: Could not open file

I got this problem when runing the command

python chucky.py -n 25 -i callee atoi

The database I used is generated by pidgin-2.10.0 code

Warning: Could not open file '.chucky/tmpQ2fFRs/bag/data/106' (No such file or directory, load_file)
Warning: Could not open file '.chucky/tmpQ2fFRs/bag/data/27' (No such file or directory, load_file)
Warning: Could not open file '.chucky/tmpQ2fFRs/bag/data/53' (No such file or directory, load_file)
Warning: Could not open file '.chucky/tmpQ2fFRs/bag/data/78' (No such file or directory, load_file)
...
sally: fvec.c:85: fvec_extract_ex: Assertion `x && l >= 0' failed.
[ERROR] Command '['sally', '-q', '-c', 'sally.cfg', '--hash_file', '.chucky/tmpRYrFpP/bag/feats.gz', '--vect_embed=cnt', '.chucky/tmpRYrFpP/bag/data', '.chucky/tmpRYrFpP/bag/embedding.libsvm']' returned non-zero exit status -6
[ERROR] Do not clean up.

I have checked the link file in tmpQ2fFRs/bag/data directory
And fond that this is caused by wrong source file link name
maybe there is something wrong when using symlink

Why only one output function

I tried the newest joern-project
Whatever function I chose,I got only one(the query one) function in the list
the result are as follows:

Job (4/13): msn_command_from_string (1020974) - char * param_start [Variable]
Run job ([yes]/no/quit)? n
Job (5/13): msn_command_from_string (1020974) - MsnCommand * cmd [Variable]
Run job ([yes]/no/quit)? n
Job (6/13): msn_command_from_string (1020974) - strchr [Callee]
Run job ([yes]/no/quit)? y
  1  0.21009    msn_command_from_string         1020974     $RET
Job (7/13): msn_command_from_string (1020974) - g_strsplit_set [Callee]
Run job ([yes]/no/quit)? quit

I checked the problem and find that it was caused by the only parameter function_id passed from chucky_engine to anomaly_score
in chucky_engine when calling to anomaly_score
there are only one function.node_id passed

 def _anomaly_rating(self):
        command = "echo %d |" % (self.job.function.node_id)

The exception when running the pidgin example

I got this exception when running the pidgin example,
How can I solve it,
The command:

python chucky.py --interactive -n 3 msn_parse_oim_xml

The exception:

#> queryNodeIndex('type:Symbol AND functionId:"931516" AND code:"unread"').transform{ [ it.id, it ] }
#> g.v("2025766").hasArguments().transform{ [ it.id, it ] }
Traceback (most recent call last):
  File "chucky.py", line 125, in <module>
    Chucky().execute()
  File "chucky.py", line 122, in execute
    engine.analyze(config)
  File "/home/yangke/Program/Fabian-Yamaguchi/JoernProjects/joern-projects-master/chucky/chucky_engine.py", line 150, in analyze
    conditions = self._relevant_conditions(symbol)
  File "/home/yangke/Program/Fabian-Yamaguchi/JoernProjects/joern-projects-master/chucky/chucky_engine.py", line 39, in _relevant_conditions
    taintset = SymbolTainter().taint(symbol)
  File "/home/yangke/Program/Fabian-Yamaguchi/JoernProjects/joern-projects-master/chucky/symbol_tainter.py", line 66, in taint
    symbols = self._taint_up(set(), set([start_symbol]))
  File "/home/yangke/Program/Fabian-Yamaguchi/JoernProjects/joern-projects-master/chucky/symbol_tainter.py", line 24, in _taint_up
    x = symbol.arguments()
  File "/home/yangke/Program/Fabian-Yamaguchi/JoernProjects/joern-projects-master/chucky/joern_nodes.py", line 121, in arguments
    result = jutils.raw_lookup(node_selection, traversal)
  File "/home/yangke/Program/Fabian-Yamaguchi/JoernProjects/joern-projects-master/chucky/jutils.py", line 23, in raw_lookup
    return joern.runGremlinQuery(command)
  File "/usr/local/lib/python2.7/dist-packages/joern-0.1-py2.7.egg/joern/all.py", line 44, in runGremlinQuery
    return self.gremlin.execute_script(finalQuery)
  File "/usr/local/lib/python2.7/dist-packages/py2neo_gremlin-0.1-py2.7.egg/py2neo_gremlin/gremlin.py", line 22, in execute_script
    rs = self._resources["execute_script"]._post({"script": script})
  File "/usr/local/lib/python2.7/dist-packages/py2neo-1.6.3-py2.7-linux-i686.egg/py2neo/neo4j.py", line 370, in _post
    raise ClientError(e)
py2neo.exceptions.ClientError: javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: groovy.lang.MissingMethodException.hasArguments() is applicable for argument types: () values: []
Possible solutions: getArguments(), getArguments(java.lang.Object, java.lang.Object)

I checked the groovy file int joern-tools ,the only matched query function is the getArguments in lookup.groovy:86 .So I changed the query in joern_nodes
from

./joern_nodes.py:120:        traversal = 'hasArguments()'

to

./joern_nodes.py:120:        traversal = 'getArguments()'

But it throws another exception

Configuration: msn_parse_oim_xml (931516) - data (2025765)
Run configuration [(yes)/no/quit]? n
Configuration: msn_parse_oim_xml (931516) - unread (2025766)
Run configuration [(yes)/no/quit]? y
...
#> queryNodeIndex('type:Symbol AND functionId:"931516" AND code:"unread"').transform{ [ it.id, it ] }
#> g.v("2025766").getArguments().transform{ [ it.id, it ] }
Traceback (most recent call last):
  File "chucky.py", line 125, in <module>
    Chucky().execute()
  File "chucky.py", line 122, in execute
    engine.analyze(config)
  File "/home/yangke/Program/Fabian-Yamaguchi/JoernProjects/joern-projects-master/chucky/chucky_engine.py", line 150, in analyze
    conditions = self._relevant_conditions(symbol)
  File "/home/yangke/Program/Fabian-Yamaguchi/JoernProjects/joern-projects-master/chucky/chucky_engine.py", line 39, in _relevant_conditions
    taintset = SymbolTainter().taint(symbol)
  File "/home/yangke/Program/Fabian-Yamaguchi/JoernProjects/joern-projects-master/chucky/symbol_tainter.py", line 66, in taint
    symbols = self._taint_up(set(), set([start_symbol]))
  File "/home/yangke/Program/Fabian-Yamaguchi/JoernProjects/joern-projects-master/chucky/symbol_tainter.py", line 24, in _taint_up
    x = symbol.arguments()
  File "/home/yangke/Program/Fabian-Yamaguchi/JoernProjects/joern-projects-master/chucky/joern_nodes.py", line 121, in arguments
    result = jutils.raw_lookup(node_selection, traversal)
  File "/home/yangke/Program/Fabian-Yamaguchi/JoernProjects/joern-projects-master/chucky/jutils.py", line 23, in raw_lookup
    return joern.runGremlinQuery(command)
  File "/usr/local/lib/python2.7/dist-packages/joern-0.1-py2.7.egg/joern/all.py", line 44, in runGremlinQuery
    return self.gremlin.execute_script(finalQuery)
  File "/usr/local/lib/python2.7/dist-packages/py2neo_gremlin-0.1-py2.7.egg/py2neo_gremlin/gremlin.py", line 22, in execute_script
    rs = self._resources["execute_script"]._post({"script": script})
  File "/usr/local/lib/python2.7/dist-packages/py2neo-1.6.3-py2.7-linux-i686.egg/py2neo/neo4j.py", line 370, in _post
    raise ClientError(e)
py2neo.exceptions.ClientError: javax.script.ScriptException: org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: Script14$_run_closure40.call() is applicable for argument types: () values: []
Possible solutions: doCall(java.lang.Object, java.lang.Object), doCall(java.lang.Object, java.lang.Object, java.lang.Object), any(), any(), each(groovy.lang.Closure), any(groovy.lang.Closure)

I print the gremlin query so you can see the problem is caused by this query
"g.v("2025766").getArguments().transform{ [ it.id, it ] }".
The exception is caused by the empty arguments given to getArguments step
Waiting for your suggestion.Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.