Re: python.org bugs

2015-09-28 Thread Laura Creighton
If you just send them to webmas...@python.org they will get dealt with (probably by me). Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Interacting with a web site, which lib?

2015-09-27 Thread Laura Creighton
In a message of Sun, 27 Sep 2015 15:05:37 -0600, paul.hermeneu...@gmail.com wri tes: >Does anyone have an opinion on the relative merits of using the >following packages to interact with web sites? > >Mechanize - cannot run under Python 3 >Requests >Robobrowser I don't know anything about mechaniz

Re: Python IDLE won't start

2015-09-27 Thread Laura Creighton
In a message of Sat, 26 Sep 2015 13:14:44 -0400, Jacob Chaar writes: >Hi there, > > > >So, I download Python 3.5.0 and I while I execute the Python IDLE, it won't >start up. Also, I try to open the python command line and a message error >pop up. > > > >If you can help me, it will be really app

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Laura Creighton
In a message of Fri, 25 Sep 2015 22:15:26 +0200, Laura Creighton writes: >No. You are going to return whatever is called 'experience' and >whatever is called 'monsters' and assign them to 'count' and 'monsters'. ARRGH! I meant assign them to &

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Laura Creighton
In a message of Fri, 25 Sep 2015 11:50:10 -0700, Cody Cox writes: >Awesome guys! Thank you for helping me understand this material. Parameters >and Arguments are tricky. Looks like its mainly a game of connect the dots >with variables. lol. > >When you return a variable, it needs somewhere to go,

Re: Idiosyncratic python

2015-09-24 Thread Laura Creighton
In a message of Thu, 24 Sep 2015 13:46:27 -0700, Ned Batchelder writes: >On Thursday, September 24, 2015 at 2:02:38 AM UTC-4, Steven D'Aprano wrote: >> What are your favorite not-wrong-just-weird Python moments? > >I've seen this a number of times: > >dict_of_values.update({'key': some_value})

Re: Sending a python argument to a Boost.Python function

2015-09-24 Thread Laura Creighton
Try that question here: https://mail.python.org/mailman/listinfo/cplusplus-sig Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: PyInstaller+ Python3.5 (h5py import error)

2015-09-24 Thread Laura Creighton
In a message of Thu, 24 Sep 2015 02:58:35 -0700, Heli Nix writes: >Thanks Christian, > >It turned out that h5py.defs was not the only hidden import that I needed to >add. > >I managed to get it working with the follwoing command adding 4 hidden >imports. > > >pyinstaller --hidden-import=h5py.d

Re: ConnectionError handling problem

2015-09-24 Thread Laura Creighton
In a message of Wed, 23 Sep 2015 19:49:17 -0700, shiva upreti writes: >Hi >If my script hangs because of the reasons you mentioned above, why doesnt it >catch ConnectionError? >My script stops for a while and when I press CTRL+C, it shows ConnectionError >without terminating the process, and the

Re: Modify environment variable for subprocess

2015-09-23 Thread Laura Creighton
In a message of Wed, 23 Sep 2015 02:51:53 -0700, loial writes: >I need to modify the LIBPATH environment variable when running a process via >subprocess, but otherwise retain the existing environment. > >Whats the best way to do that? import subprocess, os my_env = os.environ # if your program s

Re: Successfully send sms with python

2015-09-23 Thread Laura Creighton
In a message of Tue, 22 Sep 2015 22:25:31 -0600, Michael Torrie writes: >Consider something like this with no error checking when using the >serial port, no context managers for the serial device: >file sms.py: >-- >import serial >import time > >serial_port = 'COM13' >timeout =

Re: 64bit Python builds on HP-UX ia64 and PA-RISC (Using GCC)

2015-09-23 Thread Laura Creighton
In a message of Wed, 23 Sep 2015 09:03:21 +0100, James Matthews writes: >Hi, > >I'm having some issues getting 64bit Python builds on HP-UX. I'm using the >GCC version available from the HP website. I've also tried using HP's >compiler but don't have much success either, even following the readme.

Re: Python, convert an integer into an index?

2015-09-22 Thread Laura Creighton
In a message of Tue, 22 Sep 2015 14:43:55 -0700, Chris Roberts writes: > > >(How do I make it into an index? ) >Preferably something fairly easy to understand as I am new at this. > >results = 134523 #(Integer) > >Desired: >results = [1, 2, 3, 4, 5, 2, 3] #(INDEX) > >Somehow I see ways to

Re: Postscript to pdf

2015-09-20 Thread Laura Creighton
In a message of Sun, 20 Sep 2015 23:11:20 +0200, Baladjy KICHENASSAMY writes: >well one more question :/ > >i tried this > >def save(): > Canevas.update() > Canevas.postscript(file=tkFileDialog.asksaveasfilename(), >colormode='color') > subprocess.call(["ps2pdf", "-dEPSCrop", "test.ps",

Re: error while installing using pip.

2015-09-20 Thread Laura Creighton
There is an atfork patch supplied as part of this issue https://bugs.python.org/issue16500 Maybe it can do what you want? Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Postscript to pdf

2015-09-20 Thread Laura Creighton
In a message of Sun, 20 Sep 2015 21:32:34 +0200, Baladjy KICHENASSAMY writes: >o ok i got it >actually it's very easy the commande is : >ps2pdf -dEPSCrop image.ps > >sorry but i'm new to python my last question is how to integrate this >to python... i want that the output file must be a pdf ?

Re: error while installing using pip.

2015-09-20 Thread Laura Creighton
In a message of Mon, 21 Sep 2015 01:00:01 +0530, OmPs writes: >Hi all, > >I am getting the below error while I am trying to install atfork package >from pip repositories. I have done a thorough google search but am not able >to find and appropriate solution for it.Installation of SSL packages and >

Re: Postscript to pdf

2015-09-20 Thread Laura Creighton
In a message of Sun, 20 Sep 2015 20:27:48 +0200, Baladjy KICHENASSAMY writes: >Hello, > >I'm using macosx, ps2pdf version i don't know :/ sorry >ok actually i found what is the problem... > >There is no problem with the ps file every thing is fine =) > >Can u please just tell me how to change p

Re: Postscript to pdf

2015-09-20 Thread Laura Creighton
In a message of Sun, 20 Sep 2015 09:50:02 -0700, Bala Ji writes: >Thank u laura, >I tired it but the problem when i use it there is only half of the image >its like the software cut the image >-- >https://mail.python.org/mailman/listinfo/python-list Ok. We need more information. What OS are you

Re: Postscript to pdf

2015-09-20 Thread Laura Creighton
In a message of Sun, 20 Sep 2015 09:20:10 -0700, Bala Ji writes: >Hello, > >I'm doing a software to make an id card for a school club so i used TKINTER to >make this software. >So i can enter details like name, student number etc.. > >So finally i got a Postscript file the problem is that i want t

Re: ConnectionError handling problem

2015-09-20 Thread Laura Creighton
The discussion about why or why not to use a bare except has gotten us away from the problem reported, which is "why is my script hanging?" In a message of Sat, 19 Sep 2015 17:18:12 +0100, Mark Lawrence writes: >> I am learning python. I wrote a script using requests module. >> The scripts runs fi

Re: Shutting down a cross-platform multithreaded app

2015-09-18 Thread Laura Creighton
In a message of Fri, 18 Sep 2015 20:09:19 +0100, "James Harris" writes: >> Set the daemon flag on the worker threads, so when the main thread >> exits, the workers also exit. > >Interesting idea, and I did not know that a *thread* could be a daemon. >Unfortunately, I think what you suggest would k

Re: Writing a module to abstract a REST api

2015-09-17 Thread Laura Creighton
In a message of Thu, 17 Sep 2015 14:44:00 -, "Joseph L. Casale" writes: >I need to write a module to abstract the RabbitMQ HTTP REST api. >Before I do this, I would like to see how other projects have done >similar in the hopes I make something consistent and generic etc. > >Does anyone regular

Re: Automating Sphinx generated documentation

2015-09-17 Thread Laura Creighton
If you have watchdog installed: https://pypi.python.org/pypi/watchdog Jacob Kaplan Moss came up with this very nice one liner to do this. $ watchmedo shell-command \ --patterns="*.txt" \ --ignore-pattern='_build/*' \ --recursive \ --command='m

Re: python how to load multiple C libraries

2015-09-17 Thread Laura Creighton
In a message of Thu, 17 Sep 2015 15:41:26 +0800, "chenc...@inhand.com.cn" write s: > So, I checked my ctypes source code, I found RTLD_LAZY defined in >dlfcn.h header file like this: >/* The MODE argument to `dlopen' contains one of the following: */ >#define RTLD_LAZY 0x1 /* Lazy function c

Re: Packaging and deployment of standalone Python applications?

2015-09-17 Thread Laura Creighton
In a message of Thu, 17 Sep 2015 08:23:52 +0200, Kristian Rink writes: >Hi Laura; > >and first off, thanks bunches for your comment. > >Am 17.09.2015 um 00:19 schrieb Laura Creighton: > > >> Your problem is likely with the shared library search paths. >> Di

Re: Packaging and deployment of standalone Python applications?

2015-09-16 Thread Laura Creighton
In a message of Wed, 16 Sep 2015 21:29:23 +0200, Kristian Rink writes: >Am 15.09.2015 um 08:59 schrieb paul.hermeneu...@gmail.com: >> >> https://docs.python.org/3/library/venv.html?highlight=venv#module-venv > >Thanks, this already is pretty close to what I need. Playing with this >and virtualenv,

Re: python how to load multiple C libraries

2015-09-16 Thread Laura Creighton
In a message of Wed, 16 Sep 2015 17:35:18 +0800, "chenc...@inhand.com.cn" write s: >hi: >I encountered a problem. I use ctypes load multiple C libraries, but >the libraries have dependence each other.So, how can i load these >libraries. For example, I have two libraries:A、B, but A depends on B,

Re: Packaging and deployment of standalone Python applications?

2015-09-15 Thread Laura Creighton
>On Monday, September 14, 2015 at 8:58:51 AM UTC+2, Kristian Rink wrote: >> Folks; coming from a server-sided Java background, I'm recently >> exploring frameworks such as cherrypy or webpy for building RESTful >> services, which is quite a breeze and a pretty pleasant experience; >> however one t

Re: kivy editable multicolumn list

2015-09-15 Thread Laura Creighton
In a message of Tue, 15 Sep 2015 03:31:49 +0100, Paulo da Silva writes: >Hi all. >Not sure if this is the place to ask about kivy ... >I apologize if not. > >I am playing with the example here >https://gist.github.com/geojeff/4442405 > >Now I would like to change the background color the editable f

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-14 Thread Laura Creighton
On Mon, Sep 14, 2015, at 16:01, Carl Meyer wrote: >> Can we please stop cross-posting this thread to python-list and move it >> to datetime-sig only? I think anyone here on python-list who is >> sufficiently interested in it can subscribe to datetime-sig. >> >> Or the other way around, whatever. I

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-14 Thread Laura Creighton
In a message of Mon, 14 Sep 2015 15:35:28 -0400, Random832 writes: >As far as I know, the position of the tzdata people is that while this >belief is held almost everywhere that does not observe DST but is >surrounded by places that do (I should know; I live in Indiana, which >was such a place unti

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-14 Thread Laura Creighton
In a message of Mon, 14 Sep 2015 09:30:43 -0400, Random832 writes: >On Mon, Sep 14, 2015, at 04:27, Laura Creighton wrote: >> I find this totally unacceptable. My conclusion was that hybrid tzinfo >> objects were a _really stupid idea_ proposed by somebody who >> misundersto

Re: How to set the history commands visible ?

2015-09-14 Thread Laura Creighton
In a message of Mon, 14 Sep 2015 18:24:42 +1000, Chris Angelico writes: >On Mon, Sep 14, 2015 at 6:01 PM, Laura Creighton wrote: >> Since you are a gmail user, you should be able to see this: >> >>>>> import sys >>>>> import os >>>>>

Re: Can't use Python Launcher on Windows after update to 3.5

2015-09-14 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 23:46:37 +0100, Mark Lawrence writes: >Exactly the same thing happened when I upgraded to 3.5.0. so raised >http://bugs.python.org/issue25089 just in case it hurts other people >more than it hurts me. > >-- >My fellow Pythonistas, ask not what our language can d

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-14 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 15:21:45 -0700, Guido van Rossum writes: >Hi Laura! > >Wouldn't it be sufficient for people in Creighton to set their timezone to >US/Central? IIUC the Canadian DST rules are the same as the US ones. Now, >the question may remain how do people know what to set their

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-14 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 16:58:09 -0500, Tim Peters writes: >[Tim] >>> Whatever time zone the traveler's railroad schedule uses, so long as >>> it sticks to just one > >[Laura] >> This is what does not happen. Which is why I have written a python >> app to perform conversions for my parent

Re: How to set the history commands visible ?

2015-09-14 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 23:35:01 +0200, Glus Xof writes: >If I'm not wrong, in a later interpreter versions, when an enter key was >pressed after writing something requiring some indentated statement(s)... >like in: > for i in range (0,3): > >the system used to suggest "one tab" placi

Re: convert element in a list to float

2015-09-13 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 12:55:13 -0700, forums...@hotmail.com writes: > > >For starters, I googled and saw a plethora of writings on how to convert an >entire list from string to float. My interest is on select elements in the >list. The output from the print statement: print scenario

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 15:13:53 -0500, Tim Peters writes: >[Laura] >> Via Rail will give you a schedule when you book your tickets. But I >> am wrong, it gives it to you in local time, which you can scrape or >> even use the via rail api. So it is the person getting off in >> Creighton

Re: How to set the history commands visible ?

2015-09-13 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 19:15:19 +0200, Glus Xof writes: >Hi guys, > >Today, a new python stable version was released (thanks for your job)... >and I write to ask you for the recommended method to compile the sources >(in Debian GNU/Linux platfom) in order to the arrow keys emit the histor

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 14:00:33 -0500, Tim Peters writes: >> But I am not sure how it is that a poor soul who just wants to print a >> railway schedule 'in local time' is supposed to know that Creighton is >> using Winnipeg time. > >I'm not sure how that poor soul would get a railway sche

Re: Integration using scipy odeint

2015-09-13 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 07:49:37 -0700, sagar k writes: >Dear all > >I'm using Python 3.4.3. I am facing a problem in integrating using odeint >solver. In the following code, tran is a function and in those are the >variables which are arrays. These variables change their values with re

Re: Phone Tree

2015-09-13 Thread Laura Creighton
Somewhere in there you may find that dictionary dispatching is something worth doing. I don't know. This whole sort of problem is sort of grating, in that it is trying to replicate one of the most irritating user experiences on the planet ... >From python3: Patterns, Recipes and Idioms http://w

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Laura Creighton
In a message of Sun, 13 Sep 2015 10:27:30 -0500, Tim Peters writes: >Hi, Laura! By "zoneinfo" here, we mean the IANA (aka "Olson") time >zone database, which is ubiquitous on (at least) Linux: > >https://www.iana.org/time-zones > >So "will a wrapping of zoneinfo handle XYZ?" isn't so much a qu

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-13 Thread Laura Creighton
In a message of Sat, 12 Sep 2015 22:15:02 -0400, Alexander Belopolsky writes: >I completely agree. That's why I am adding test cases like Lord Hope >Island and Vilnius to datetimetester. > >I will try to create a zoneinfo wrapping prototype as well, but I will >probably "cheat" and build it on to

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread Laura Creighton
In a message of Sat, 12 Sep 2015 05:46:35 -0700, Rustom Mody writes: >How about lay-English ontology in which "point to" and "refer to" are fairly >synonymous? This I have found is important in teaching, which is why I favour 'bind' and 'binding' -- rather than pointer, pointer, refer to, referrin

Re: monospaced font in MS Windows with wxpython

2015-09-12 Thread Laura Creighton
In a message of Fri, 11 Sep 2015 22:16:36 -, Javier writes: >I am trying to use a monospaced font (preferably small) in MS Windows >with wxpython. I have tried > >txtctrl.SetFont(wx.Font(10, wx.MODERN, wx.NORMAL, wx.NORMAL, False, >u'Consolas')) > >but no success, I still get a proportional f

Re: Problem with handling errors in POP3 message retrieval/deletion

2015-09-11 Thread Laura Creighton
In a message of Fri, 11 Sep 2015 17:33:32 +0100, c...@isbd.net writes: >I have a (fairly) simple script that does 'catchall' processing on my >POP3 mailbox. It looks for messages To: strings that *might* be for >me and then throws everything else away. Somebody tried to protect you from yourself.

Re: subdividing a rectangle using numpy

2015-09-11 Thread Laura Creighton
I think pyeuclid will do what you want. https://pypi.python.org/pypi/euclid Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: numpy

2015-09-11 Thread Laura Creighton
In a message of Fri, 11 Sep 2015 10:35:41 +0800, "chenc...@inhand.com.cn" write s: >hi, Laura: >My embedded arm device supports floating point operation. I >have to use numpy and pandas packages. But now, I do not known how to >cross compile numpy and pandas packages? You are going to h

Re: Context-aware return

2015-09-10 Thread Laura Creighton
In a message of Fri, 11 Sep 2015 03:54:14 +1000, "Steven D'Aprano" writes: >def func(): >do_stuff() >if procedure: # FIXME what goes here??? >return "Awesome" >else: >return 999 > >Now I can do this: > > >x = func() >assert x == 999 > >L = [1, 2, func(), 4] >assert L[2

Re: numpy

2015-09-10 Thread Laura Creighton
In a message of Thu, 10 Sep 2015 18:11:08 +0800, "chenc...@inhand.com.cn" write s: >hi: >I have to use numpy package. My python runs on my embedded arm >device. So, how do i cross compile numpy? >-- >https://mail.python.org/mailman/listinfo/python-list Ask that one here: http://mail.scipy.or

Re: Python handles globals badly.

2015-09-09 Thread Laura Creighton
In a message of Thu, 10 Sep 2015 05:00:22 +1000, Chris Angelico writes: >To get started, you need some other sort of kick. Having Brian Kernighan write a really nice book about you, helps a lot. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Python handles globals badly.

2015-09-09 Thread Laura Creighton
In a message of Thu, 10 Sep 2015 03:55:54 +1000, "Steven D'Aprano" writes: >(I wanted to link to the "Everything Is Broken" essay on The Medium, but the >page appears to be gone. This makes me sad. BTW, what's the point of >Google's cache when it just redirects to the original, missing, page?) Wor

Re: issue while doing pexpect ssh

2015-09-09 Thread Laura Creighton
>Hey All, > >I am able to achieve this using pxssh.. thank you for help... Great to hear it. Good luck with the crazies. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: issue while doing pexpect ssh

2015-09-09 Thread Laura Creighton
In a message of Wed, 09 Sep 2015 01:58:30 -0700, harirammanohar...@gmail.com wr ites: >Thank you for spawnu, now i got stuck with freezing issue similar to it is not >returing to the shell prompt...its on waiting...i had to press ctrl+c > >=== >child.sendline(password) >child.expect('-bas

Re: issue while doing pexpect ssh

2015-09-08 Thread Laura Creighton
In a message of Tue, 08 Sep 2015 23:57:41 +1000, Chris Angelico writes: >On Tue, Sep 8, 2015 at 9:37 PM, wrote: >> Some where i am missing simple logic :) >> >> = >> child = pexpect.spawn('ssh hari@hostname') >> child.logfile = sys.stdout >> child.expect('hari\'s Password: ') >> = >>

Re: issue while doing pexpect ssh

2015-09-08 Thread Laura Creighton
In a message of Tue, 08 Sep 2015 04:37:09 -0700, harirammanohar...@gmail.com wr ites: >Some where i am missing simple logic :) > >= >child = pexpect.spawn('ssh hari@hostname') >child.logfile = sys.stdout >child.expect('hari\'s Password: ') >= > >getting error as follows: > >

Re: Permission denied error in download nltk_data...

2015-09-08 Thread Laura Creighton
In a message of Tue, 08 Sep 2015 18:56:15 +0800, Dwight GoldWinde writes: >import nltk >nltk.download('maxent_treebank_pos_tagger¹) > >Is now giving the error: > >[nltk_data] Error loading maxent_treebank_pos_tagger: [nltk_data] [Errno 57] Socket is not connected> > > >Any suggestions, please.

Re: pygame basic question

2015-09-08 Thread Laura Creighton
Try the pygame mailing list for that one. http://www.pygame.org/wiki/info?action=view&id=4890 Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Python handles globals badly.

2015-09-08 Thread Laura Creighton
In a message of Tue, 08 Sep 2015 10:59:01 +0200, Antoon Pardon writes: >Were those polls, like the poll he once did for the condtional expression? >There the poll indicated no specific proposal had a majority, so for each >specific proposal one could say it didn't have popular support, but the >maj

Re: python---configure file

2015-09-08 Thread Laura Creighton
In a message of Tue, 08 Sep 2015 10:00:26 +0800, "chenc...@inhand.com.cn" write s: > >hi: >I download the python2.7.10 package and execute cmd: ./configure >--help.It is messages as follow: > >Optional Packages: >--with-PACKAGE[=ARG]use PACKAGE [ARG=yes] >--without-PACKAGE do

Re: install pip

2015-09-07 Thread Laura Creighton
Try that question on disutils-...@python.org where the authors of pip are. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Django Calendar

2015-09-07 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 13:52:16 -0700, cmeek@gmail.com writes: >Does anyone know of an easy to follow guide/tutorial to follow. I am trying to >implement a calendar into my app that works as a job rota for employees. I >have tried using django-scheduler and creating htmlcalendar but

Re: Wheels For ...

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 15:31:16 -0400, Terry Reedy writes: >On 9/6/2015 1:33 PM, Sven R. Kunze wrote: >> >> With this post, I would like raise awareness of the people in charge of >> the Python infrastructure. > >pypa is in charge of packaging. https://github.com/pypa >I believe the googl

Re: Trying pmw with python3: Lots of crashes!

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 19:47:25 +0100, Paulo da Silva writes: >Hi! > >I took a look at tkinter. It is pretty simple but it's very hard to >construct some relatively more complex widgets. > >So I looked at pmw. >Because my system only have pmw for python2, I downloaded pmw2 from its >site

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 06:07:05 -0700, tropical.dude@gmail.com wr ites: >Thank you very much. > >I will definitely look into python web frameworks in the future, they seem >complicated to me compared to php for example. I am looking for the simplest >way to test my python scripts till

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 05:38:50 -0700, tropical.dude@gmail.com wr ites: >> What operating system are you running? It sounds to me as if you haven't >> configured apache to add a Handler for python scripts, or you have, but >> forgot to restart apache after you did so. >> >> Laura >

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 14:16:37 +0200, Chris Warrick writes: >Don’t use http.server. Don’t use CGI. This is not how things work in Python. > >In Python, you should use a web framework to write your code. Web >frameworks include Flask, Django, Pyramid… Find one that’s popular and >that you

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 04:50:23 -0700, tropical.dude@gmail.com wr ites: >Hello everyone, > >I want to use python for web development but I >could not configure my Apache server to run python >with the guides I found on the internet. > >Can anyone help me configure http.server >to run

Re: Permission denied error in download nltk_data...

2015-09-04 Thread Laura Creighton
In a message of Fri, 04 Sep 2015 18:50:11 +0800, Dwight GoldWinde writes: >Please helpŠ(my apologizesŠI got a response to this before, but I CANNOT >find it now)Š https://mail.python.org/pipermail/python-list/2015-August/695546.html Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Package installation causing [Error 13] Permission Denied on Windows 7

2015-09-04 Thread Laura Creighton
Over in the physics lab we have a big sign, which (translated) says: 'For windows 7, it is not enough to _be_ an admininstrator to install packages. When opening up the command prompt you also have to select the 'run as administrator' option.' No windows system here to test, but maybe this is y

Re: XML Binding

2015-09-03 Thread Laura Creighton
In a message of Fri, 04 Sep 2015 08:46:33 +0200, Laura Creighton writes: >In a message of Thu, 03 Sep 2015 22:21:29 -0700, Palpandi writes: >>Thanks Burak. >> >>lmxl is good. But it is not supported with python 2.5. Any other option? >>-- >>https://mail.python

Re: XML Binding

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 22:21:29 -0700, Palpandi writes: >Thanks Burak. > >lmxl is good. But it is not supported with python 2.5. Any other option? >-- >https://mail.python.org/mailman/listinfo/python-list check and see what python you have. If 2.6 or more recent, use lxml If you have 2

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 07:32:55 -0700, Heli Nix writes: >Dear all, > >I have my python scripts that use several python libraries such as h5py, >pyside, numpy > >In Windows I have an installer that will install python locally on user >machine and so my program gets access to this l

Re: How do I real a SSL certs serial number using Python?

2015-09-03 Thread Laura Creighton
Is this a good enough point? https://pyopenssl.readthedocs.org/en/stable/api/crypto.html?highlight=serial%20number#OpenSSL.crypto.X509.get_serial_number Write back if you need more help. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Strange location for a comma

2015-09-03 Thread Laura Creighton
No, I am wrong. You are in the middle of a fuction definition. You are correct, that is a wierd place for a comma, though I can see doing that if you anticipate adding more arguments to the function in the near future. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: sending push notifications

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 08:30:35 -0400, Larry Martell writes: >I'm looking for people's experiences with the different ways to send >push notifications to mobile devices. I have an app that will be >running on Amazon, so I can use their SNS API or I can do it myself. >>From googling there

Re: Strange location for a comma

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 14:20:06 +0200, "ast" writes: >Hello, > >At the end of the last line of the following program, >there is a comma, I dont understand why ? > >Thx > > >from cx_Freeze import setup, Executable > ># On appelle la fonction setup >setup( >name = "salut", >version

Re: .py to .html generation

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 09:22:27 +0200, Laura Creighton writes: >There is also a report generator implemented as an extension to sphinx. >https://github.com/AndreasHeger/CGATReport >Interfaces nicely with ipython. Makes it easy to stick matplotlib >graphs into your repor

Re: .py to .html generation

2015-09-03 Thread Laura Creighton
In a message of Wed, 02 Sep 2015 22:04:03 -0700, uday3prak...@gmail.com writes: >Hi friends! > >Can some one help me with the best module and/or its tutorial, to generate >html reports for python scripts? > >I tried pyreport and sphc; but, i am getting errors. >-- >https://mail.python.org/mailma

Re: error

2015-09-02 Thread Laura Creighton
>import numpy as np > >import netCDF4 > >f = netCDF4.Dataset('uwnd.mon.ltm.nc','r') > > >f.variables > > >and I had the message: > > >netcdf4.py >Traceback (most recent call last): >File "", line 1, in >NameError: name 'netcdf4' is not defined You have a file called netcdf4.py It contains the

Re: Getting the logging level from text representation

2015-09-02 Thread Laura Creighton
In a message of Wed, 02 Sep 2015 12:14:44 +0200, Antoon Pardon writes: See: https://docs.python.org/3.5/library/logging.html#levels you can just use 30 everywhere for warning, and that is what Logger.getEffectiveLevel() will tell you even if you initialised it with the text form. Laura -- https

Re: Why Python is not both an interpreter and a compiler?

2015-09-02 Thread Laura Creighton
In a message of Wed, 02 Sep 2015 10:50:15 +1000, Chris Angelico writes: >And compiled C programs are notoriously hard to distribute. Can you >pick up a Guile binary and carry it to another computer? Do you have >to absolutely perfectly match the libguile version, architecture, >build settings, etc?

Re: Low level file descriptors and high-level Python files

2015-09-02 Thread Laura Creighton
In a message of Tue, 01 Sep 2015 22:19:15 -, Grant Edwards writes: >On 2015-09-01, Laura Creighton wrote: > >> Don't go around closing things you don't know are open. They >> could be some other processes' thing. > >I don't understand. Closing a

Re: Why Python is not both an interpreter and a compiler?

2015-09-01 Thread Laura Creighton
>But are Guile programs small? I the OP made a categorisation error, >confusing correlation with causation. (i.e. the presence of >feathers makes a animal able to fly). s/I the/I think the/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Low level file descriptors and high-level Python files

2015-09-01 Thread Laura Creighton
In a message of Wed, 02 Sep 2015 00:57:22 +1000, "Steven D'Aprano" writes: >Let's suppose somebody passes me a file descriptor to work with. It could >come from somewhere else, but for the sake of discussion let's pretend I >create it myself this way: >Q1: In this example, I know that I opened th

Re: Why Python is not both an interpreter and a compiler?

2015-09-01 Thread Laura Creighton
In a message of Tue, 01 Sep 2015 19:20:51 +0300, Marko Rauhamaa writes: >Somehow Guile manages it even though Scheme is at least as dynamic a >language as Python. But are Guile programs small? I the OP made a categorisation error, confusing correlation with causation. (i.e. the presence of feath

Re: Does mkstemp open files only if they don't already exist?

2015-09-01 Thread Laura Creighton
In a message of Wed, 02 Sep 2015 00:57:45 +1000, Chris Angelico writes: >On Wed, Sep 2, 2015 at 12:45 AM, Steven D'Aprano wrote: >> I assume the answer is "Yes", but is it safe to expect that >> tempfile.mkstemp() will only create a file that doesn't already exist? I >> presume that there's no cha

Re: execute commands as su on remote server

2015-09-01 Thread Laura Creighton
In a message of Tue, 01 Sep 2015 05:16:48 -0700, harirammanohar...@gmail.com wr ites: >On Tuesday, 18 August 2015 08:27:33 UTC+5:30, hariramm...@gmail.com wrote: >> execute commands as su on remote server >> >> Postby hariram » Mon Aug 17, 2015 4:02 am >> Needed: >> I need to execute commands aft

Re: How to compare lists

2015-09-01 Thread Laura Creighton
In a message of Tue, 01 Sep 2015 07:08:48 +0200, "Jahn" writes: >1. >How can I save 256 lists, each list has 32 values( hexadecimal numbers) >2. >How to compare the saved lists with another 256 lists ( that are read online >and have the >same structure as the list one)? >( the first list must be

Re: Why Python is not both an interpreter and a compiler?

2015-09-01 Thread Laura Creighton
If I understand what you are saying, then I think what you are looking for is not a compiler, but docker. see: https://www.docker.com/ in particular https://www.docker.com/whatisdocker PyPy used this to produce portable PyPy binaries. See: https://github.com/squeaky-pl/portable-pypy/blob/master/R

Re: AttributeError: 'module' object has no attribute '__path__'

2015-08-31 Thread Laura Creighton
In a message of Mon, 31 Aug 2015 17:01:07 -0400, Saran Ahluwalia writes: >Laura, > >It does not appear to be the case. I actually had to actually unset the >PYTHONPATH. > >Thanks for your suggestion. > >Sincerely, >Saran Are you and kbtyo the same person? If deleting your PYTHONPATH fixed it, th

Re: AttributeError: 'module' object has no attribute '__path__'

2015-08-31 Thread Laura Creighton
Check and see if you have a file in your working directory with the very same name as a module you are trying to import, or the_same_name.py If so, change the name of that file to something else. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: install pip

2015-08-31 Thread Laura Creighton
In a message of Mon, 31 Aug 2015 15:38:26 +0800, "chenc...@inhand.com.cn" write s: >hi: >I cross compiled python2.7.10 and install python on my embedded >device. But now, I may install pip on my embedded device. So, how can i >do that? https://pip.pypa.io/en/latest/installing.html This is n

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread Laura Creighton
In a message of Sun, 30 Aug 2015 10:34:18 -0700, kbtyo writes: >@Laura - thank you. I observed this earlier. Please see my reply to Ben and >MRAB for the most up to date status. For the more general problem of 'how do I parse my XML' download and use this package. https://pypi.python.org/pypi/x

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread Laura Creighton
When you get TypeError: unhashable type: 'dict' it almost always means that you are trying to use a dict as a key for a different dict. Python 2.7.10 (default, Jul 1 2015, 10:54:53) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> d={1:'one', 2:'t

Re: Automation of Windows app?

2015-08-30 Thread Laura Creighton
In a message of Sun, 30 Aug 2015 07:25:55 -0700, ryguy7272 writes: >I know this is an old post, but anyway, can't you just use Windows Scheduler? >http://windows.microsoft.com/en-us/windows/schedule-task#1TC=windows-7 I think you may have missed the original post, where poor old Grant Edwards sai

Re: pycparser error or openSUSE error

2015-08-28 Thread Laura Creighton
In a message of Sat, 29 Aug 2015 01:22:54 +0200, Laura Creighton writes: >In a message of Sat, 29 Aug 2015 00:51:57 +0200, Cecil Westerhof writes: >>When doing a ‘zypper update’ on openSUSE I get: >>Installing: python-pyc

<    1   2   3   4   5   6   7   >