Installing ConcepNet 4.0b11

Asked by Charbel

Good Morning,
Let me start by thanking you for the great work.
I was trying to install the latest version of ConceptNet
so I downloaded and imported the Postgres DB from http://conceptnet.media.mit.edu/dist/ConceptNet-2009-08-26.psql.gz.
then installed concepnet using
#easy_install conceptnet
Searching for conceptnet
Best match: ConceptNet 4.0b11
Processing ConceptNet-4.0b11-py2.6.egg
...

But when I try to test it using the following code:
  from csc.conceptnet4.models import Concept
  from csc.nl import get_nl
  en_nl = get_nl('en')
  en_nl.lemma_split("you can sit on a couch")

I get the following error
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.6/site-packages/ConceptNet-4.0b11-py2.6.egg/csc/nl/euro.py", line 321, in lemma_split
    words = [self.autocorrect.get(word, word) for word in words if word]
  File "/usr/local/lib/python2.6/site-packages/ConceptNet-4.0b11-py2.6.egg/csc/nl/euro.py", line 24, in __get__
    result = instance.__dict__[self.__name__] = self.func(instance)
  File "/usr/local/lib/python2.6/site-packages/ConceptNet-4.0b11-py2.6.egg/csc/nl/euro.py", line 88, in autocorrect
    family='autocorrect'):
  File "/usr/local/lib/python2.6/site-packages/django/db/models/query.py", line 106, in _result_iter
    self._fill_cache()
  File "/usr/local/lib/python2.6/site-packages/django/db/models/query.py", line 692, in _fill_cache
    self._result_cache.append(self._iter.next())
  File "/usr/local/lib/python2.6/site-packages/django/db/models/query.py", line 238, in iterator
    for row in self.query.results_iter():
  File "/usr/local/lib/python2.6/site-packages/django/db/models/sql/query.py", line 287, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/usr/local/lib/python2.6/site-packages/django/db/models/sql/query.py", line 2369, in execute_sql
    cursor.execute(sql, params)
psycopg2.ProgrammingError: relation "nl_autoreplacerule" does not exist
LINE 1: ..."match", "nl_autoreplacerule"."replace_with" FROM "nl_autore...

The host machine is a RedHat CentOS 5.2 32 bit.

Question information

Language:
English Edit question
Status:
Answered
For:
ConceptNet Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Charbel (charbel-k) said :
#1

I just downgraded to b8 and the code worked.

Thanks,
Charbel

Revision history for this message
Ken Arnold (kenneth-arnold) said :
#2

We made some database changes between b8 and b10, and we haven't updated the
Postgres dumps. (Note to selves: we should check on those.)

But this time, instead of raw database hacking, we actually wrote
"migrations", which are code for making the changes to the database
structure. You can run them yourself if you install South (easy_install
south works). Then run `./manage.py migrate` to apply the migrations.

I'm actually not sure if the database dump you have includes the metadata
that tells South which migrations have been applied, though. The b8->b10
changes were just to make it easier for us to provide a reliable dump in
SQLite format, so if the Postgres dump works for you, there's no harm in
staying with b8 for now.

btw, we're aiming to put out release candidates for a stable release of
ConceptNet 4.0 sometime next month.

-Ken

On Fri, Oct 2, 2009 at 4:01 AM, Charbel <<email address hidden>
> wrote:

> Question #84508 on ConceptNet changed:
> https://answers.launchpad.net/conceptnet/+question/84508
>
> Charbel gave more information on the question:
> I just downgraded to b8 and the code worked.
>
> Thanks,
> Charbel
>
> --
> You received this question notification because you are a member of
> Commonsense Computing, which is an answer contact for ConceptNet.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~commonsense<https://launchpad.net/%7Ecommonsense>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~commonsense<https://launchpad.net/%7Ecommonsense>
> More help : https://help.launchpad.net/ListHelp
>

Can you help with this problem?

Provide an answer of your own, or ask Charbel for more information if necessary.

To post a message you must log in.