htm-community/nupic.studio

Install problem: Cannot import PyQt4 with --no-site-packages

breznak opened this issue · 3 comments

I am using virtualenv for python with --no-site-packages,
When I follow the readme instructions to install (manually) qt4, or this https://stackoverflow.com/questions/17240254/how-to-install-pyqt-on-ubuntu-12-04-with-python-2-7
on my system it's fine (system python import PyQt4 OK) but in env it keeps failing.

pip search PyQt4 shows a PyQt4 package, but pip install claims no such package exists ?! (Ubuntu)

Any ideas how to workaround this?
Thanks

HI @breznak, have you tried apt-get instead of pip?

I did. The problem is they are installed (system-wide), but I have python env for nupic set up to hide the system python packages (--no-site-packages), because I had some conflicts in nupic/system python modules otherwise.

I will try once more from scratch..

If someone stumbles upon this, the solution I found is:

  • Copy PyQt4 package from your /usr/lib..../(path) to virtualenv's lib path.

  • Anyone successful in running nupic studio successfully?