| CarlosEDP | Chairos... its not what i need... I just need a way to make my class has all file() methods... except 2... |
| reportingsjr | how come I keep getting this error: AttributeError: 'tuple' object has not attribute scheme when I give it all of the right params ? |
| deltab | reportingsjr: one of your variables isn't what you think it is? |
| reportingsjr | hmm, but it prints out correctly |
| TFKyle | reportingsjr: what are you doing? |
| reportingsjr | url = urljoin(next_url,soup('a')[j]['href']) scheme = urlparse(url) that I dont see anything wrong with it |
| deltab | what is the secon dline meant to do? |
| reportingsjr | get the http part |
| TFKyle | hrm, where's that exception from btw? sounds like a typo to me |
| reportingsjr | its splits the url into scheme (http, https, etc..) and it also has the port of the site if scheme.scheme == "http": its from that line |
| TFKyle | er, weird |
| deltab | "scheme.scheme"? |
| reportingsjr | I got lazy on writing the variable names heh |
| deltab | you're calling a tuple of the pieces of the url 'scheme' |
| TFKyle | reportingsjr: did you copy and paste that or just type it in? (should be "has no attribute scheme" I think |
| reportingsjr | thats what urlparse() does typed it in |
| TFKyle | (and quotes around 'scheme' as well) |
| reportingsjr | AttributeError: 'tuple' object has no attribute 'scheme' there |
| deltab | reportingsjr: you should either unpack the result to multiple variables (called scheme, etc.) or give the tuple a better name |
| TFKyle | reportingsjr: "Changed in version 2.5: Added attributes to return value." so if you're using < 2.5 you can't use .scheme and stuff on it I imagine |
| reportingsjr | damn |
| TFKyle | good catch though |
| reportingsjr | thats what I'm using how can I upgrade? I mean I have 2.5 on my machine just I guess I overwrote it |
| deltab | run python2.5 |
| TFKyle | depends on what OS you're running |
| reportingsjr | deltab: where do I type that? tfkyle: windows xp |