On Apr 16, 12:03 pm, Troy Melhase <
troy.melh...@gmail.com> wrote:
> Try adjusting your PYTHONPATH shell variable. Untested:
>
> $ export PYTHONPATH=/usr/lib/python2.5/site-packages/profitpy:$PYTHONPATH
> $ ./bin/profit_workbench
Thanks again, I tried what you suggested:
--------------------------------------------------------------------------------------------------
o@o-laptop:~$ export PYTHONPATH=/usr/lib/python2.5/site-packages/
profitpy:$PYTHONPATH
o@o-laptop:~$ echo $PYTHONPATH
/usr/lib/python2.5/site-packages/profitpy:
o@o-laptop:~$ cd /usr/lib/python2.5/site-packages/profitpyo@o-laptop:/
usr/lib/python2.5/site-packages/profitpy$ ./bin/profit_workbench
Traceback (most recent call last):
File "./bin/profit_workbench", line 13, in <module>
from profit.workbench.main import ProfitWorkbenchWindow
File "/usr/lib/python2.5/site-packages/profitpy/profit/workbench/
main.py", line 30, in <module>
from profit.lib.widgets.propertyeditor import PropertyEditor
File "/usr/lib/python2.5/site-packages/profitpy/profit/lib/widgets/
propertyeditor.py", line 10, in <module>
from ib.opt.message import messageTypeNames
ImportError: cannot import name messageTypeNames
--------------------------------------------------------------------------------------------------
So I searched on messageTypeNames & found the "issue with ib and
profit" thread, where a poster noted:
"I can successfully:
>>> from ib.opt.message import messageTypeNames
but only when I am in the ibpy folder. "
So I tried this:
--------------------------------------------------------------------------------------------------
o@o-laptop:/usr/lib/python2.5/site-packages/profitpy$ cd ..
o@o-laptop:/usr/lib/python2.5/site-packages$ cd ib
o@o-laptop:/usr/lib/python2.5/site-packages/ib$ python
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ib.opt.message import messageTypeNames
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name messageTypeNames
--------------------------------------------------------------------------------------------------
So it sounds like my problem is a different. Still, I did try the
relevant suggestions in the "issue with ib and profit" thread (I'm not
sure I searched sys.path exhaustively for other versions of ib, but
since Python's not finding it, a stray copy seems unlikely to be the
problem...?)
Any further suggestions would be much appreciated!