First, I have to say that when I reported the problem on friday
it was at the end of a long frustrating day of installing and
trying to use a dozen different plotting libs, and my patience
for dealing with problems was pretty thin. When I encountered
the ImportError, I looked in the forum, found it was a previously
reported problem, and reported it again without any further
investigation.
Today, when I tried pyqtplot again for the first time after
reporting the problem, it imported fine, the examples run, and
everything seems good. So sorry to have sent you on a wild
goose chase -- I should have tried import pyqtgraph more than
once before posting here. But I guess at least I confirmed the
problem is not easily repeatable. :-)
Today I deleted pyqtgraph from .../site-packages/ and reinstalled
from the tar download as before. I also deleted my user ~/.python27/
directory. But I am still not able to reproduce the problem. It
only
happened that first time I tried importing after the initial install.
If you have some free time, I would be most grateful if you could try a couple things for me:
1) remove /usr/lib/python-2.7/site-packages/pyqtgraph/python2_3.pyc
then try importing pyqtgraph and tell me whether the error has changed (I presume you will still get some error)
I deleted the .../site-packages/pyqtgraph/python2_3.pyc
file but when I run python and import pyqtgraph, it (continues to)
import fine.
2) rename python2_3.py to asdf.py
then edit pyqtgraph/__init__.py and change the import statement at line 22 to "from . import asdf"
Did that, and got:
[...]
from .GraphicsScene import *
File "/usr/lib/python2.7/site-packages/pyqtgraph/GraphicsScene/GraphicsScene.py", line 3, in <module>
from pyqtgraph.python2_3 import sortList
ImportError: No module named python2_3
(there seem to be many places besides __init__.py where it is imported.)
I want to add that pyqtgraph seems really excellent. Although it was
at the bottom of my list for evaluation (because I'd not heard of it
before) it is now at the top. Thanks for the past and ongoing
efforts in developing this!