My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Older

  • Sep 14, 2009
    issue 13 (Social Tags) commented on by s3x3y1   -   nkodner: I added you to the project members, so you can commit. Thank you for your work. ~ Jordan
    nkodner: I added you to the project members, so you can commit. Thank you for your work. ~ Jordan
  • Sep 14, 2009
    issue 5 ("request has missing or invalid parameters") commented on by wrboyce   -   Would appear if the key is wrong, that's the error OpenCalais will throw at you. Pretty crap that (on Reuter's part); might be worth a wiki entry.
    Would appear if the key is wrong, that's the error OpenCalais will throw at you. Pretty crap that (on Reuter's part); might be worth a wiki entry.
  • Sep 14, 2009
    issue 5 ("request has missing or invalid parameters") commented on by wrboyce   -   I am now getting this very same issue. It was working on Friday, and as far as I can tell I have no changed my usage of the module. The parameters (prior to urlencoding - little easier on the eyes) being sent are: {'content': 'Reuters could not write a decent API if their life depended on it.', 'licenseID': '<censored>', 'paramsXML': '\n<c:params xmlns:c="http://s.opencalais.com/1/pred/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <c:processingDirectives c:outputFormat="application/json" c:calculateRelevanceScore="true" c:omitOutputtingOriginalText="true" c:contentType="TEXT/RAW"> </c:processingDirectives> <c:userDirectives c:submitter="python-calais client v.1.4" c:allowSearch="false" c:allowDistribution="false"> </c:userDirectives> <c:externalMetadata > </c:externalMetadata> </c:params>\n'}
    I am now getting this very same issue. It was working on Friday, and as far as I can tell I have no changed my usage of the module. The parameters (prior to urlencoding - little easier on the eyes) being sent are: {'content': 'Reuters could not write a decent API if their life depended on it.', 'licenseID': '<censored>', 'paramsXML': '\n<c:params xmlns:c="http://s.opencalais.com/1/pred/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <c:processingDirectives c:outputFormat="application/json" c:calculateRelevanceScore="true" c:omitOutputtingOriginalText="true" c:contentType="TEXT/RAW"> </c:processingDirectives> <c:userDirectives c:submitter="python-calais client v.1.4" c:allowSearch="false" c:allowDistribution="false"> </c:userDirectives> <c:externalMetadata > </c:externalMetadata> </c:params>\n'}
  • Sep 10, 2009
    issue 13 (Social Tags) commented on by nkodner   -   i think i just got social tags working but am not sure how to contribute the code. first time on google projects. bear with me.
    i think i just got social tags working but am not sure how to contribute the code. first time on google projects. bear with me.
  • Aug 29, 2009
    issue 13 (Social Tags) reported by chessbopp   -   I can't find the social tags in your result. Do you plan to include these in the near future? Kind regards, Jacques Bopp
    I can't find the social tags in your result. Do you plan to include these in the near future? Kind regards, Jacques Bopp
  • Jun 23, 2009
    issue 12 (SyntaxError in calais.py) reported by rubinsztajn   -   I'm getting the following error when I import calais: Traceback (most recent call in last): File "<stdin>", line 1, in ? File "/home/rubinsta/lib/python/calais.py", line 23 class Calais(): ^ SyntaxError: invalid syntax Getting rid of the () after the class declarations will solve the problem.
    I'm getting the following error when I import calais: Traceback (most recent call in last): File "<stdin>", line 1, in ? File "/home/rubinsta/lib/python/calais.py", line 23 class Calais(): ^ SyntaxError: invalid syntax Getting rid of the () after the class declarations will solve the problem.
  • Apr 16, 2009
    r21 (Added Mark Soper's RDF extension) committed by s3x3y1   -   Added Mark Soper's RDF extension
    Added Mark Soper's RDF extension
  • Mar 20, 2009
    issue 11 (Add simplejson in the dependency to python-calais) changed by yann.malet   -   Fixed in r20 -- by removing import calais from the setup.py.
    Status: Fixed
    Owner: yann.malet
    Fixed in r20 -- by removing import calais from the setup.py.
    Status: Fixed
    Owner: yann.malet
  • Mar 20, 2009
    r20 (Remove import calais from the setup.py. This is not needed a...) committed by yann.malet   -   Remove import calais from the setup.py. This is not needed and cause an issue if simplejson is not yet installed
    Remove import calais from the setup.py. This is not needed and cause an issue if simplejson is not yet installed
  • Mar 18, 2009
    issue 11 (Add simplejson in the dependency to python-calais) reported by yann.malet   -   What steps will reproduce the problem? 1. install pyhton-calais without simplejson What is the expected output? What do you see instead? pip should be able to pull the need dependency. What version of the product are you using? On what operating system? latest trunk on linux Please provide any additional information below. Adding the line below in the setup.py should fix the issue. """ install_requires=['simplejson'], """ http://bazaar.launchpad.net/~populous/python-calais/with_setup/annotate/head%3A/setup.py
    What steps will reproduce the problem? 1. install pyhton-calais without simplejson What is the expected output? What do you see instead? pip should be able to pull the need dependency. What version of the product are you using? On what operating system? latest trunk on linux Please provide any additional information below. Adding the line below in the setup.py should fix the issue. """ install_requires=['simplejson'], """ http://bazaar.launchpad.net/~populous/python-calais/with_setup/annotate/head%3A/setup.py
  • Mar 01, 2009
    issue 8 (add a setup.py ) Status changed by s3x3y1   -   Applied. Thank you very much for your contribution!
    Status: Fixed
    Applied. Thank you very much for your contribution!
    Status: Fixed
  • Mar 01, 2009
    issue 10 (_get_params_XML must apply XML escapes to values) Status changed by s3x3y1   -   Applied. Thank you very much for your contribution!
    Status: Fixed
    Applied. Thank you very much for your contribution!
    Status: Fixed
  • Mar 01, 2009
    issue 9 (Unicode support ) Status changed by s3x3y1   -   Applied. Thank you very much for your contribution!
    Status: Fixed
    Applied. Thank you very much for your contribution!
    Status: Fixed
  • Mar 01, 2009
    r19 (Patched for unicode support) committed by s3x3y1   -   Patched for unicode support
    Patched for unicode support
  • Mar 01, 2009
    r18 (Patched for XML escapes and Unicode support) committed by s3x3y1   -   Patched for XML escapes and Unicode support
    Patched for XML escapes and Unicode support
  • Feb 28, 2009
    issue 10 (_get_params_XML must apply XML escapes to values) reported by joegermuska   -   What steps will reproduce the problem? 1. Use "analyze_url" with a parameterized URL, e.g. "http://www.nytimes.com/2009/03/01/magazine/01wwln-lede-t.html? _r=1&partner=rss&emc=rss&pagewanted=print" What is the expected output? What do you see instead? Expect to get a "calais.CalaisResponse" returned; instead, get a ValueError reporting that "paramsXML is invalid" What version of the product are you using? On what operating system? SVN Head (which matches the 1.4 download) Please provide any additional information below. Attached is a patch which applies xml.sax.saxutils.escape to the values in _get_params_XML. I haven't looked to see if there are other places where this should be applied.
    What steps will reproduce the problem? 1. Use "analyze_url" with a parameterized URL, e.g. "http://www.nytimes.com/2009/03/01/magazine/01wwln-lede-t.html? _r=1&partner=rss&emc=rss&pagewanted=print" What is the expected output? What do you see instead? Expect to get a "calais.CalaisResponse" returned; instead, get a ValueError reporting that "paramsXML is invalid" What version of the product are you using? On what operating system? SVN Head (which matches the 1.4 download) Please provide any additional information below. Attached is a patch which applies xml.sax.saxutils.escape to the values in _get_params_XML. I haven't looked to see if there are other places where this should be applied.
  • Feb 26, 2009
    issue 9 (Unicode support ) reported by yann.malet   -   What steps will reproduce the problem? 1. submit a text containing some unicode character urllib.urlencode does not support it so you need to encode content. What is the expected output? python-calais should be able to send to open calais none ascii character. Please provide any additional information below. I have created a branch of the project and implemented this. You can see a patch of there : http://bazaar.launchpad.net/~yml/python-calais/with_setup/revision/18 or if you prefer you can CO the code.
    What steps will reproduce the problem? 1. submit a text containing some unicode character urllib.urlencode does not support it so you need to encode content. What is the expected output? python-calais should be able to send to open calais none ascii character. Please provide any additional information below. I have created a branch of the project and implemented this. You can see a patch of there : http://bazaar.launchpad.net/~yml/python-calais/with_setup/revision/18 or if you prefer you can CO the code.
  • Feb 26, 2009
    issue 8 (add a setup.py ) commented on by timothee.peignier   -   Adding a patch against trunk to add a basic setup file, for adding other details to it see : http://docs.python.org/distutils/setupscript.html To add the package to pypi use (you might need to create an account at pypi before) : $ python setup.py sdist bdist_egg register upload
    Adding a patch against trunk to add a basic setup file, for adding other details to it see : http://docs.python.org/distutils/setupscript.html To add the package to pypi use (you might need to create an account at pypi before) : $ python setup.py sdist bdist_egg register upload
  • Feb 26, 2009
    issue 8 (add a setup.py ) commented on by timothee.peignier   -   Adding a patch against trunk to add a basic setup file, for adding other details to it see : http://docs.python.org/distutils/setupscript.html To add the package to pypi use (you might need to create an account at pypi before) : $ python setup.py sdist bdist_egg register upload
    Adding a patch against trunk to add a basic setup file, for adding other details to it see : http://docs.python.org/distutils/setupscript.html To add the package to pypi use (you might need to create an account at pypi before) : $ python setup.py sdist bdist_egg register upload
  • Feb 19, 2009
    issue 8 (add a setup.py ) reported by yann.malet   -   This is not a bug but rather an enhancement request of the installation process. Could you please add a setup.py in the repository in order to make the installation process easier. This will give you an easy way to register this library on Pypi (http://pypi.python.org/pypi) plus a very convenient one liner to install it with pip. Regards, --yml
    This is not a bug but rather an enhancement request of the installation process. Could you please add a setup.py in the repository in order to make the installation process easier. This will give you an easy way to register this library on Pypi (http://pypi.python.org/pypi) plus a very convenient one liner to install it with pip. Regards, --yml
  • Feb 14, 2009
    issue 7 (Missing fields in relations) reported by pointofsale.ca   -   What steps will reproduce the problem? 1. Activate opencalais on this url: http://www.free-press-release.com/news/200812/1229105028.html 2. See the Alliance relation which is extracted 3. What is the expected output? What do you see instead? Two companies in the Alliance relation are expected(company1, company2) Only a single 'company' field is extrated What version of the product are you using? On what operating system? Please provide any additional information below.
    What steps will reproduce the problem? 1. Activate opencalais on this url: http://www.free-press-release.com/news/200812/1229105028.html 2. See the Alliance relation which is extracted 3. What is the expected output? What do you see instead? Two companies in the Alliance relation are expected(company1, company2) Only a single 'company' field is extrated What version of the product are you using? On what operating system? Please provide any additional information below.
  • Jan 14, 2009
    issue 5 ("request has missing or invalid parameters") Status changed by s3x3y1   -   All is well that ends well :)
    Status: Fixed
    All is well that ends well :)
    Status: Fixed
  • Jan 14, 2009
    issue 5 ("request has missing or invalid parameters") commented on by peter.landry   -   Sorry to waste your time -- must have been a key error I didn't notice (even after confirming it!). I get a response now. It would be nice if the response from calais was more specific. Thanks!
    Sorry to waste your time -- must have been a key error I didn't notice (even after confirming it!). I get a response now. It would be nice if the response from calais was more specific. Thanks!
  • Jan 14, 2009
    issue 5 ("request has missing or invalid parameters") commented on by s3x3y1   -   Hello Peter, That's pretty strange. This error is returned by OpenCalais, which means that you do got _some_ communication with them, but I've no idea why you're getting the "invalid parameters" crap. Let's do some debugging. Insert a "print params" statement between lines 40 and 41 in calais.py (that's between the first and second line of the rest_POST() method of the Calais() class). Do a sample run, and let me know what that print statement spits out. Make sure you blank out your API KEY before you paste that result (it will be in the 'licenseID' parameter). ~ Jordan
    Hello Peter, That's pretty strange. This error is returned by OpenCalais, which means that you do got _some_ communication with them, but I've no idea why you're getting the "invalid parameters" crap. Let's do some debugging. Insert a "print params" statement between lines 40 and 41 in calais.py (that's between the first and second line of the rest_POST() method of the Calais() class). Do a sample run, and let me know what that print statement spits out. Make sure you blank out your API KEY before you paste that result (it will be in the 'licenseID' parameter). ~ Jordan
  • Jan 14, 2009
    issue 5 ("request has missing or invalid parameters") commented on by peter.landry   -   I am running the example from the HOWTO: from calais import Calais API_KEY = "my_key" calais = Calais(API_KEY, submitter="my app") result = calais.analyze("George Bush was the President of the United Statesof America until 2009. Barack Obama is the new President of the United States now.") I've confirmed the key is correct. I get a ValueError when I try to analyze: ValueError: Invalid request format - the request has missing or invalid parameters module body in app.py at line 6 function analyze in calais.py at line 81 function __init__ in calais.py at line 119
    I am running the example from the HOWTO: from calais import Calais API_KEY = "my_key" calais = Calais(API_KEY, submitter="my app") result = calais.analyze("George Bush was the President of the United Statesof America until 2009. Barack Obama is the new President of the United States now.") I've confirmed the key is correct. I get a ValueError when I try to analyze: ValueError: Invalid request format - the request has missing or invalid parameters module body in app.py at line 6 function analyze in calais.py at line 81 function __init__ in calais.py at line 119
  • Jan 14, 2009
    issue 5 ("request has missing or invalid parameters") commented on by s3x3y1   -   Please provide more details.
    Please provide more details.
  • Jan 14, 2009
    issue 2 (not compatible with 2.4) Status changed by s3x3y1   -  
    Status: Invalid
    Status: Invalid
  • Jan 13, 2009
    issue 5 ("request has missing or invalid parameters") reported by peter.landry   -   What steps will reproduce the problem? 1. Run the demo outlined in the readme Instead of getting a response, I receive the following: ValueError: Invalid request format - the request has missing or invalid parameters This is with v1.4 of python-calais, running python 2.5 on mac os x 10.5
    What steps will reproduce the problem? 1. Run the demo outlined in the readme Instead of getting a response, I receive the following: ValueError: Invalid request format - the request has missing or invalid parameters This is with v1.4 of python-calais, running python 2.5 on mac os x 10.5
  • Jan 13, 2009
    python-calais-1.4.tar.gz (python-calais v.1.4) file uploaded by s3x3y1   -  
    Labels: Featured Type-Source OpSys-All
    Labels: Featured Type-Source OpSys-All
  • Jan 13, 2009
    r17 (Fake user-agent) committed by s3x3y1   -   Fake user-agent
    Fake user-agent
  • Jan 12, 2009
    r16 (Added the analyze_file() method) committed by s3x3y1   -   Added the analyze_file() method
    Added the analyze_file() method
  • Jan 12, 2009
    OpenCalais (Description of the OpenCalais service.) Wiki page edited by s3x3y1
  • Jan 12, 2009
    OpenCalais (One-sentence summary of this page.) Wiki page added by s3x3y1
  • Jan 12, 2009
    python-calais-1.3.tar.gz (python-calais v.1.3) file uploaded by s3x3y1   -  
    Labels: Featured Type-Source OpSys-All
    Labels: Featured Type-Source OpSys-All
  • Jan 12, 2009
    r13 (Minor fixes and updated documentation) committed by s3x3y1   -   Minor fixes and updated documentation
    Minor fixes and updated documentation
  • Jan 11, 2009
    r12 (Implemented basic stripping of JS and CSS from HTML before s...) committed by s3x3y1   -   Implemented basic stripping of JS and CSS from HTML before submitting to Calais
    Implemented basic stripping of JS and CSS from HTML before submitting to Calais
  • Jan 11, 2009
    python-calais-1.2.tar.gz (python-calais v.1.2) file uploaded by s3x3y1   -  
    Labels: Featured Type-Source OpSys-All
    Labels: Featured Type-Source OpSys-All
  • Jan 11, 2009
    r11 (Some minor fixes) committed by s3x3y1   -   Some minor fixes
    Some minor fixes
  • Jan 10, 2009
    r10 (Fixed typo in README) committed by s3x3y1   -   Fixed typo in README
    Fixed typo in README
  • Jan 10, 2009
    python-calais-1.1.tar.gz (python-calais v1.1) file uploaded by s3x3y1   -  
    Labels: Featured Type-Source OpSys-All
    Labels: Featured Type-Source OpSys-All
  • Jan 10, 2009
    r9 (Factored out the responses in a separate CalaisResponse clas...) committed by s3x3y1   -   Factored out the responses in a separate CalaisResponse class.
    Factored out the responses in a separate CalaisResponse class.
  • Jan 09, 2009
    r8 (Set default option to prohibit Calais from returning the ori...) committed by s3x3y1   -   Set default option to prohibit Calais from returning the original text with each response.
    Set default option to prohibit Calais from returning the original text with each response.
  • Jan 09, 2009
    python-calais.tar.gz (Version 1.0) file uploaded by s3x3y1   -  
    Labels: Featured Type-Archive OpSys-All
    Labels: Featured Type-Archive OpSys-All
  • Jan 09, 2009
    r7 (Complete rewrite. Bumped version to 1.0) committed by s3x3y1   -   Complete rewrite. Bumped version to 1.0
    Complete rewrite. Bumped version to 1.0
  • Sep 21, 2008
    issue 4 (NameError: name 'Calais' is not defined) changed by dorzey   -   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")
    Status: Invalid
    Owner: dorzey
    Cc: s3x3y1
    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")
    Status: Invalid
    Owner: dorzey
    Cc: s3x3y1
  • Aug 08, 2008
    issue 4 (NameError: name 'Calais' is not defined) reported by hanitainment   -   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.
    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.
 
Hosted by Google Code