[bob <at> oberon /home/robert/python]: where easy_install
/usr/local/bin/easy_install
/usr/bin/easy_install
[bob <at> oberon /home/robert/python]: ls -al `where easy_install`
-rwxr-xr-x 1 root root 281 2009-09-13 04:32 /usr/bin/easy_install
-rwxr-xr-x 1 root root 286 2009-11-30 21:42 /usr/local/bin/easy_install
[bob <at> oberon /home/robert/python]: where python
/usr/bin/python
[bob <at> oberon /home/robert/python]: ls -alrt /usr/bin/python
lrwxrwxrwx 1 root root 9 2009-12-01 10:38 /usr/bin/python -> python2.6
[bob <at> oberon /home/robert/python]: python (possible completions on python ...)
python python2.6 python2.6-pyrexc
python2 python2.6-config python-config
python2.5 python2.6-dbg python-dbg
python2.5-pyrexc python2.6-dbg-config python-dbg-config
[bob <at> oberon /home/robert/python]: find /usr -name 'easy-install.pth' -ls
14043859 4 -rw-r--r-- 1 root staff 942 Nov 30 20:48 /usr/local/lib/python2.6/dist-packages/easy-install.pth
[bob <at> oberon /home/robert/python]: more /usr/local/lib/python2.6/dist-packages/easy-install.pth
import sys; sys.__plen = len(sys.path)
./setuptools-0.6c11-py2.6.egg
./TraitsBackendQt-3.2.0-py2.6.egg
./SetupDocs-1.0.3-py2.6.egg
./Mayavi-3.3.0-py2.6-linux-x86_64.egg
./EnvisagePlugins-3.1.1-py2.6.egg
./EnvisageCore-3.1.1-py2.6.egg
./CodeTools-3.1.0-py2.6.egg
./AppTools-3.3.0-py2.6.egg
./ETSProjectTools-0.6.0.dev_r24867-py2.6.egg
./Traits-3.2.1-py2.6-linux-x86_64.egg
./EnthoughtBase-3.0.4-py2.6.egg
./TraitsGUI-3.1.1-py2.6.egg
./ETS-3.3.1.dev_r24435-py2.6.egg
./TraitsBackendWX-3.2.1.dev_r24952-py2.6.egg
./Chaco-3.2.1.dev_r24978-py2.6-linux-x86_64.egg
./Enable-3.2.1.dev_r24954-py2.6-linux-x86_64.egg
./ETSDevTools-3.0.4.dev_r24508-py2.6-linux-x86_64.egg
./SciMath-3.0.5.dev_r24338-py2.6-linux-x86_64.egg
./BlockCanvas-3.1.1.dev_r24672-py2.6-linux-x86_64.egg
/usr/lib/python2.6/lib-dynload
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,
'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
i have played with PYTHONPATH, but have noticed no improvements (i may not even be setting it to what it should be, reasonably.. being NEWBIE to Python)
to the best of my knowledge i let the scripts install ETS (etc) have complete freedom to install wherever they wish (not knowing what would be a good Python/ETS installation...)
I am not sure what you mean by "working directory"
[bob <at> oberon /home/robert/python]: find /usr -name 'enthought' -ls
14045291 4 drwxr-xr-x 3 root root 4096 Dec 1 07:36 /usr/lib/python2.5/site-packages/enthought
14024832 4 drwxr-xr-x 3 root root 4096 Dec 1 10:53 /usr/lib/python2.6/dist-packages/enthought
14846246 4 drwxr-xr-x 3 root root 4096 Dec 1 10:53 /usr/share/doc/python-apptools/examples/permissons/server/enthought
14583276 4 drwxr-xr-x 23 root root 4096 Dec 1 10:53 /usr/share/pyshared/enthought
14304611 4 drwxr-sr-x 4 root staff 4096 Nov 28 19:47 /usr/local/lib/python2.6/dist-packages/Chaco-3.2.1.dev_r24959-py2.6-linux-x86_64.egg/enthought
14779454 4 drwxr-sr-x 15 root staff 4096 Nov 28 10:40 /usr/local/lib/python2.6/dist-packages/AppTools-3.3.0-py2.6.egg/enthought
14781366 4 drwxr-sr-x 6 root staff 4096 Nov 28 19:47 /usr/local/lib/python2.6/dist-packages/Enable-3.2.1-py2.6-linux-x86_64.egg/enthought
14696859 4 drwxr-sr-x 6 root staff 4096 Nov 30 20:47 /usr/local/lib/python2.6/dist-packages/BlockCanvas-3.1.1.dev_r24672-py2.6-linux-x86_64.egg/enthought
14174937 4 drwxr-sr-x 5 root staff 4096 Nov 28 12:40 /usr/local/lib/python2.6/dist-packages/enthought
14730238 4 drwxr-sr-x 5 root staff 4096 Nov 27 09:16 /usr/local/lib/python2.6/dist-packages/TraitsGUI-3.1.0-py2.6.egg/enthought
14762626 4 drwxr-sr-x 5 root staff 4096 Nov 28 10:33 /usr/local/lib/python2.6/dist-packages/ETSProjectTools-0.5.1-py2.6.egg/enthought
14780785 4 drwxr-sr-x 3 root staff 4096 Nov 28 19:47 /usr/local/lib/python2.6/dist-packages/Traits-3.2.1-py2.6-linux-x86_64.egg/enthought
14270635 4 drwxr-sr-x 6 root staff 4096 Nov 28 10:25 /usr/local/lib/python2.6/dist-packages/Enable-3.2.0-py2.6-linux-x86_64.egg/enthought
14765626 4 drwxr-sr-x 7 root staff 4096 Nov 28 10:39 /usr/local/lib/python2.6/dist-packages/ETSDevTools-3.0.3-py2.6-linux-x86_64.egg/enthought
14730840 4 drwxr-sr-x 4 root staff 4096 Nov 27 09:16 /usr/local/lib/python2.6/dist-packages/TraitsBackendWX-3.2.0-py2.6.egg/enthought
14763582 4 drwxr-sr-x 5 root staff 4096 Nov 28 10:36 /usr/local/lib/python2.6/dist-packages/Mayavi-3.3.0-py2.6-linux-x86_64.egg/enthought
14648882 4 drwxr-sr-x 4 root staff 4096 Nov 30 20:43 /usr/local/lib/python2.6/dist-packages/Chaco-3.2.1.dev_r24978-py2.6-linux-x86_64.egg/enthought
14664405 4 drwxr-sr-x 7 root staff 4096 Nov 30 20:47 /usr/local/lib/python2.6/dist-packages/ETSDevTools-3.0.4.dev_r24508-py2.6-linux-x86_64.egg/enthought
14749071 4 drwxr-sr-x 5 root staff 4096 Nov 27 10:10 /usr/local/lib/python2.6/dist-packages/EnthoughtBase-3.0.3-py2.6.egg/enthought
14762461 4 drwxr-sr-x 6 root staff 4096 Nov 28 10:28 /usr/local/lib/python2.6/dist-packages/SciMath-3.0.4-py2.6-linux-x86_64.egg/enthought
14779234 4 drwxr-sr-x 5 root staff 4096 Nov 28 10:39 /usr/local/lib/python2.6/dist-packages/CodeTools-3.1.0-py2.6.egg/enthought
14781124 4 drwxr-sr-x 5 root staff 4096 Nov 28 19:47 /usr/local/lib/python2.6/dist-packages/EnthoughtBase-3.0.4-py2.6.egg/enthought
14778645 4 drwxr-sr-x 4 root staff 4096 Nov 28 10:39 /usr/local/lib/python2.6/dist-packages/EnvisagePlugins-3.1.1-py2.6.egg/enthought
14422264 4 drwxr-sr-x 4 root staff 4096 Nov 28 13:52 /usr/local/lib/python2.6/dist-packages/Chaco-3.2.0-py2.6-linux-x86_64.egg/enthought
14748732 4 drwxr-sr-x 3 root staff 4096 Nov 27 10:10 /usr/local/lib/python2.6/dist-packages/Traits-3.2.0-py2.6-linux-x86_64.egg/enthought
14045216 4 drwxr-sr-x 5 root staff 4096 Nov 28 19:18 /usr/local/lib/python2.6/dist-packages/ETSProjectTools-0.6.0.dev_r24867-py2.6.egg/enthought
14696702 4 drwxr-sr-x 6 root staff 4096 Nov 30 20:47 /usr/local/lib/python2.6/dist-packages/SciMath-3.0.5.dev_r24338-py2.6-linux-x86_64.egg/enthought
14368813 4 drwxr-sr-x 6 root staff 4096 Nov 30 20:48 /usr/local/lib/python2.6/dist-packages/Enable-3.2.1.dev_r24954-py2.6-linux-x86_64.egg/enthought
14762760 4 drwxr-sr-x 6 root staff 4096 Nov 28 10:33 /usr/local/lib/python2.6/dist-packages/BlockCanvas-3.1.0-py2.6-linux-x86_64.egg/enthought
14779030 4 drwxr-sr-x 3 root staff 4096 Nov 28 10:39 /usr/local/lib/python2.6/dist-packages/EnvisageCore-3.1.1-py2.6.egg/enthought
14731212 4 drwxr-sr-x 4 root staff 4096 Nov 27 09:16 /usr/local/lib/python2.6/dist-packages/TraitsBackendQt-3.2.0-py2.6.egg/enthought
14368800 4 drwxr-sr-x 4 root staff 4096 Nov 30 20:43 /usr/local/lib/python2.6/dist-packages/TraitsBackendWX-3.2.1.dev_r24952-py2.6.egg/enthought
14782115 4 drwxr-sr-x 5 root staff 4096 Nov 28 19:47 /usr/local/lib/python2.6/dist-packages/TraitsGUI-3.1.1-py2.6.egg/enthought
[bob <at> oberon /home/robert/python]: find /usr -name '__init__.py' -ls | grep 'enthought/__init__.py'
14845914 4 -rw-r--r-- 1 root root 306 Jul 16 10:28 /usr/share/doc/python-apptools/examples/permissions/server/enthought/__init__.py
14304612 4 -rw-r--r-- 1 root staff 457 Nov 28 19:47 /usr/local/lib/python2.6/dist-packages/Chaco-3.2.1.dev_r24959-py2.6-linux-x86_64.egg/enthought/__init__.py
14779455 4 -rw-r--r-- 1 root staff 308 Nov 28 10:40 /usr/local/lib/python2.6/dist-packages/AppTools-3.3.0-py2.6.egg/enthought/__init__.py
14781367 4 -rw-r--r-- 1 root staff 457 Nov 28 19:47 /usr/local/lib/python2.6/dist-packages/Enable-3.2.1-py2.6-linux-x86_64.egg/enthought/__init__.py
14696860 4 -rw-r--r-- 1 root staff 457 Nov 30 20:47 /usr/local/lib/python2.6/dist-packages/BlockCanvas-3.1.1.dev_r24672-py2.6-linux-x86_64.egg/enthought/__init__.py
14730239 4 -rw-r--r-- 1 root staff 308 Nov 27 09:16 /usr/local/lib/python2.6/dist-packages/TraitsGUI-3.1.0-py2.6.egg/enthought/__init__.py
14762628 4 -rw-r--r-- 1 root staff 308 Nov 28 10:33 /usr/local/lib/python2.6/dist-packages/ETSProjectTools-0.5.1-py2.6.egg/enthought/__init__.py
14780786 4 -rw-r--r-- 1 root staff 463 Nov 28 19:47 /usr/local/lib/python2.6/dist-packages/Traits-3.2.1-py2.6-linux-x86_64.egg/enthought/__init__.py
14270636 4 -rw-r--r-- 1 root staff 308 Nov 28 10:25 /usr/local/lib/python2.6/dist-packages/Enable-3.2.0-py2.6-linux-x86_64.egg/enthought/__init__.py
14765627 4 -rw-r--r-- 1 root staff 308 Nov 28 10:39 /usr/local/lib/python2.6/dist-packages/ETSDevTools-3.0.3-py2.6-linux-x86_64.egg/enthought/__init__.py
14730841 4 -rw-r--r-- 1 root staff 314 Nov 27 09:16 /usr/local/lib/python2.6/dist-packages/TraitsBackendWX-3.2.0-py2.6.egg/enthought/__init__.py
14763584 4 -rw-r--r-- 1 root staff 308 Nov 28 10:36 /usr/local/lib/python2.6/dist-packages/Mayavi-3.3.0-py2.6-linux-x86_64.egg/enthought/__init__.py
14648883 4 -rw-r--r-- 1 root staff 457 Nov 30 20:43 /usr/local/lib/python2.6/dist-packages/Chaco-3.2.1.dev_r24978-py2.6-linux-x86_64.egg/enthought/__init__.py
14664406 4 -rw-r--r-- 1 root staff 457 Nov 30 20:47 /usr/local/lib/python2.6/dist-packages/ETSDevTools-3.0.4.dev_r24508-py2.6-linux-x86_64.egg/enthought/__init__.py
14749072 4 -rw-r--r-- 1 root staff 308 Nov 27 10:10 /usr/local/lib/python2.6/dist-packages/EnthoughtBase-3.0.3-py2.6.egg/enthought/__init__.py
14762462 4 -rw-r--r-- 1 root staff 308 Nov 28 10:28 /usr/local/lib/python2.6/dist-packages/SciMath-3.0.4-py2.6-linux-x86_64.egg/enthought/__init__.py
14779235 4 -rw-r--r-- 1 root staff 308 Nov 28 10:39 /usr/local/lib/python2.6/dist-packages/CodeTools-3.1.0-py2.6.egg/enthought/__init__.py
14781125 4 -rw-r--r-- 1 root staff 457 Nov 28 19:47 /usr/local/lib/python2.6/dist-packages/EnthoughtBase-3.0.4-py2.6.egg/enthought/__init__.py
14778646 4 -rw-r--r-- 1 root staff 308 Nov 28 10:39 /usr/local/lib/python2.6/dist-packages/EnvisagePlugins-3.1.1-py2.6.egg/enthought/__init__.py
14422265 4 -rw-r--r-- 1 root staff 308 Nov 28 13:52 /usr/local/lib/python2.6/dist-packages/Chaco-3.2.0-py2.6-linux-x86_64.egg/enthought/__init__.py
14748733 4 -rw-r--r-- 1 root staff 314 Nov 27 10:10 /usr/local/lib/python2.6/dist-packages/Traits-3.2.0-py2.6-linux-x86_64.egg/enthought/__init__.py
14045218 4 -rw-r--r-- 1 root staff 457 Nov 28 19:18 /usr/local/lib/python2.6/dist-packages/ETSProjectTools-0.6.0.dev_r24867-py2.6.egg/enthought/__init__.py
14696703 4 -rw-r--r-- 1 root staff 457 Nov 30 20:47 /usr/local/lib/python2.6/dist-packages/SciMath-3.0.5.dev_r24338-py2.6-linux-x86_64.egg/enthought/__init__.py
14368815 4 -rw-r--r-- 1 root staff 457 Nov 30 20:48 /usr/local/lib/python2.6/dist-packages/Enable-3.2.1.dev_r24954-py2.6-linux-x86_64.egg/enthought/__init__.py
14762761 4 -rw-r--r-- 1 root staff 308 Nov 28 10:33 /usr/local/lib/python2.6/dist-packages/BlockCanvas-3.1.0-py2.6-linux-x86_64.egg/enthought/__init__.py
14779031 4 -rw-r--r-- 1 root staff 308 Nov 28 10:39 /usr/local/lib/python2.6/dist-packages/EnvisageCore-3.1.1-py2.6.egg/enthought/__init__.py
14731213 4 -rw-r--r-- 1 root staff 308 Nov 27 09:16 /usr/local/lib/python2.6/dist-packages/TraitsBackendQt-3.2.0-py2.6.egg/enthought/__init__.py
14368803 4 -rw-r--r-- 1 root staff 463 Nov 30 20:43 /usr/local/lib/python2.6/dist-packages/TraitsBackendWX-3.2.1.dev_r24952-py2.6.egg/enthought/__init__.py
14782116 4 -rw-r--r-- 1 root staff 457 Nov 28 19:47 /usr/local/lib/python2.6/dist-packages/TraitsGUI-3.1.1-py2.6.egg/enthought/__init__.py
[b
On Tue, Dec 1, 2009 at 10:35 AM, Peter Wang
<pwang-SCgzsaguwNrby3iVrkZq2A@public.gmane.org> wrote:
On Dec 1, 2009, at 11:21 AM, Dave Peterson wrote:
>> [bob <at> oberon /home/robert/python]: python -c "import enthought;
>> print enthought"
>> <module 'enthought' (built-in)>
> The "enthought" package should not be a built-in module. I'm at a
> loss to explain why your Python thinks it is, but if I had to guess,
> I'd say that you mistakenly created or install into your /home/
> robert/python/lib/python2.6 directory rather than /home/robert/
> python/lib/python2.6/site-packages directory.
This strikes me as extremely odd. There's no way the enthought
namespace should appear as a built-in. But, to echo your sentiments
Dave, there is not much that we can do to help unless we are given
detailed information about the steps that Robert took, and perhaps an
overview of how things are set up on his machine now. At a minimum:
- the location of the python interpreter, and the contents of his site-
packages
- if setuptools is installed, the contents of site-packages/easy-
install.pth
- the value of the PYTHONPATH environment variable, if it is defined
- the location where he has "installed" or attempted to install ETS
- where he has been trying to run the demos and examples (e.g. does
his working directory have a subdir named 'enthought' with an
__init__.py in it?)
That would at least be a useful start.
-Peter