erlang - An error with ets and reading files -


disclaimer: didn't write code, i'm trying make work.

i'm trying code here working. setup ubuntu 14.04 64bit machine erlang installed.

the sequence of actions follows: i'm doing follows:

  1. clone code
  2. cd folder code , erl in terminal
  3. make:all([load]).
  4. polis:create().
  5. polis:start().
  6. benchmarker:start(slidingwindow50).

the errors are:

4> benchmarker:start(slidingwindow50). true dimensions:4, plasticity:none dimensions:4, plasticity:none dimensions:4, plasticity:none dimensions:4, plasticity:none dimensions:4, plasticity:none dimensions:4, plasticity:none dimensions:4, plasticity:none dimensions:4, plasticity:none dimensions:4, plasticity:none dimensions:4, plasticity:none  specie_id:6.858114617542796e-10 morphology:forex_trader  ******** population monitor started parameters:{state,benchmark,test,[], [],undefined,undefined, undefined,[],0,0,0,0,0, undefined,undefined, undefined,undefined, undefined,undefined,0.5, 10,10,mathema,inf,10000, inf,<0.274.0>,false} initial tot evaluations:0  started started started started started started started  5> =error report==== 16-mar-2016::14:11:34 === error in process <0.287.0> exit value: {badarg,[{ets,last,['eurusd15'],[]},{fx,init_state,5,[{file,"fx.erl"},{line,375}]},{fx,sim,3,[{file,"fx.erl"},{line,284}]}]}  =error report==== 16-mar-2016::14:11:34 === error in process <0.288.0> exit value: {badarg,[{ets,last,['eurusd15'],[]},{fx,init_state,5,[{file,"fx.erl"},{line,375}]},{fx,sim,3,[{file,"fx.erl"},{line,284}]}]} 

reviewing code of fx.erl shows problem stems ets part , .txt file not being read disk , table in memory.

update: i've been trying investigate function of fx. far, i've had such results: fx:sim(anything) outputs "started" , makes shell unresponsive; fx:init(). results in

initializing fx currency tables:[metadata,'eurusd15','eurusd30','eurusd60'] fx metadata & currency tables initialized , written file. ok

fx:loop(). outputs lot of

new record inserted table:'eurusd15'

with last line being

new forex_db update starting with:{2009,6,16,7,30,0,15}

and

=error report==== 22-mar-2016::16:41:26 === error in process <0.357.0> exit value: {badarg,[{fx,insert_forexraw,2,[{file,"fx.erl"},{line,767}]},{fx,updater,1,[{file,"fx.erl"},{line,698}]},{fx,heartbeat,3,[{file,"fx.erl"},{line,692}]}]}

running ets:i(). after fx:init(). shows no table called eurusd15.

why may be, , how can fix that?

p.s. if working solution found, intend ask changes merged original code (basically, i'll try push request).

i familiar platform, , running on our machines, used our training material last year.

this occurring because didn't start forex simulator before starting benchmarker.


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

formula - R: how to pass in a reference to the variable in glm or lm? -