Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running "python run.py -e prototype_10" for Dendrites project #637

Closed
leogagnon opened this issue Mar 22, 2022 · 4 comments
Closed

Comments

@leogagnon
Copy link

Hi,

I made no modification to the code and have followed all the instructions in the README.txt but I get the following error message :

(numenta) [leko@leko-pc permutedMNIST]$ python run.py -e prototype_10 --run_without_ray_tune True
Traceback (most recent call last):
  File "run.py", line 73, in <module>
    run(config)
  File "/home/leko/Documents/nupic.research/src/nupic/research/frameworks/vernon/run.py", line 171, in run
    ctx_worker = mp.spawn(worker, args=(world_size, dist_url, config, queue),
  File "/home/leko/anaconda3/envs/numenta/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 230, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
  File "/home/leko/anaconda3/envs/numenta/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 179, in start_processes
    process.start()
  File "/home/leko/anaconda3/envs/numenta/lib/python3.8/multiprocessing/process.py", line 121, in start
    self._popen = self._Popen(self)
  File "/home/leko/anaconda3/envs/numenta/lib/python3.8/multiprocessing/context.py", line 284, in _Popen
    return Popen(process_obj)
  File "/home/leko/anaconda3/envs/numenta/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in __init__
    super().__init__(process_obj)
  File "/home/leko/anaconda3/envs/numenta/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__
    self._launch(process_obj)
  File "/home/leko/anaconda3/envs/numenta/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 47, in _launch
    reduction.dump(process_obj, fp)
  File "/home/leko/anaconda3/envs/numenta/lib/python3.8/multiprocessing/reduction.py", line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <function <lambda> at 0x7f2e71df1940>: attribute lookup <lambda> on experiments.prototype failed

Any idea what's happening?

@leogagnon leogagnon changed the title Error when running "python run.py -e prototype_10" Error when running "python run.py -e prototype_10" for Dendrites project Mar 22, 2022
@zhaoyaqia
Copy link

Hi,I have a problem.
ImportError: cannot import name '_TuneFunctionDecoder' from 'ray.tune.trial_runner' (E:\anaconda3\envs\dendrites\lib\site-packages\ray\tune\trial_runner.py)
Do you know how to solve it? Thanks for your help.

@zhaoyaqia
Copy link

Have you solved your problem? I have the same problem as you, okay? I want to know how to solve it.

@subutai
Copy link
Member

subutai commented Apr 2, 2022

The continual learning experiments should be run from the following repository, as this is a stable version of our implementation:

https://github.com/numenta/htmpapers/tree/master/biorxiv/going_beyond_the_point_neuron

We had provided a link to an unstable version, and that has been updated now. Sorry about that! If you follow the instructions in the README file in the link above, you should have no errors. Also, please don't use the flag run_without_ray_tune, just simply run python run.py -e prototype_10.

@subutai subutai closed this as completed Apr 2, 2022
@zhaoyaqia
Copy link

The continual learning experiments should be run from the following repository, as this is a stable version of our implementation:

https://github.com/numenta/htmpapers/tree/master/biorxiv/going_beyond_the_point_neuron

We had provided a link to an unstable version, and that has been updated now. Sorry about that! If you follow the instructions in the README file in the link above, you should have no errors. Also, please don't use the flag run_without_ray_tune, just simply run python run.py -e prototype_10.

Firstly,ray==0.8.7 doesn't work on my computer. So I update it to ray==1.11.0.
When I run 'python run.py -e prototype_10' , it also failed.
And it prints:"ImportError: cannot import name '_TuneFunctionDecoder' from 'ray.tune.trial_runner' (E:\anaconda3\envs\nupic.research\lib\site-packages\ray\tune\trial_runner.py)
I need your help. Thanks for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants