Re: newbie: installing setuptools

2014-12-18 Thread Surbhi Gupta
On Friday, December 19, 2014 10:13:15 AM UTC+5:30, Surbhi Gupta wrote: > Hey, I am new to python and facing problem with installing packages. I am > using VPython which requires Python 2.7.x from python.org; it will not work > with versions of Python other than the one from python.org. So I need

Re: Google Maps and Python: creating a map, embedding it, adding images, videos, markers, using python

2014-12-18 Thread Kev Dwyer
Veek M wrote: > I'm messing with Google-Maps. Is there a way I can create a map, embed it > on a page (CSS/HTML/Javascript for this bit), and add images, videos, > markers - using python? Any libraries available? Hello, Googling for "google maps python client" returns https://developers.google.

Re: Is there a way to schedule my script?

2014-12-18 Thread Terry Reedy
On 12/18/2014 8:55 PM, Juan Christian wrote: On Thu Dec 18 2014 at 11:35:11 PM Chris Angelico mailto:ros...@gmail.com>> wrote: Why does this matter to you? Why am I getting the feeling that I should not be helping you? Because that's what my project is all about, I need to fake some 'human actio

Google Maps and Python: creating a map, embedding it, adding images, videos, markers, using python

2014-12-18 Thread Veek M
I'm messing with Google-Maps. Is there a way I can create a map, embed it on a page (CSS/HTML/Javascript for this bit), and add images, videos, markers - using python? Any libraries available? -- https://mail.python.org/mailman/listinfo/python-list

newbie: installing setuptools

2014-12-18 Thread Surbhi Gupta
Hey, I am new to python and facing problem with installing packages. I am using VPython which requires Python 2.7.x from python.org; it will not work with versions of Python other than the one from python.org. So I need to install packages separately. I was trying to install scipy-0.14.0, it g

Re: Is there a way to schedule my script?

2014-12-18 Thread Juan Christian
On Thu Dec 18 2014 at 11:35:11 PM Chris Angelico wrote: Why does this matter to you? Why am I getting the feeling that I should not be helping you? Because that's what my project is all about, I need to fake some 'human actions' inside the network to do some benchmarks and test internal stuffs. T

Re: Is there a way to schedule my script?

2014-12-18 Thread Chris Angelico
On Fri, Dec 19, 2014 at 9:13 AM, Juan Christian wrote: > Let's say I execute the script now, then in 5~10 min I'll execute again, > this time can be 5, 6, ... 10 minutes, this script pretends to do 'human > actions' so I can't be doing these 'actions' with a specific and rigid > times. Why does t

Re: Please help - Python role in Emeryville, CA - Full-time - $100K+

2014-12-18 Thread me
On Thu, 18 Dec 2014 00:08:18 +, Jared E. Cardon wrote: > Hi, > > I found your Python group on Google+ and I'm searching for someone with > 3+ years of Python development experience for a full-time position in > California. Salary north of $100K and working for an amazing company. > Ideally

Re: Creating interactive command-line Python app?

2014-12-18 Thread sohcahtoa82
On Saturday, December 13, 2014 6:50:50 AM UTC-8, Steven D'Aprano wrote: > rfreundlic...@colonial.net wrote: > > > um, what if I want to USE a command line for python WITHOUT downloading or > > installing it > > Who are you talking to? What is the context? > > Like all software, you can't use

Re: Is there a way to schedule my script?

2014-12-18 Thread Juan Christian
On Thu Dec 18 2014 at 2:24:46 PM Ian Kelly wrote: What kind of random distribution of the time between executions are you looking for? A random sleep lends itself easily to a uniform distribution. The latter approach that you describe would result in a geometric distribution. I'm looking for a ra

Re: Creating interactive command-line Python app?

2014-12-18 Thread Anssi Saari
rfreundlic...@colonial.net writes: > um, what if I want to USE a command line for python WITHOUT downloading or > installing it Then click on the little >_ icon on the web site and you have a python prompt in your browser. -- https://mail.python.org/mailman/listinfo/python-list

Re: problems with Methods in Python 3.4.2

2014-12-18 Thread Terry Reedy
On 12/18/2014 12:27 PM, Marcus Lütolf wrote: Learn to use dir to fine valid names. 1)I am trying to do this: >>> dir(_builtins_) I am getting this: Traceback (most recent call last): File "", line 1, in dir(_builtins_) NameError: name '_builtins_' is not defined >>> dir() ['__bui

Re: problems with Methods in Python 3.4.2

2014-12-18 Thread John Gordon
In =?iso-8859-1?Q?Marcus_L=FCtolf?= writes: > >>> dir(_builtins_) > >>> 'TTA',_add_('GGA') > >>>abs._doc_() These errors are due to using single underscores instead of double underscores. I.e. use __builtins__ instead of _builtins_. > >>> -3 .abs() > AttributeError: 'int' object has no attr

Re: Is there a way to schedule my script?

2014-12-18 Thread Juan Christian
Thanks, using cron here. -- https://mail.python.org/mailman/listinfo/python-list

Re: problems with Methods in Python 3.4.2

2014-12-18 Thread Gary Herron
On 12/18/2014 09:27 AM, Marcus Lütolf wrote: Hello Dears, 1)I am trying to do this: >>> dir(_builtins_) It's __builtins__ not _builtins_ (double underscores at each end not single underscores) I am getting this: Traceback (most recent call last): File "", line 1, in dir(_builtin

Re: problems with Methods in Python 3.4.2

2014-12-18 Thread André Roberge
On Thursday, 18 December 2014 13:28:33 UTC-4, Marcus Lütolf wrote: > Hello Dears, > 1)I am trying to do this: > > >>> dir(_builtins_) You need two underscore characters on each sides: dir(__builtins__) > > I am getting this: > Traceback (most recent call last): > File "", line 1, in >

problems with Methods in Python 3.4.2

2014-12-18 Thread Marcus Lütolf
Hello Dears, 1)I am trying to do this: >>> dir(_builtins_) I am getting this: Traceback (most recent call last): File "", line 1, in dir(_builtins_) NameError: name '_builtins_' is not defined 2)I am trying to do this: >>> 'TTA',_add_('GGA') I’am getting this : Traceback

SQLObject 1.7.3

2014-12-18 Thread Oleg Broytman
Hello! I'm pleased to announce version 1.7.3, a release with minor documentation update of branch 1.7 of SQLObject. What's new in SQLObject === * Extend setup.py: include docs and tests into the egg. For a more complete list, please see the news: http://sqlobject.org/News.h

Re: Is there a way to schedule my script?

2014-12-18 Thread Josh English
On Wednesday, December 17, 2014 11:11:11 AM UTC-8, Juan Christian wrote: > I know about the schedule modules and such but they work in situations like > 'run this in a X hours/minutes/seconds interval', I already have my code in a > while loop with sleep (it's a bit ugly, I'l change to a schedule

Re: Is there a way to schedule my script?

2014-12-18 Thread Michael Torrie
On 12/17/2014 01:42 PM, Juan Christian wrote: > On Wed Dec 17 2014 at 6:25:39 PM John Gordon wrote: > If you want to solve your problem entirely within Python, look at the > "scheduler" module. (Although even this isn't a complete solution, as you > still have to make sure the program is running i

Re: Python console rejects an object reference, having made an object with that reference as its name in previous line

2014-12-18 Thread Michael Torrie
On 12/18/2014 09:19 AM, Simon Evans wrote: > @Steven D'Aprano, > I input the following to Python 2.7, which got the following:- > from bs4 import BeautifulSoup with open("ecologicalpyramid.html","r") as ecologic

Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor

2014-12-18 Thread Michael Torrie
On 12/18/2014 04:16 AM, Mark Summerfield wrote: > It looks to me that what you are doing is sharing a single core > between your GUI and your processing. Threading isn't usually a good > approach to Python concurrency that is CPU-bound. Except that his code was not CPU-bound to begin with. His re

Re: Is there a way to schedule my script?

2014-12-18 Thread Ian Kelly
On Thu, Dec 18, 2014 at 5:37 AM, Juan Christian wrote: > I read the cron doc, it's really simple to use, but one think I didn't see out-of-the-box is a way to set a random time, like 'execute this in a 5~10 min interval', I can only set specific times like 'execute this each minute, each hour, eac

Re: Python console rejects an object reference, having made an object with that reference as its name in previous line

2014-12-18 Thread Simon Evans
@Steven D'Aprano, I input the following to Python 2.7, which got the following:- >>> from bs4 import BeautifulSoup >>> with open("ecologicalpyramid.html","r") as ecological_pyramid: ... soup= next(ecological_pyramid,

Re: Is there a way to schedule my script?

2014-12-18 Thread Juan Christian
On Wed Dec 17 2014 at 11:04:16 PM Juan Christian wrote: Thanks. That was a great answer. I'll redo my code. It's running and will only run in my Docker container (Ubuntu Server 14.04.1) so I'll use cron. Indeed, currently I'm using something like that: while True: if 9 < datetime.now().hour < 24

Re: Please help - Python role in Emeryville, CA - Full-time - $100K+

2014-12-18 Thread David H. Lipman
It depends on if this a Job Posting, specific to Python, is allowed and not considered spam. -- https://mail.python.org/mailman/listinfo/python-list

Re: how to generate a wsdl file for a web service in python

2014-12-18 Thread Burak Arslan
On 12/18/14 11:58, brice DORA wrote: > hi to all I am new to python and as part of my project I would like to create > a SOAP web service. for now I've developed my python file with all the > methods of my future web service, but my problem now is how to generate the > wsdl file ... my concern

Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor

2014-12-18 Thread Mark Summerfield
On Thursday, December 11, 2014 4:53:04 AM UTC, iMath wrote: > I think the user interface shouldn't be freezed when using > concurrent.futures.ThreadPoolExecutor here,as it executes asynchronously , > but it doesn't meet my expectations,anyone can explain why ? any other > solutions here to not l

Re: Classes - "delegation" question.

2014-12-18 Thread Steven D'Aprano
dieter wrote: > "Ivan Evstegneev" writes: >> I have a question about "delegation" coding pattern(I'm working with >> Python 3.4). > > Unlike Java, Python supports "multiple inheritance". This means > that you need "delegation" much more rarely in Python. > Python does not have much special suppo

how to generate a wsdl file for a web service in python

2014-12-18 Thread brice DORA
hi to all I am new to python and as part of my project I would like to create a SOAP web service. for now I've developed my python file with all the methods of my future web service, but my problem now is how to generate the wsdl file ... my concern may seem to move so bear with me because I am

PyGILState API and Py_Main

2014-12-18 Thread Adrien Bruneton
Hello all, I am having a hard time understanding what is the proper use of PyGILState_Ensure/Release. My understanding is that one should always be matched with the other, and that this high level API auto-magically deals with the ThreadState creation. However the following piece of code (ex