You've found a bug, thank you! I've fixed this for future DeVIDE
releases with the following two patches:
http://code.google.com/p/devide/source/detail?r=710926cdd543e578d1fcf5fed4d814f2c3ebe967&repo=johannes
http://code.google.com/p/devide/source/detail?r=e3fd7102231fdcfae068ffc4d6eb92c5aed7eb21&repo=johannes
http://code.google.com/p/devide/source/detail?r=eee6eddb11e2815e95c55966fcc76e3421fcf841&repo=dre
You can fix your existing installation by editing DeVIDE-RE/dre.cfg
and making the following three changes:
1. change "python: %(dre_top)s\python\bin" to just "python:
%(dre_top)s\python" (i.e. remove the bin)
2. add these two lines to the bottom of your dre.cfg:
[env:pythonhome]
python: %(dre_top)s\python
3. download an updated dre.py from
http://dre.devide.googlecode.com/hg-history/eee6eddb11e2815e95c55966fcc76e3421fcf841/core/dre.py
and copy it OVER your existing dre.py in DeVIDE-RE
Now the following should work:
dre shell
pip install pymongo
Thank you for reporting this!
> 2. It seems that Ecplise + pydev does't work. When I load python
> console, It just load python2.7.2 console not the drepython, so I
> should import itk and vtk. But when I use the python console under the
> window menu in devide, the vtk and matplotlib have already been
> loaded.
You should follow the *exact* instructions as detailed here:
http://code.google.com/p/devide/wiki/HelpDRE -- it's normal that you
have to import itk and vtk to use that in your eclipse python code.
> 3. Can I update the itk in devide. I found that the itk you compiled
> lack support to some data type. I have found an itk package with the
> data type I need. Can I replace the itk package in devide with that
> one and how to do that.
If your ITK has also been built for python 2.7.x and with visual
studio, you could try overwriting the existing devide-re/itk
directory. Let us know if it works!
See you,
Charl
--
You received this message because you are subscribed to the Google Groups "devide-users" group.
To post to this group, send email to devide...@googlegroups.com.
To unsubscribe from this group, send email to devide-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/devide-users?hl=en.
These two commands should be typed in a command shell in the directory
in which you installed DeVIDE. The fact that "pip install pymongo" is
suspicious. Does "pip help" return anything?
> return with nothing.
> In addition, It seems that the devide didn't write information about python
> into registry, so when I install scipy manually, the installer complained
> that it can't find python in the registry.
That's deliberate. The DRE is completely self-contained and portable,
not really meant to be a system python. On Win64, adding SciPy to the
mix might complicate things, as the numpy bundled with DeVIDE is not
compatible, due primarily to compiler weirdness.
That's exactly the error you should get without the dre.cfg and dre.py
modifications above, and without running dre shell first. I tested
just yesterday, and could run pip without problems.
I'll test on different windows images and let you know. Please keep me
up to date on any progress that you might be making.
Thanks,
Charl