| jonesy | can someone point me to a download for the canonical RDF module for python? |
| tkooda | hrmm, no import mylib fails |
| Tennessee | jonesy: FeedParser |
| vdrab | arubin: http://docs.sun.com/source/806-3568/ncg_goldberg.html |
| action | jonesy looks |
| jonesy | looks |
| tkooda | import mylib fails with "ImportError: cannot import name my_mysql_connect" my __init__.py must be wrong or something?? |
| Leeds | tkooda: what is mylib? |
| tkooda | the arbitrary name of my lib I'm trying to write+install |
| Leeds | your own private mysql wrapper? |
| Tennessee | tkooda: Okay, you've just made your life simpler. Try renaming my_mysql_connect in case there's some genuine problem. Call it greenEggsAndHam and see what happens |
| tkooda | Leeds, more or less yes |
| jonesy | dammit. I'm so fscking tired of dealiing with python. |
| tkooda | Leeds, looks up un/pw/host/db info and connects |
| Leeds | jonesy: chill |
| tkooda | Tennessee, did. tkooda_mysql_connect gives same |
| vdrab | arubin, or rather; http://docs.python.org/tut/node16.html |
| Leeds | tkooda: your code is broken - it's nothing to do with finding the module |
| Tennessee | tkooda: Okay. Do you have __init__.py in existence? |
| tkooda | Tennessee, yup |
| Tennessee | tkooda: Write an empty method in the module and see if that fails. Is my_mysql_connect the only thing in there that's failing? |
| jonesy | where can I download the feedreader module? |
| tkooda | Tennessee, my_mysql_connect is the only thing that's in there. |
| gzl | feedparser.org |
| tkooda | Tennessee, will test empty method |
| jonesy | thanks. |
| tkooda | Tennessee, crap. gotta go afk. thanks for your help so far thou. |
| arubin | vdrab: I actually do understand the floating point issue, I had just never seen problems with subtraction before |
| jonesy | so if I install feedparser, then a tool with an "import RDF" line will work? |
| arubin | vdrab: at least not in other languages |
| Tennessee | jonesy: import feedparser will work. Feedparser will read and write RDF files. If you have a tool already which has 'import RDF' in it, it may not be using feedparser. Feedparser is the most common feed reader for RDF and a variety of other formats. |
| jonesy | but I'm not reading a feed. if a tool just says "import RDF", how is anyone supposed to know *which* RDF that is - is there a way to know? |
| gzl | you could run python -v and then run the import. it'll tell you where it comes from. |
| jonesy | er - that's if I already have the module? |
| gzl | yes |
| jonesy | right. |
| gzl | ultimately if a file just says 'import foo' there's no way of disambiguating between two modules that are named that |