Thank you Pascal, unfortunately I tried it and doesn't seem to be the
problem... I don't get why the first of these lines is working but the
second is not:

> from nupic.swarming import permutations_runner
>
from nupic.swarming.permutations_runner import DEFAULT_OPTIONS
>

I don't really know which kind of problem it is, as it seems to be
something related with my settings... any idea of an approach to debugging?

Maybe it's the file structure? Right now what I have is the following

home
>
>> nupic
>>
>>> nupic-source
>>>
>>>> scripts
>>>>
>>>>> run_swarm.py
>>>>>
>>>> nupic
>>>>
>>>>> swarming
>>>>>
>>>>>> permutations_runner.py
>>>>>>
>>>>>
With the $NUPIC variable being '/home/nupic/nupic-source', I am running
*$NUPIC/scripts/run_swarm.py search_def.json *
and getting the already mentioned error,

Traceback (most recent call last):
>   File "/home/nupic/nupic-source/scripts/run_swarm.py", line 31, in
> <module>
>     from nupic.swarming.permutations_runner import DEFAULT_OPTIONS
> ImportError: cannot import DEFAULTname _OPTIONS
>


Thanks,

Jose

2015-04-05 18:03 GMT+02:00 Pascal Weinberger <[email protected]>:

> Hey Jose,
>
> this might be because you did not set the NUPIC variable.
> if the following doesnt help, consider opening a new issue here:
> https://github.com/numenta/nupic/issues/new
>
> Try executing :
> export NUPIC="$(pip show nupic | grep 'Location:' | sed 's/Location:
> //')/nupic"
>
>
> thanks
>
> Pascal
>
> 2015-04-05 14:31 GMT+02:00 Jose Luis Contreras Santos <
> [email protected]>:
>
>> Thank you Mark,
>>
>> I have updated nupic-source, but now I am encountering some new troubles
>> when trying to swarm: when swarming this way, I get the following error:
>>
>> $NUPIC/scripts/run_swarm.py search_def.json
>>>     Traceback (most recent call last):
>>>       File "/home/nupic/nupic-source/scripts/run_swarm.py", line 32, in
>>> <module>
>>>       from nupic.swarming.permutations_runner import DEFAULT_OPTIONS
>>> ImportError: cannot import name DEFAULT_OPTIONS
>>>
>>
>>  I wold appreciate some help, I'm feeling a little bit clueless at this
>> point.
>>
>> Cheers,
>>
>> Jose
>>
>>
>> 2015-03-31 2:01 GMT+02:00 Marek Otahal <[email protected]>:
>>
>>> Hi Jose,
>>>
>>> it's definitely not up-to-date, so updating, as you suggest, would be
>>> the first step.
>>> Second, you could verify that $NUPIC/scripts/run_swarm.py
>>> /your/swarming/path
>>> produces the requested params.
>>>
>>> Cheers, Mark
>>>
>>>
>>> On Tue, Mar 31, 2015 at 1:47 AM, Jose Luis Contreras Santos <
>>> [email protected]> wrote:
>>>
>>>> Hello,
>>>>
>>>> I am running NuPIC from the preset VM image provided here
>>>> <https://github.com/numenta/nupic/wiki/Running-Nupic-in-a-Virtual-Machine#preset-vm-image>,
>>>> but I am having some trouble running swarms programmatically, as for some
>>>> reason the model_params.py file is not being created. This is a snippet of
>>>> the code I am running (based on Matt's tutorial on predicting sine waves):
>>>>
>>>> import shutil
>>>>> from nupic.swarming import permutations_runner
>>>>> from nupic.frameworks.opf.modelfactory import ModelFactory
>>>>> def swarm_over_data():
>>>>> permutations_runner.runPermutations(["search_def.json",
>>>>> "--maxWorkers=4", "--overwrite"])
>>>>> shutil.copyfile("model_0/model_params.py", "model_params.py")
>>>>
>>>>
>>>>  At that point, when trying to copy the file, I am getting this error:
>>>> (which is normal because model_params.py is actually not there, swarming
>>>> only created description.py and params.csv)
>>>>
>>>> IOError: [Errno 2] No such file or directory: 'model_0/model_params.py'
>>>>
>>>>
>>>> My question is, does anybody know why this is happening? My guess is
>>>> that maybe the version of NuPIC provided with the VM image is not up to
>>>> date, in which case I think I can just pull the most recent version from
>>>> gitHub, is that right?
>>>>
>>>> Thank you for your help!
>>>> Jose Luis
>>>>
>>>
>>>
>>>
>>> --
>>> Marek Otahal :o)
>>>
>>
>>
>

Reply via email to