[Tutor] Using module Facebook

2014-07-18 Thread Chris
Dear All, I'm trying to use the facebook-sdk for python [1]. I'm asking here and not on the SDK groups, because I think this is a basic beginner's question, not directly related to the framework. I installed facebook-sdk: virtualenv . source bin/activate pip install

Re: [Tutor] R: Tutor Digest, Vol 125, Issue 49

2014-07-18 Thread Dan Janzen
DISCLAIMER* I have deliberately not read any of the other replies to this problem so my answer may be totally redundant! (but here it is anyway...) One of the first issues that had to be addressed is the fact that your CSV file is probably not in the format you assume it is. Every

Re: [Tutor] Using module Facebook

2014-07-18 Thread Alan Gauld
On 18/07/14 04:54, Chris wrote: but I'm getting the following error: (facebook)[chris@cd facebook]$ ./fb1.py Traceback (most recent call last): File ./fb1.py, line 3, in module from facebook import Facebook ImportError: No module named facebook

Re: [Tutor] Using module Facebook

2014-07-18 Thread Chris
On 07/18/2014 09:44 AM, Alan Gauld wrote: Are you sure thats the version of Python you are running in the virtualenv? I've modified the first line to #!./bin/python (instead of #!/usr/bin/python). Now, there's another error message: (facebook)[chris@cd facebook]$ ./fb1.py Traceback (most

Re: [Tutor] Using module Facebook

2014-07-18 Thread Marc Tompkins
On Fri, Jul 18, 2014 at 9:29 AM, Chris ch2...@arcor.de wrote: On 07/18/2014 09:44 AM, Alan Gauld wrote: Are you sure thats the version of Python you are running in the virtualenv? I've modified the first line to #!./bin/python (instead of #!/usr/bin/python). Now, there's another error

Re: [Tutor] Using module Facebook

2014-07-18 Thread Albert-Jan Roskam
-- On Fri, Jul 18, 2014 7:47 PM CEST Marc Tompkins wrote: On Fri, Jul 18, 2014 at 9:29 AM, Chris ch2...@arcor.de wrote: On 07/18/2014 09:44 AM, Alan Gauld wrote: Are you sure thats the version of Python you are running in the virtualenv? I've modified the

Re: [Tutor] Modules to work with curl.

2014-07-18 Thread Santosh Kumar
its a curl command caliing a http function. for example: curl username:password xml GET http://somelink/app/somefunction so i have to use this to create a wrapper which can scale better . While i use the subprocess it taking some time which i feel as bit slow. so here are the questions again:

Re: [Tutor] Modules to work with curl.

2014-07-18 Thread Danny Yoo
On Fri, Jul 18, 2014 at 1:05 PM, Santosh Kumar rhce@gmail.com wrote: its a curl command caliing a http function. for example: curl username:password xml GET http://somelink/app/somefunction Hi Santosh, Ok, good. This is some of the information that we wanted to know. So you are

Re: [Tutor] Using module Facebook

2014-07-18 Thread Danny Yoo
Now, there's another error message: (facebook)[chris@cd facebook]$ ./fb1.py Traceback (most recent call last): File ./fb1.py, line 6, in module import facebook File /home/chris/software/facebook/lib/python2.6/site-packages/facebook.py, line 811 args = {k: v for k, v in

Re: [Tutor] Using module Facebook

2014-07-18 Thread Danny Yoo
Hi Chris, Wait. There is one more possibility that I didn't account for: it may be that somehow you haven't installed facebook-sdk, but you may have installed some other package that is providing a facebook.py library. I've was looking more closely at the source code to try to file a bug for

Re: [Tutor] Using module Facebook

2014-07-18 Thread Danny Yoo
I've was looking more closely at the source code to try to file a bug for you: https://github.com/pythonforfacebook/facebook-sdk/tree/master/facebook but when I look again at the reported error message: # Traceback (most

[Tutor] how to expand ../../myfile

2014-07-18 Thread Alex Kleider
Is there a function that can return the full path name when provided with something along the lines of ../../myfile? Just to be able to glean the current working directory would suffice. (I could use a shell command if I had to but was hoping it could be done all within Python. (python 2.7

Re: [Tutor] how to expand ../../myfile

2014-07-18 Thread Danny Yoo
On Fri, Jul 18, 2014 at 6:33 PM, Alex Kleider aklei...@sonic.net wrote: Is there a function that can return the full path name when provided with something along the lines of ../../myfile? Just to be able to glean the current working directory would suffice. (I could use a shell command if I

Re: [Tutor] how to expand ../../myfile

2014-07-18 Thread Alex Kleider
On 2014-07-18 18:46, Danny Yoo wrote: On Fri, Jul 18, 2014 at 6:33 PM, Alex Kleider aklei...@sonic.net wrote: Is there a function that can return the full path name when provided with something along the lines of ../../myfile? Just to be able to glean the current working directory would