Divisi - getting started

15 views
Skip to first unread message

hoe wai

unread,
Dec 2, 2009, 12:48:20 AM12/2/09
to conceptnet-users
Have built and installed Divisi on windows using easy_install.

But when I try:
>>> from csc.util.persist import get_picklecached_thing

I have this problem..

Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
from csc.util.persist import get_picklecached_thing
File "c:\program files\python25\lib\site-packages\csc_utils-0.4.2-
py2.5.egg\csc\util\persist.py", line 6, in <module>
from csc.divisi.dict_mixin import MyDictMixin as DictMixin #
FIXME: divisi dependency
ImportError: No module named divisi.dict_mixin

Why is it that divisi dic_mixin cannot be found when Divisi has
already being installed?

I also have issues downloading conceptnet tensor for english from
http://commons.media.mit.edu/en/tensor.gz

Help appreciated.

Thanks!


Regards,
Hoe Wai

Kenneth Arnold

unread,
Dec 2, 2009, 11:35:40 AM12/2/09
to conceptn...@googlegroups.com
What happens if you do 'from csc.divisi.labeled_view import *`? How about `from csc.divisi.dict_mixin import *`? And what entries in sys.path include `divisi` or `csc` before and after doing those imports?

Usually the namespace package (`csc.*`) exacerbates simpler problems, like having two different installations of Divisi on your path or something like that. Hopefully looking at sys.path should help get to the bottom of it.

-Ken



--

You received this message because you are subscribed to the Google Groups "conceptnet-users" group.
To post to this group, send email to conceptn...@googlegroups.com.
To unsubscribe from this group, send email to conceptnet-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/conceptnet-users?hl=en.



hoe wai

unread,
Dec 2, 2009, 10:34:12 PM12/2/09
to conceptnet-users
=================================================
>>> import sys
>>> print(sys.path)
['C:\\Program Files\\Python25\\Lib\\idlelib', 'C:\\Program Files\
\Python25\\lib\\site-packages\\distribute-0.6.8-py2.5.egg', 'C:\
\Program Files\\Python25\\lib\\site-packages\\ipython-0.10-py2.5.egg',
'C:\\Program Files\\Python25\\lib\\site-packages\\conceptnet-4.0rc1-
py2.5.egg', 'C:\\Program Files\\Python25\\lib\\site-packages\
\south-0.6.2-py2.5.egg', 'C:\\Program Files\\Python25\\lib\\site-
packages\\django-1.1.1-py2.5.egg', 'C:\\Program Files\\Python25\\lib\
\site-packages\\divisi-0.6.8-py2.5-win32.egg', 'C:\\Program Files\
\Python25\\lib\\site-packages\\csc_utils-0.4.2-py2.5.egg', 'C:\\WINDOWS
\\system32\\python25.zip', 'C:\\Program Files\\Python25\\DLLs', 'C:\
\Program Files\\Python25\\lib', 'C:\\Program Files\\Python25\\lib\
\plat-win', 'C:\\Program Files\\Python25\\lib\\lib-tk', 'C:\\Program
Files\\Python25', 'C:\\Program Files\\Python25\\lib\\site-packages',
'C:\\Program Files\\Python25\\lib\\site-packages\\setuptools-0.6c9-
py2.5.egg-info']
>>> from csc.divisi.labeled_view import *

Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
from csc.divisi.labeled_view import *
ImportError: No module named divisi.labeled_view
>>> from csc.divisi.dict_mixin import *

Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
from csc.divisi.dict_mixin import *
ImportError: No module named divisi.dict_mixin
>>> print(sys.path)
['C:\\Program Files\\Python25\\Lib\\idlelib', 'C:\\Program Files\
\Python25\\lib\\site-packages\\distribute-0.6.8-py2.5.egg', 'C:\
\Program Files\\Python25\\lib\\site-packages\\ipython-0.10-py2.5.egg',
'C:\\Program Files\\Python25\\lib\\site-packages\\conceptnet-4.0rc1-
py2.5.egg', 'C:\\Program Files\\Python25\\lib\\site-packages\
\south-0.6.2-py2.5.egg', 'C:\\Program Files\\Python25\\lib\\site-
packages\\django-1.1.1-py2.5.egg', 'C:\\Program Files\\Python25\\lib\
\site-packages\\divisi-0.6.8-py2.5-win32.egg', 'C:\\Program Files\
\Python25\\lib\\site-packages\\csc_utils-0.4.2-py2.5.egg', 'C:\\WINDOWS
\\system32\\python25.zip', 'C:\\Program Files\\Python25\\DLLs', 'C:\
\Program Files\\Python25\\lib', 'C:\\Program Files\\Python25\\lib\
\plat-win', 'C:\\Program Files\\Python25\\lib\\lib-tk', 'C:\\Program
Files\\Python25', 'C:\\Program Files\\Python25\\lib\\site-packages',
'C:\\Program Files\\Python25\\lib\\site-packages\\setuptools-0.6c9-
py2.5.egg-info']
>>>
===================================================

Both CSC and DIVISI are in the path. Think there is only one version
of Divisi installed.

Any issues with the path?? Any other things I can do??

Thanks.

Regards,
Hoe Wai
> > conceptnet-use...@googlegroups.com<conceptnet-users%2Bunsubscrib­e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/conceptnet-users?hl=en.- Hide quoted text -
>
> - Show quoted text -

Kenneth Arnold

unread,
Dec 3, 2009, 11:53:01 AM12/3/09
to conceptn...@googlegroups.com
Odd. Two ideas: (1) what is `import csc; print csc.__path__`?, (2) if you temporarily move the csc_utils egg out of site-packages, can you then import csc.divisi? What's csc.__path__ in that case?

-Ken


To unsubscribe from this group, send email to conceptnet-use...@googlegroups.com.

hoe wai

unread,
Dec 4, 2009, 4:02:54 AM12/4/09
to conceptnet-users
I try to do that:
>>> import csc; print csc.__path__
['C:\\Program Files\\Python25\\lib\\site-packages\\conceptnet-4.0rc1-
py2.5.egg\\csc', 'C:\\Program Files\\Python25\\lib\\site-packages\
\csc_utils-0.4.2-py2.5.egg\\csc']
>>> import csc.divisi

Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import csc.divisi
ImportError: No module named divisi

===========================================

I seems to have problem importing divisi..

For info, Divisi-0.6.8-py2.5-win32.egg file is at the same file
location (i.e. in site-packages dir) as other egg files such as
conceptnet-4.0rc1-py2.5.egg and csc_utils-0.4.2-py2.5.egg


Thanks.

Regards,
Hoe Wai
> > > >http://groups.google.com/group/conceptnet-users?hl=en.-Hide quoted
Reply all
Reply to author
Forward
0 new messages