ratt-ru / meqtrees

A library for implementing radio astronomical Measurement Equations
http://meqtrees.net
10 stars 2 forks source link

Meqbrowser won't start, looks like it can't find numpy #865

Open IanHeywood opened 8 years ago

IanHeywood commented 8 years ago

I've suddenly started to get this error in a system dialog popup when I start the meqbrowser:

This example requires a Numerical Python Extension, but
failed to import either NumPy, or numarray, or Numeric.
NumPy is available at http://sourceforge.net/projects/numpy

To the best of my knowledge I haven't updated anything on this installation for a while. iPython etc. all find numpy just fine. I'm running Ubuntu 14.04. Wondered if there was a quick fix before I tear everything down and start again...

twillis449 commented 8 years ago

I have a fully up-to-date (latest software patches etc) ubuntu 14.04 on my laptop and the meqbrowser starts up just fine. I would first just try doing a re-install of numpy with the ubunutu package manager. Personally I still use synaptic as I can't stand the silly Software Centre.

o-smirnov commented 8 years ago

Hmmm, I saw this here: https://github.com/ska-sa/meqtrees/issues/860

What's you numpy version? If you pip installed something newer than what comes with 14.04, you may be tripping over this...

IanHeywood commented 8 years ago

Hmmm.

Re-installing numpy seems to have broken everything. Time for a fresh OS install I think.

twillis449 commented 8 years ago

synapic sez that the official version of numpy for ubuntu 14.04 is 1.1.8-2 (seems a bit odd but definitely a whole lot less that v1.9 that gives other troubles as pointed out by @o-smirnov

A fresh install is always good for the soul and also probably gets rid of a lot of software that you thought your needed but never actually used. So you can think of it as a cleansing for various sins you have committed. :)

twillis449 commented 6 years ago

Holy crap this critical issue is still here after 2 years ?? My aged brain seems to recall that we encountered this error elsewhere and today I just tripped over it myself, when I did a fresh install of MeqTrees on a new machine. This error is coming from our now ancient PyQwt 5,2 package's anynumpy.py piece of code. Comment out line 8 to get this error to go away. @o-smirnov @gijzelaerr I think the instructions for installing MeqTrees from source code should include a warning about this issue. Installing the standard PyQwt from a ubuntu package manager installs this piece of buggy code.