Help regarding python facepy library

2013-09-16 Thread malhar vora
Hello all, I am using python facepy library to fetch data from facebook. It was running fine. The problem now is I just changed my system and now getting error that says "certificate verify failed". Here my code and exception log both are given below. The library that I have used is https:

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Antoon Pardon
Op 16-09-13 03:52, Steven D'Aprano schreef: > Hi Nikos, > > I'm now going to put as much care and attention into my answer as you put > into your question. > > Have uy tryed imprting os first? u nmeed to do > > improt os > > first or it wont work., > > > When you give evidence of caring abo

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Chris Angelico
On Mon, Sep 16, 2013 at 5:29 PM, Antoon Pardon wrote: > Op 16-09-13 03:52, Steven D'Aprano schreef: >> Hi Nikos, >> >> I'm now going to put as much care and attention into my answer as you put >> into your question. >> >> Have uy tryed imprting os first? u nmeed to do >> >> improt os >> >> first o

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Chris Angelico
On Mon, Sep 16, 2013 at 5:29 PM, Antoon Pardon wrote: > instead of showing us all that you > too can contribute in a careless manner? Also: It takes effort to contribute usefully in a way that looks careless :) It's not saving effort, it's making a point. ChrisA -- https://mail.python.org/mailm

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 10:29 πμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 03:52, Steven D'Aprano schreef: Hi Nikos, I'm now going to put as much care and attention into my answer as you put into your question. Have uy tryed imprting os first? u nmeed to do improt os first or it wont work., When you g

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Antoon Pardon
Op 16-09-13 09:44, Chris Angelico schreef: > On Mon, Sep 16, 2013 at 5:29 PM, Antoon Pardon > wrote: >> Op 16-09-13 03:52, Steven D'Aprano schreef: >>> Hi Nikos, >>> >>> I'm now going to put as much care and attention into my answer as you put >>> into your question. >>> >>> Have uy tryed imprting

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Chris Angelico
On Mon, Sep 16, 2013 at 6:07 PM, Antoon Pardon wrote: >> Also, how will other people learn that they should put some effort >> into their questions? If people are only ever corrected privately, >> nobody will learn from anyone else. Orders of magnitude more people >> will read this than just the O

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Antoon Pardon
Op 16-09-13 09:46, Chris Angelico schreef: > On Mon, Sep 16, 2013 at 5:29 PM, Antoon Pardon > wrote: >> instead of showing us all that you >> too can contribute in a careless manner? > > Also: It takes effort to contribute usefully in a way that looks > careless :) It's not saving effort, it's ma

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Chris Angelico
On Mon, Sep 16, 2013 at 6:12 PM, Antoon Pardon wrote: > Op 16-09-13 09:46, Chris Angelico schreef: >> On Mon, Sep 16, 2013 at 5:29 PM, Antoon Pardon >> wrote: >>> instead of showing us all that you >>> too can contribute in a careless manner? >> >> Also: It takes effort to contribute usefully in

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Antoon Pardon
Op 16-09-13 10:19, Chris Angelico schreef: > On Mon, Sep 16, 2013 at 6:12 PM, Antoon Pardon > wrote: >> Op 16-09-13 09:46, Chris Angelico schreef: >>> On Mon, Sep 16, 2013 at 5:29 PM, Antoon Pardon >>> wrote: instead of showing us all that you too can contribute in a careless manner? >>

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Chris Angelico
On Mon, Sep 16, 2013 at 6:43 PM, Antoon Pardon wrote: > Op 16-09-13 10:19, Chris Angelico schreef: >> It's a contribution that SAYS that it looks carelessly written. I >> think most people here are intelligent enough to know that that's >> different from actual carelessness. > > The question is, s

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Antoon Pardon
Op 16-09-13 10:48, Chris Angelico schreef: > On Mon, Sep 16, 2013 at 6:43 PM, Antoon Pardon > wrote: >> Op 16-09-13 10:19, Chris Angelico schreef: >>> It's a contribution that SAYS that it looks carelessly written. I >>> think most people here are intelligent enough to know that that's >>> differe

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 12:40 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 10:48, Chris Angelico schreef: On Mon, Sep 16, 2013 at 6:43 PM, Antoon Pardon wrote: Op 16-09-13 10:19, Chris Angelico schreef: It's a contribution that SAYS that it looks carelessly written. I think most people here are intellige

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Joost Molenaar
> Look, > > i want this to stop. > Open your own thread and discuss this if you like. > This is a thread i opened for a specific question and all i see its > irrelevant answers. Hi Ferrous, The problem is not in your Python code. You can debug it from the command line by typing the 'echo ... | ma

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Denis McMahon
On Mon, 16 Sep 2013 12:06:06 +0200, Joost Molenaar wrote: > It's most likely an issue in your local SMTP server's configuration. I'm not convinced about that. All the evidence is that OPs local mta delivers the message to google. I think the issue is that google are deciding the message is junk

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 2:21 μμ, ο/η Denis McMahon έγραψε: On Mon, 16 Sep 2013 12:06:06 +0200, Joost Molenaar wrote: It's most likely an issue in your local SMTP server's configuration. I'm not convinced about that. All the evidence is that OPs local mta delivers the message to google. I think the iss

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Heiko Wundram
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:21, schrieb Denis McMahon: > If he's trying to prove communication works, he might be better off > using a message subject of "test" and a message body of "this is a > test message". Generally, he might be best off if he didn't use os

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Heiko Wundram
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: > What i want now is to be able to alter the hostname of my server so > the mails wont indicate that they derive from superhost.gr as they > aare now sen in the mail headers. There is no way to do that, as

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: What i want now is to be able to alter the hostname of my server so the mails wont indicate that they derive from superhost.gr as they aare now sen in the

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Heiko Wundram
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 14:11, schrieb Ferrous Cranus: > But even so, if we alter for example the hostname of our server to > a different name then wouldn't Google use that to identify the > server thus protecting the real identity(hostname that is) of the > ser

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Antoon Pardon
Op 16-09-13 14:11, Ferrous Cranus schreef: > Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Am 16.09.2013 13:37, schrieb Ferrous Cranus: >>> What i want now is to be able to alter the hostname of my server so >>> the mails wont indicate t

Is %z broken for return values of time.gmtime()?

2013-09-16 Thread Michael Schwarz
I’m wondering whether this is expected: Python 3.3.2 (default, May 21 2013, 11:50:47) [GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import time >>> time.strftime("%F %T %z", time.gmtime(40

How is this list comprehension evaluated?

2013-09-16 Thread Arturo B
Hello, I'm making Python mini-projects and now I'm making a Latin Square (Latin Square: http://en.wikipedia.org/wiki/Latin_square) So, I started watching example code and I found this question on Stackoverflow: http://stackoverflow.com/questions/5313900/generating-cyclic-permutations-reduced-la

Re: How is this list comprehension evaluated?

2013-09-16 Thread Antoon Pardon
Op 16-09-13 15:43, Arturo B schreef: > Hello, I'm making Python mini-projects and now I'm making a Latin Square > > (Latin Square: http://en.wikipedia.org/wiki/Latin_square) > > So, I started watching example code and I found this question on > Stackoverflow: > > http://stackoverflow.com/quest

Re: import problem

2013-09-16 Thread Dave Angel
On 16/9/2013 00:05, Mohsen Pahlevanzadeh wrote: > thank you, you gave me "how to get fish" instead of "fish", it's very > better. I'd suggest you make a diagram showing each file and indicate what files it imports by an arrow. If any arrows form a circle, you (may) have recursive imports. You s

Re: How is this list comprehension evaluated?

2013-09-16 Thread Michael Torrie
On 09/16/2013 07:43 AM, Arturo B wrote: > It uses a list comprenhension to generate the Latin Square, I'm am a newbie > to Python, and I've tried to figure out how this is evaluated: > > a = [1, 2, 3, 4] > n = len(a) > [[a[i - j] for i in range(n)] for j in range(n)] > > I don't und

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 14:11, Ferrous Cranus schreef: Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: What i want now is to be able to alter the hostname of my s

Re: Confessions of a terrible programmer

2013-09-16 Thread rusi
On Friday, September 6, 2013 10:26:07 PM UTC+5:30, Steven D'Aprano wrote: > Not specifically about Python, but still relevant: > > http://blog.kickin-the-darkness.com/2007/09/confessions-of-terrible-programmer.html Nice post -- thanks! Prompted this from me http://blog.languager.org/2013/09/poor

statsmodels.api

2013-09-16 Thread Davide Dalmasso
Hi, I intalled an executable version of statsmodels library for Windows 32-bit. When I import it in my Python Shell no problem occurs buy when I write: import statsmodels.api as sm the following error arises: Traceback (most recent call last): File "", line 1, in import statsmodels.api

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 14:11, Ferrous Cranus schreef: Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: What i want now is to be able to alter the hostname of my s

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 7:15 μμ, ο/η Ferrous Cranus έγραψε: Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 14:11, Ferrous Cranus schreef: Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: What i

Weird ttk behaviour

2013-09-16 Thread Rotwang
Hi all, I've just started trying to learn how to use ttk, and I've discovered something that I don't understand. I'm using Python 3.3.0 in Linux Mint 15. Suppose I create the following module: # begin tkderp.py import tkinter as tk import tkinter.messagebox as _ from tkinter import ttk from

Re: statsmodels.api

2013-09-16 Thread Ethan Furman
On 09/16/2013 08:37 AM, Davide Dalmasso wrote: Hi, I intalled an executable version of statsmodels library for Windows 32-bit. When I import it in my Python Shell no problem occurs buy when I write: import statsmodels.api as sm the following error arises: Traceback (most recent call last):

Re: statsmodels.api

2013-09-16 Thread John Gordon
In Davide Dalmasso writes: > Hi, > I intalled an executable version of statsmodels library for Windows 32-bit. > When I import it in my Python Shell no problem occurs buy when I write: > import statsmodels.api as sm > the following error arises: > Traceback (most recent call last): > File

Re: Is %z broken for return values of time.gmtime()?

2013-09-16 Thread random832
On Mon, Sep 16, 2013, at 9:15, Michael Schwarz wrote: > According to the documentation of time.gmtime(), it returns a struct_time > in UTC, but %z is replaced by +0100, which is the UTC offset of my OS’s > time zone without DST, but DST is currently in effect here (but was not > at the timestamp pa

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread William Ray Wing
On Sep 16, 2013, at 12:15 PM, Ferrous Cranus wrote: > Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: >> Op 16-09-13 14:11, Ferrous Cranus schreef: >>> Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schri

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Denis McMahon
On Mon, 16 Sep 2013 19:23:15 +0300, Ferrous Cranus wrote: >> Τhis si the headers i would like to delete because i dont want them to >> be used when sending mail: >> X-AntiAbuse: ... > and this too: > Received: .. This is probably your mta, not python, see your mta config. OFF TOPIC IN

Re: Weird ttk behaviour

2013-09-16 Thread Serhiy Storchaka
16.09.13 19:28, Rotwang написав(ла): On Windows 7 (sys.version is '3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit (AMD64)]') there's no problem; f() works fine in the first place. Does anybody know what's going on? What _root.wantobjects() returns? -- https://mail.pytho

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Denis McMahon
On Mon, 16 Sep 2013 18:02:20 +0300, Ferrous Cranus wrote: > We need to try it to see if it will work, or perhaps we can alter both > the hostname and ip address variables on the server to some other values > so that google will use them too. > > It will not detect the real hostname or the real ip

Re: Is %z broken for return values of time.gmtime()?

2013-09-16 Thread Michael Schwarz
On 2013-W38-1, at 19:56, random...@fastmail.us wrote: > On Mon, Sep 16, 2013, at 9:15, Michael Schwarz wrote: >> According to the documentation of time.gmtime(), it returns a struct_time >> in UTC, but %z is replaced by +0100, which is the UTC offset of my OS’s >> time zone without DST, but DST is

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Joel Goldstick
On Mon, Sep 16, 2013 at 3:09 PM, Denis McMahon wrote: > On Mon, 16 Sep 2013 18:02:20 +0300, Ferrous Cranus wrote: > > > We need to try it to see if it will work, or perhaps we can alter both > > the hostname and ip address variables on the server to some other values > > so that google will use th

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 8:53 μμ, ο/η William Ray Wing έγραψε: On Sep 16, 2013, at 12:15 PM, Ferrous Cranus wrote: Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 14:11, Ferrous Cranus schreef: Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SH

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 10:09 μμ, ο/η Denis McMahon έγραψε: On Mon, 16 Sep 2013 18:02:20 +0300, Ferrous Cranus wrote: We need to try it to see if it will work, or perhaps we can alter both the hostname and ip address variables on the server to some other values so that google will use them too. It will

New on python

2013-09-16 Thread Ibrahima Barry
hello everyone, I am a beginner in python programming language, so I need help with the basics, the synthaxes, functions, please help me -- https://mail.python.org/mailman/listinfo/python-list

Re: New on python

2013-09-16 Thread Chris Angelico
On Tue, Sep 17, 2013 at 8:27 AM, Ibrahima Barry wrote: > hello everyone, I am a beginner in python programming language, so I need > help with the basics, the synthaxes, functions, please help me Welcome! Python tutorials can be found all over the internet. Here's one good one: http://docs.pyth

Re: Weird ttk behaviour

2013-09-16 Thread Chris Angelico
On Tue, Sep 17, 2013 at 2:28 AM, Rotwang wrote: > If I then uncomment those two lines, reload the module and call f() again > (by entering tkderp.reload(tkderp).f()), the function works like it was > supposed to in the first place: two warnings, no exceptions. I can reload > the module as many tim

Re: New on python

2013-09-16 Thread Ben Finney
Ibrahima Barry writes: > hello everyone, I am a beginner in python programming language Welcome, and congratulations on finding Python. > so I need help with the basics, the synthaxes, functions, please help > me At the Python website you can find a page linking to other documentation http://p

How do I calculate a mean with python?

2013-09-16 Thread William Bryant
Hey I am new to python so go easy, but I wanted to know how to make a program that calculates the maen. List = [15, 6, 6, 7, 8, 9, 40] def mean(): global themean, thesum for i in List: thecount = List.count(i) thesum = sum(List) themean = thesum / thecount Why doesn't

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Steven D'Aprano
On Mon, 16 Sep 2013 18:02:20 +0300, Ferrous Cranus wrote: > We need to try it to see if it will work, or perhaps we can alter both > the hostname and ip address variables on the server to some other values > so that google will use them too. > > It will not detect the real hostname or the real ip

Re: How do I calculate a mean with python?

2013-09-16 Thread Jugurtha Hadjar
On 09/17/2013 12:33 AM, William Bryant wrote: Hey I am new to python so go easy, but I wanted to know how to make a program that calculates the maen. List = [15, 6, 6, 7, 8, 9, 40] def mean(): global themean, thesum for i in List: thecount = List.count(i) thesum = su

Re: How do I calculate a mean with python?

2013-09-16 Thread Steven D'Aprano
On Mon, 16 Sep 2013 16:33:35 -0700, William Bryant wrote: > Hey I am new to python so go easy, but I wanted to know how to make a > program that calculates the maen. > > List = [15, 6, 6, 7, 8, 9, 40] > def mean(): > global themean, thesum > for i in List: > thecount = List.count(

Re: How do I calculate a mean with python?

2013-09-16 Thread MRAB
On 17/09/2013 00:33, William Bryant wrote: Hey I am new to python so go easy, but I wanted to know how to make a program that calculates the maen. List = [15, 6, 6, 7, 8, 9, 40] def mean(): global themean, thesum You're iterating through every number in the list... for i in List:

Re: How is this list comprehension evaluated?

2013-09-16 Thread Roy Smith
In article , Arturo B wrote: > Hello, I'm making Python mini-projects and now I'm making a Latin Square > > (Latin Square: http://en.wikipedia.org/wiki/Latin_square) > > So, I started watching example code and I found this question on > Stackoverflow: > > http://stackoverflow.com/questions/

Re: How do I calculate a mean with python?

2013-09-16 Thread Jugurtha Hadjar
On 09/17/2013 12:33 AM, William Bryant wrote: Hey I am new to python so go easy, but I wanted to know how to make a program that calculates the maen. List = [15, 6, 6, 7, 8, 9, 40] def mean(): global themean, thesum for i in List: thecount = List.count(i) thesum = s

Re: How do I calculate a mean with python?

2013-09-16 Thread Cameron Simpson
On 16Sep2013 16:33, William Bryant wrote: | Hey I am new to python so go easy, but I wanted to know how to make a program that calculates the maen. | | List = [15, 6, 6, 7, 8, 9, 40] | def mean(): | global themean, thesum | for i in List: | thecount = List.count(i) | thes

Re: How do I calculate a mean with python?

2013-09-16 Thread Dave Angel
On 16/9/2013 19:33, William Bryant wrote: > Hey I am new to python so go easy, but I wanted to know how to make a program > that calculates the maen. > > List = [15, 6, 6, 7, 8, 9, 40] > def mean(): > global themean, thesum > for i in List: > thecount = List.count(i) > the

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Tim Chase
On 2013-09-17 00:15, Ferrous Cranus wrote: >>> X-AntiAbuse: This header was added to track abuse, please include >>> it with any abuse report X-AntiAbuse: Primary Hostname - >>> my.superhost.gr >>> X-AntiAbuse: Original Domain - superhost.gr >>> X-AntiAbuse: Originator/Caller UID/GID - [500 501] /

Qt connect and first connect or unicode

2013-09-16 Thread Mohsen Pahlevanzadeh
Dear all, Unfortunately, i confused and need help... the following code is: ### ##CheckBox: QtCore.QObject.connect(self.checkBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), lambda: self.materialsInstance.setFilterDict("C",self,"name",self.lineEdi

Re: Qt connect and first connect or unicode

2013-09-16 Thread Mohsen Pahlevanzadeh
On Tue, 2013-09-17 at 08:42 +0430, Mohsen Pahlevanzadeh wrote: > Dear all, > > Unfortunately, i confused and need help... the following code is: > ### > ##CheckBox: > QtCore.QObject.connect(self.checkBox, > QtCore.SIGNAL(_fromUtf8("toggled(bool)"

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread feedthetroll
Am Dienstag, 17. September 2013 03:40:06 UTC+2 schrieb Tim Chase: > On 2013-09-17 00:15, Ferrous Cranus wrote: >... >> But i wish to try it, is there a way to try to remove them? > > You could manage your own SMTP connection. If only Python had some > built in library that handled SMTP, that woul