TypeError: unsupported operand type(s) for -: 'list' and 'set'

Hello! I asked you in comments under tutorial about installation on ubuntu 15. Here’ copy of my question:

Hi Matt! after running tests it shows that 28 tests have failed, and all of them shows same mistake: TypeError: unsupported operand type(s) for -: ‘list’ and ‘set’
seems there’s problems with numpy, but i dont know how to fix it

you answered that it seems that it needs numpy v1.9.2, buy i already have it.
so what it could be?

1 Like

I don’t think I’ve seen that error before. Can you provide some details:

  • OS (with bitness)
  • python version
  • pip version (pip --version)

Thanks.

elementary os freya 0.3.2 64 bit
python 2.7.6 and python3 3.5.2
pip 8.1.2

I’ve never used (or even heard of) that OS. We can’t provide support for every OS at this point, but we do try to support major OS X and Ubuntu Linux. I’m sorry, but I’m not really sure how to help.

Also, note that Python 3 is not supported by nupic at this time.

elementary os is based on ubuntu 14.04. it’s just a graphic shell, but it has ubuntu core

This might help? https://github.com/numenta/nupic/wiki/Compiling-NuPIC-on-Ubuntu-14

yes, now it works. thank you

1 Like

@rhyolight, could you please fix your script in the gist https://gist.github.com/rhyolight/15b8454780424f690d00. nupic.core requires pycapnp==0.5.8 and the build/runtime behavior is undefined with other versions.

I will eventually update nupic.bindings’ requirements.txt to do it the right way, but until then we have to install the correct version explicitly. Thx.

P.S. I already fixed up the wiki page https://github.com/numenta/nupic/wiki/Compiling-NuPIC-on-Ubuntu-14 with pycapnp==0.5.8.

1 Like