On Fri, Jul 18, 2014 at 6:33 PM, Alex Kleider wrote:
> Is there a function that can return the full path name when provided with
> something along the lines of
> "../../myfile"?
>
The OS module is great at this. Here's an example:
import os
MYFILE= '../../myfile'
print "MYFILE", MYFILE
print
On 07/18/2014 11:04 PM, Danny Yoo wrote:
> Yes, this unfortunately looks like the facebook-sdk folks are using
> something that isn't in Python 2.6. They say that their library
> should be compatible with 2.6, according to:
Albert-Jan and Danny, thank you very much. That's a bug I wouldn't have
f
On 19/07/14 02:33, Alex Kleider wrote:
Just to be able to glean the current working directory would suffice.
os.getcwd()
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
___
Tut
On 2014-07-18 18:46, Danny Yoo wrote:
On Fri, Jul 18, 2014 at 6:33 PM, Alex Kleider
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
On Fri, Jul 18, 2014 at 6:33 PM, Alex Kleider 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 had to but
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
> 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
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 yo
>>>
>>> Now, there's another error message:
>>>
>>> (facebook)[chris@cd facebook]$ ./fb1.py
>>> Traceback (most recent call last):
>>> File "./fb1.py", line 6, in
>>> import facebook
>>> File
>>> "/home/chris/software/facebook/lib/python2.6/site-packages/facebook.py",
>>> line 811
>>>
On Fri, Jul 18, 2014 at 1:05 PM, Santosh Kumar wrote:
> its a curl command caliing a http function.
>
> for example:
>
> curl : GET http:///app/somefunction
Hi Santosh,
Ok, good. This is some of the information that we wanted to know.
So you are performing HTTP requests to get content, and yo
its a curl command caliing a http function.
for example:
curl : GET http:///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:
1) what are the different wa
--
On Fri, Jul 18, 2014 7:47 PM CEST Marc Tompkins wrote:
>On Fri, Jul 18, 2014 at 9:29 AM, Chris 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
On Fri, Jul 18, 2014 at 9:29 AM, Chris 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 message
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 rec
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
from facebook import Facebook
ImportError: No module named facebook
faceboo
15 matches
Mail list logo