1

I am using Ubuntu, and python 2.7. Is there anybody help me overcome the following error?

ImportError: No module named foxhound.utils.vis

which is caused by this line:

from foxhound.utils.vis import grayscale_grid_vis, unit_scale

I also did:

export PYTHONPATH="/home/jerome/bin/django-1.1/lib/python2.6/site-packages:$PYTHONPATH"

but no help!!

Amn Kh
  • 531
  • 3
  • 7
  • 19

1 Answers1

2

If you have already foxhound installed you should use:

from foxhound.vis import grayscale_grid_vis, unit_scale

because vis module is in the foxhound package and not in foxhound.utils (utils is also a module, not a package). See the foxhound structure here.

Edit

To install foxhound:

  1. Download it and unzip it - download link.
  2. In the terminal navigate into the unzipped folder (Foxhound-master).
  3. There run

    python setup.py install

More info on installing python modules.

doru
  • 9,022
  • 2
  • 33
  • 43
  • `Traceback (most recent call last): File "", line 1, in ImportError: No module named foxhound.vis ` – Amn Kh Jun 30 '15 at 07:59
  • i'm new in python. how to to install `foxhound` at all? (no documentation there) – Amn Kh Jun 30 '15 at 08:00
  • thanks, now getting another error `Traceback (most recent call last): File "", line 1, in File "build/bdist.linux-x86_64/egg/foxhound/vis.py", line 2, in ImportError: No module named matplotlib` – Amn Kh Jun 30 '15 at 08:17
  • thanks, fixed by `sudo apt-get install python-matplotlib` – Amn Kh Jun 30 '15 at 08:20
  • do you have any idea about this warning `OpenBLAS : Your OS does not support AVX instructions. OpenBLAS is using Nehalem kernels as a fallback, which may give poorer performance.`? – Amn Kh Jun 30 '15 at 08:21
  • It seems to be a bug in an older version of **OpenBLAS**. it seems it's nothing critical [see here a small description](https://github.com/xianyi/OpenBLAS/issues/338). – doru Jun 30 '15 at 08:48
  • I have installed a recent version of Ubuntu on virtualbox. How can I fix it? – Amn Kh Jun 30 '15 at 08:58
  • See [this answer](http://stackoverflow.com/questions/27186638/how-to-check-which-blas-is-in-my-ubuntu-system) to find the version of OpenBLAS you have. – doru Jun 30 '15 at 09:24
  • I dont have `/usr/local/include/openblas_config.h` file. folder `/usr/local/include/` is empty for me. – Amn Kh Jul 01 '15 at 08:52
  • Try in `/usr/local/lib/` there are python installed libs – doru Jul 01 '15 at 09:20
  • See [here](https://hunseblog.wordpress.com/2014/09/15/installing-numpy-and-openblas/) how to install manually `numpy` with `OpenBlas`. – doru Jul 01 '15 at 10:05