Getting started with spiNNaker

110 views
Skip to first unread message

Sherif Badawii

unread,
Jun 8, 2020, 10:45:06 AM6/8/20
to SpiNNaker Users Group
Hi all,

I just started using spynnaker (pynn with spinnaker).

I downloaded python 2.7 and pynn and spinnaker on a virtual env of mine.

I went to user/Anaconda3/envs/myenv/lib/site-package/spynnaker/spynnaker.cfg
and to /user/.spynnaker.cfg

and I added a machine name 192.168.240.253 and version = 3


I also copied the cfg file to my script directory


However, I am still stuck at a runtime error: 

File "C:\Users\20195234\Anaconda3\envs\myenv\lib\site-packages\spinn_front_end_common\interface\spinnaker_main_interface.py", line 211, in set_up_machine_specifics
    "A SpiNNaker machine must be specified your configuration"

Exception: A SpiNNaker machine must be specified your configuration file

Please advice.

Best regards,
Sherif

Andrew Gait

unread,
Jun 8, 2020, 11:16:38 AM6/8/20
to SpiNNaker Users Group
Oops, forgot to reply to the whole mailing list...

Hi Sherif,

You should only specify the machineName and version in one of your config files - preferably in the /user/.spynnaker.cfg file, or in the cfg file in your script directory.  Repeating it may lead to the errors you are seeing.

I would also suggest that you should be using python 3, as python 2.7 is now unsupported, and sPyNNaker works with python 3 (assuming you are using a recent version i.e. 5.0 or 5.1). 

If this still doesn't help then send us your config file in your next reply.

Andy

----------------------------------------------------
Dr. Andrew Gait,
Research Software Engineer,
APT Group,
School of Computer Science,
The University of Manchester,
Oxford Road, Manchester M13 9PL

email: andre...@manchester.ac.uk
web: http://personalpages.manchester.ac.uk/staff/Andrew.Gait/

From: spinnak...@googlegroups.com <spinnak...@googlegroups.com> on behalf of Sherif Badawii <sherif....@gmail.com>
Sent: 08 June 2020 12:43
To: SpiNNaker Users Group <spinnak...@googlegroups.com>
Subject: [SpiNNaker Mailing List] Getting started with spiNNaker
 
--
You received this message because you are subscribed to the Google Groups "SpiNNaker Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spinnakeruser...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/spinnakerusers/ac9aae19-2ec6-4c90-b586-c41a5d736616o%40googlegroups.com.

Sherif Badawii

unread,
Jun 9, 2020, 4:49:48 AM6/9/20
to SpiNNaker Users Group
Hi Andrew,

Thanks for the response.

I initially tried to install it with pip install pyNN-spiNNaker

I get the following error:

 ERROR: Command errored out with exit status 1:
     command: 'C:\Users\20195234\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\20195234\\AppData\\Local\\Temp\\pip-install-1cwa76qo\\pyNN-spiNNaker\\setup.py'"'"'; __file__='"'"'C:\\Users\\20195234\\AppData\\Local\\Temp\\pip-install-1cwa76qo\\pyNN-spiNNaker\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\20195234\AppData\Local\Temp\pip-install-1cwa76qo\pyNN-spiNNaker\pip-egg-info'
         cwd: C:\Users\20195234\AppData\Local\Temp\pip-install-1cwa76qo\pyNN-spiNNaker\
    Complete output (6 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\20195234\AppData\Local\Temp\pip-install-1cwa76qo\pyNN-spiNNaker\setup.py", line 32
        print "Created", self._spinnaker_init
                      ^
    SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Created", self._spinnaker_init)?
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

best regards,
Sherif

On Monday, June 8, 2020 at 5:16:38 PM UTC+2, Andrew Gait wrote:
Oops, forgot to reply to the whole mailing list...

Hi Sherif,

You should only specify the machineName and version in one of your config files - preferably in the /user/.spynnaker.cfg file, or in the cfg file in your script directory.  Repeating it may lead to the errors you are seeing.

I would also suggest that you should be using python 3, as python 2.7 is now unsupported, and sPyNNaker works with python 3 (assuming you are using a recent version i.e. 5.0 or 5.1). 

If this still doesn't help then send us your config file in your next reply.

Andy

----------------------------------------------------
Dr. Andrew Gait,
Research Software Engineer,
APT Group,
School of Computer Science,
The University of Manchester,
Oxford Road, Manchester M13 9PL

email: andre...@manchester.ac.uk
web: http://personalpages.manchester.ac.uk/staff/Andrew.Gait/


Sent: 08 June 2020 12:43
To: SpiNNaker Users Group <spinnak...@googlegroups.com>
Subject: [SpiNNaker Mailing List] Getting started with spiNNaker
Hi all,

I just started using spynnaker (pynn with spinnaker).

I downloaded python 2.7 and pynn and spinnaker on a virtual env of mine.

I went to user/Anaconda3/envs/myenv/lib/site-package/spynnaker/spynnaker.cfg
and to /user/.spynnaker.cfg

and I added a machine name 192.168.240.253 and version = 3


I also copied the cfg file to my script directory


However, I am still stuck at a runtime error: 

File "C:\Users\20195234\Anaconda3\envs\myenv\lib\site-packages\spinn_front_end_common\interface\spinnaker_main_interface.py", line 211, in set_up_machine_specifics
    "A SpiNNaker machine must be specified your configuration"

Exception: A SpiNNaker machine must be specified your configuration file

Please advice.

Best regards,
Sherif

--
You received this message because you are subscribed to the Google Groups "SpiNNaker Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spinnak...@googlegroups.com.

Andrew Gait

unread,
Jun 9, 2020, 4:59:47 AM6/9/20
to SpiNNaker Users Group
Hi Sherif,

Not sure where you're getting those instructions from - that's not how we recommend installation (where did you get those instructions from?).  You need to follow the instructions at


and that should work.

Andy

----------------------------------------------------
Dr. Andrew Gait,
Research Software Engineer,
APT Group,
School of Computer Science,
The University of Manchester,
Oxford Road, Manchester M13 9PL

email: andre...@manchester.ac.uk
web: http://personalpages.manchester.ac.uk/staff/Andrew.Gait/

From: spinnak...@googlegroups.com <spinnak...@googlegroups.com> on behalf of Sherif Badawii <sherif....@gmail.com>
Sent: 09 June 2020 09:49

To: SpiNNaker Users Group <spinnak...@googlegroups.com>
Subject: Re: [SpiNNaker Mailing List] Getting started with spiNNaker
 
To unsubscribe from this group and stop receiving emails from it, send an email to spinnakeruser...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/spinnakerusers/07836326-c29f-444c-87a6-451e28ab2b35o%40googlegroups.com.

Sherif Badawii

unread,
Jun 9, 2020, 9:26:46 AM6/9/20
to SpiNNaker Users Group
Hello Andrew,


Are the tutorials out of date? The function pynn.OneToOneConnector does not accept parameters (weights delays), further more p.Projection does not accept the parameter target:


  File "C:\Users\20195234\.spyder-py3\untitled0.py", line 14, in <module>
    input_proj=p.Projection(input,pop_1,p.OneToOneConnector(weights=5.0,delays=1),target="excitatory")

TypeError: __init__() got an unexpected keyword argument 'weights'

How do you recommend starting with spynnakker? Do you have a tutorial to recommend?
  

On Tuesday, June 9, 2020 at 10:59:47 AM UTC+2, Andrew Gait wrote:
Hi Sherif,

Not sure where you're getting those instructions from - that's not how we recommend installation (where did you get those instructions from?).  You need to follow the instructions at


and that should work.

Andy

----------------------------------------------------
Dr. Andrew Gait,
Research Software Engineer,
APT Group,
School of Computer Science,
The University of Manchester,
Oxford Road, Manchester M13 9PL

email: andre...@manchester.ac.uk
web: http://personalpages.manchester.ac.uk/staff/Andrew.Gait/

Sherif Badawii

unread,
Jun 9, 2020, 9:35:37 AM6/9/20
to SpiNNaker Users Group
Also, I attempted a run on machine 3 and it gave runtime error SpinnmanIOException: IO Error: Failed to communicate with the machine

When I attempt to run it virtually, it runs without results, giving an empty plot and numerous warning msgs: WARNING: The simulation is using a virtual machine and so has not truly ran, hence the list will be empty

Andrew Gait

unread,
Jun 9, 2020, 9:37:54 AM6/9/20
to Sherif Badawii, SpiNNaker Users Group
Hi Sherif, anything linked from here should work with 5.1.0: http://spinnakermanchester.github.io/spynnaker/5.0.0/index.html
WORK IN PROGRESS. sPyNNaker version 5.1.0 has been released; we are currently working on the documentation. If anything here doesn’t work, please let the software team know.

I'm not sure where you've got that OneToOneConnector tutorial from, either (again, send us a link) - it's not obvious from the pypi page.  It's been that way in PyNN for a while - and a Projection should also have a synapse_type, which is why it's not accepting your target parameter (which is optional - it defaults to "excitatory").

Andy

----------------------------------------------------
Dr. Andrew Gait,
Research Software Engineer,
APT Group,
School of Computer Science,
The University of Manchester,
Oxford Road, Manchester M13 9PL

email: andre...@manchester.ac.uk
web: http://personalpages.manchester.ac.uk/staff/Andrew.Gait/

Sent: 09 June 2020 14:26
To unsubscribe from this group and stop receiving emails from it, send an email to spinnakeruser...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/spinnakerusers/0540351d-7a16-4835-ad6e-9d0cd68b6be0o%40googlegroups.com.

Andrew Gait

unread,
Jun 9, 2020, 9:40:09 AM6/9/20
to Sherif Badawii, SpiNNaker Users Group
That would suggest that your computer doesn't know the spinnaker board is connected to it.  Have you set the configuration settings correctly?  (http://spinnakermanchester.github.io/spynnaker/5.0.0/PyNNOnSpinnakerInstall.html#NetworkConfiguration).  If you've done that correctly, you ought to be able to ping 192.168.240.253 and get a response...

Andy

----------------------------------------------------
Dr. Andrew Gait,
Research Software Engineer,
APT Group,
School of Computer Science,
The University of Manchester,
Oxford Road, Manchester M13 9PL

email: andre...@manchester.ac.uk
web: http://personalpages.manchester.ac.uk/staff/Andrew.Gait/

Sent: 09 June 2020 14:35

To: SpiNNaker Users Group <spinnak...@googlegroups.com>
Subject: [SpiNNaker Mailing List] Re: Getting started with spiNNaker
 
--
You received this message because you are subscribed to the Google Groups "SpiNNaker Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spinnakeruser...@googlegroups.com.

Christian Brenninkmeijer

unread,
Jun 10, 2020, 3:39:05 AM6/10/20
to Sherif Badawii, SpiNNaker Users Group
A few things to add to what Andy said.

1. Please use Python 3 and not the deprecated Python 2.7.  While are tools currently still work with Python 2.7 we reserve the right to withdraw this support as any time as Python 2.7 has passed its end of life.

2. You say you added machine name   "192.168.240.253".  This only works of course if you have a physical small spinnaker board attached to your PC.  If you have a physical board could you let us know the number on the white sticker on the back of it.  

3. I think the cfg file is not correct please attach a copy of this cfg in your next reply.

Christian


Sent: Tuesday, June 09, 2020 2:35 PM
To: SpiNNaker Users Group

Subject: [SpiNNaker Mailing List] Re: Getting started with spiNNaker
--
Reply all
Reply to author
Forward
0 new messages