menorki / python-calais

Automatically exported from code.google.com/p/python-calais
0 stars 0 forks source link

NameError: name 'Calais' is not defined #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. >>>import calais
2. >>>calais=Calais(submitter="Test App", api_key="apikeyhere")
3.

What is the expected output? What do you see instead?
The expected output is no error so I can use the calais api.

A NameError is displayed instead as follows:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'Calais' is not defined

What version of the product are you using? On what operating system?
I downloaded the most current version from SVN via the checkout command as
listed on this project's Source page.

The OS is Ubuntu 7.10 RDFlib is v 2.3.1 (2.4.0 would not install producing
errors during setup).

Please provide any additional information below.
I am completely stumped. Any help would be greatly appreciated. I am a
python novice. Thanks.

Original issue reported on code.google.com by hanitain...@gmail.com on 8 Aug 2008 at 7:35

GoogleCodeExporter commented 9 years ago
The instructions on the project homepage are a little misleading as they assume 
your
typing the code in the calais.py.  It appears that you're not doing this, so 
your
code should read:

import calais
calais= calais.Calais(submitter="Test App", api_key="apikeyhere")

Original comment by dor...@gmail.com on 22 Sep 2008 at 12:05