Ho Yeung Lee wrote:
> i use window subsystem ubuntu
> and install python 3 and tensorflow
>
> then when try deep learning
>
> https://www.tensorflow.org/tutorials/wide_and_deep
>
> got error when urlretrieve local directory in ubuntu in window
>
> tried urllib3 still have error
>
> import tem
Robin Becker wrote:
> Is there a way to get the same sequences of random numbers in python 2.7
> and python >= 3.3?
>
> I notice that this simple script produces different values in python 2.7
> and >=3.3
>
> C:\code\hg-repos\reportlab>cat s.py
> import sys, random
> print(sys.version)
> random.
Larry Martell wrote:
> I have a list of dicts and one item of the dict is a date in m/d/Y
> format. I want to sort by that. I tried this:
>
> sorted(data['trends'], key=lambda k:
> datetime.strptime(k['date_time'],'%m/%d/%Y'))
>
> But that fails with:
>
> Exception Type: AttributeError at
> /re
Hello List,
I came across some threading code in Some Other place recently and wanted to
sanity-check my assumptions.
The code (below) creates a number of threads; each thread takes the last (index
-1) value from a global list of integers, increments it by one and appends the
new value to the
Hello List,
I came across some threading code in Some Other place recently and wanted to
sanity-check my assumptions.
The code (below) creates a number of threads; each thread takes the last
(index -1) value from a global list of integers, increments it by one and
appends the new value to the
Anthony Papillion wrote:
> I'm trying to figure out why the following statements evaluate the way
> they do and I'm not grasping it for some reason. I'm hoping someone can
> help me.
>
> 40+2 is 42 #evaluates to True
> But
> 2**32 is 2**32 #evaluates to False
>
> This is an example taken from a
Cecil Westerhof wrote:
> On Thursday 26 Nov 2015 09:29 CET, Steven D'Aprano wrote:
>
>> On Thursday 26 November 2015 18:00, Cecil Westerhof wrote:
>>
>>> On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote:
>>>
In a message of Wed, 25 Nov 2015 22:52:23 +0100, Cecil Westerhof
write
Nagy László Zsolt wrote:
> Today I have tried to register and upload a new package by executing
>
> setup.py register
>
>
> I was asked if I want to save the creditentials in a .pypirc file and I
> answered yes.
>
> Next I wanted to run
>
> setup.py upload
>
> and I got this error:
>
>
> T
paul.hermeneu...@gmail.com wrote:
> - I downloaded and installed Python 3.5 64-bit onto a Windows 7 64-bit
> machine. - Using `pip install virtualenv` worked fine.
> - Now, it is time to create a virtualenv, but it is not working fine.
> - I had to add Python 3.5 to the PATH.
> - Any suggestions?
zljubi...@gmail.com wrote:
>
>
>> Hello,
>>
>> urlopen returns an HttpResponse
>> object(https://docs.python.org/3/library/http.client.html#httpresponse-objects).
>> You need to call read() on the return value to get the page content, or
>> you could consider the getheader method to check for
zljubi...@gmail.com wrote:
> Hi,
>
> if I put the link in the browser, I will be offered to save the file to
> the local disk.
>
> If I execute these few lines of code, I will get None:
>
> import urllib.request
>
> url = 'http://radio.hrt.hr/prvi-program/aod/download/118467/'
> site = urllib.
adham...@gmail.com wrote:
> hello anyone wants to study python? we can learn together! pm me my name
> is adham128 iam at the #programming room
Welcome to Python!
To improve your chances of finding someone who wants to learn with you, you
might try posting your message in the Python Tutor list
shdwkee...@gmail.com wrote:
> Ive setup a Debian server with Python 2.7.9. Have everything running and
> SSL as well, but when I try and login to using HTTPS:// I get this error:
>
> Incoming web connection from ('192.168.15.177', 53202)
> error: uncaptured python exception, closing channel lis
Robin Becker wrote:
> On 01/05/2015 13:15, Chris Angelico wrote:
>> On Fri, May 1, 2015 at 8:29 PM, Robin Becker wrote:
>>
>>
>> Best thing to do is to ask the user to post the complete traceback.
>> You might need to use "import os.path" but normally I would expect
>> that not to be an issue.
>
peronin jean jacques wrote:
> Bonjour
>
> Je rencontre des problèmes douverture de la console python . Jai donc
> tout désinstallé. Je vous demande donc quelle version je dois installer à
> partir
> de votre site . Jutilise Windows 8-1 sur PC portable.
>
> Merci . Cordialement.
Essayez pyt
Sayth Renshaw wrote:
>
> Hi
>
> How can I actually access the values of an element with lxml objectify?
>
> for example if I had this element in my xml file.
>
> VenueCode="151" TrackName="Main" TrackCode="149">
>
> I can see all the attributes using this.
>
> In [86]: for child in root.get
contro opinion wrote:
> When i test an udp.py file on server and client in python34.
>
>
> #!/usr/bin/env python
> import socket, sys
> s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
> MAX = 65535
> PORT = 1060
> if sys.argv[1:] == ['server']:
> s.bind(('127
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.
alextr...@googlemail.com wrote:
> So I got the Labnol Google Appengine proxy but it can't handle the Post
> method aka error 405.
>
> I need help adding this method to the script:
>
> mirror.py = http://pastebin.com/2zRsdi3U
>
> transform_content.py = http://pastebin.com/Fw7FCncA
>
> main.html
John Bliss wrote:
> Noob here:
>
> Started new Python project via Google AppEngine which produced project
> files including:
>
> \app.yaml
>
> handlers:
> - url: /.*
> script: main.app
> secure: always
>
> Currently, navigating to project root forces me to authenticate with
> Google oAuth2
Terry Reedy wrote:
> On 4/28/2014 2:33 AM, Kev Dwyer wrote:
>
>> Hello Terry,
>>
>> Regarding your second point, my mistake in not checking the link:
>> I'd seen a similar one elsewhere and assumed they were the same.
>>
>> This link should w
Terry Reedy wrote:
> On 4/27/2014 6:40 AM, Kev Dwyer wrote:
>> Igor Korot wrote:
>>
>>> Hi, ALL,
>>> I need to perform a subj.
>>> Looking at the Google I found following thread with explanation:
>>>
>>> http://stackoverflow.com/qu
Igor Korot wrote:
> Hi, ALL,
> I need to perform a subj.
> Looking at the Google I found following thread with explanation:
>
> http://stackoverflow.com/questions/36139/how-do-i-sort-a-list-of-strings-
in-python
>
> However, doing this in my python shell produces an error:
>
> C:\Documents and
teddyb...@gmail.com wrote:
> I can't find any example on how to do this.
> I have a json file like so:
> {"bostock":
[{"url":"http://bl.ocks.org/mbostock/9360565","title":"titleplaceholder","date":"dateplaceholder"},
>
{"url":"http://bl.ocks.org/mbostock/9265674","title":"titleplaceholder","date"
glenn.a.is...@gmail.com wrote:
> Is there a way to make sure that whenever you're making google engine app
> iterations to a database that that info does not get wiped/deleted.
> Please advise
It's not clear what you mean here; I'll guess that by "iterations" you mean
"changes" by "database" you
eneskri...@gmail.com wrote:
> So, I'm having this radio button issue in tkinter:
> First I assign the IntVar:
> var = []
> while i < self.something:
> var.append(IntVar())
> i += 2
> Later on I use them, but I get this error:
> for r in var:
> helper = var[r].get()
> self.something
Joel Goldstick wrote:
> On Fri, Jul 12, 2013 at 3:12 PM, Skip Montanaro wrote:
>
>> > I can't help you. I'm astonished. Trying to imagine the work
>> environment
>> > where this technology would be necessary
>>
>> http://www.iseriespython.com/app/ispMain.py/Start?job=Home
>>
>> Skip
>>
> I rem
matt.topolin...@gmail.com wrote:
> Hello,
>
> I'm trying to torubleshoot this issue for a user I support. He is running
> the splinter web browser simulator trough Google Chrome, and it appears to
> be causing his workstation to constantly BSOD.
>
> His machine has the following hardware:
>
> D
Roy Smith wrote:
> I stumbled upon an interesting bit of trivia concerning lists and list
> comprehensions today.
>
> We use mongoengine as a database model layer. A mongoengine query
> returns an iterable object called a QuerySet. The "obvious" way to
> create a list of the query results would
Terry Reedy wrote:
> On 1/7/2013 1:26 PM, Elli Lola wrote:
>
>> $ ./python -m test -v test_urlwithfrag
>>
>> == CPython 3.3.0 (default, Jan 4 2013, 23:08:00) [GCC 4.6.3]
>> == Linux-3.2.0-35-generic-pae-i686-with-debian-wheezy-sid little-endian
>> == /home/me/Programme/Python/Python-3.3.0/bui
Naresh Kumar wrote:
>
>
>
> Hello,
>
> I am trying to use the Jython in IBM AIX and HP machines to test our
> framework which is based on JAVA. when trying to run our python and jython
> based testcases using system test framework we are getting below errors in
> jython.err file
>
>
>
> Err
Steve Petrie wrote:
> On Thursday, November 22, 2012 1:42:42 AM UTC-5, Kev Dwyer wrote:
>> Steve Petrie wrote:
>>
>>
>>
>> > On Wednesday, November 21, 2012 2:32:40 AM UTC-5, Kev Dwyer wrote:
>>
>> >> Hello List,
>>
>> >&g
Dieter Maurer wrote:
>
> From your description (so far), you would not need a web framework
> but could use any way to integrate Python scripts into a web server,
> e.g. "mod_python", "cgi", "WSGI",
> Check what ways your web server will suport.
Hello Dieter
Thanks for your comment. I ce
Steve Petrie wrote:
> On Wednesday, November 21, 2012 2:32:40 AM UTC-5, Kev Dwyer wrote:
>> Hello List,
>>
>>
>>
>> I have to build a simple web service which will:
>>
>>
>>
>> - receive queries from our other servers
>
Hello List,
I have to build a simple web service which will:
- receive queries from our other servers
- forward the requests to a third party SOAP service
- process the response from the third party
- send the result back to the original requester
>From the point of view of the requester, th
Νίκος Γκρεεκ wrote:
> Τη Σάββατο, 22 Σεπτεμβρίου 2012 10:26:05 π.μ. UTC+3, ο χρήστης Peter Otten
> έγραψε:
>> Νίκος Γκρεεκ wrote:
>>
>>
>>
>> > One webpage of mine, http://www.varsa.gr/ has been *hacked* 15 mins
>> > ago.
>>
>>
>>
>> > Please visit my web page varsa.gr and view the source co
gmspro wrote:
> I tried this:
> CFLAG=-g ./configure --prefix=/home/user/localdir
>
> But during debugging python i get:
>
> (gdb)next
> (gdb)print variable
> (gdb)$1 =
>
> What should i do?
> How can i get the value of a variable instead of ?
>
> Thanks.
Maybe try: http://docs.python.org/
gmspro wrote:
> We know python is written in C.
> C is not portable.
> So how does python work on a webserver like apache/httpd for a python
> website? How does the intermediate language communicate with server
> without compiling python code? Or how does python interpreted code work
> with webser
kevon wang wrote:
> I want to find a plugin of django what it can custom fields in the form.
> The functions include custom fields in web page and create the fields in
> database.
>
You might have more luck getting an answer to this question on the django
list (django-us...@googlegroups.com if
sajuptpm wrote:
> Hi,
>
> Yes i saw profile module,
> I think i have to do function call via
>
> cProfile.run('foo()')
>
> I know, we can debug this way.
>
> But, i need a fixed logging system and want to use it in production.
> I think, we can't permanently include profile's debugging c
John Gordon wrote:
> Recently I was been bitten by some stupid errors in my code, and I'm
> wondering if there's a simple way to catch them.
>
Pyflakes is another static checker that can catch these sorts of errors.
Cheers,
Kev
--
http://mail.python.org/mailman/listinfo/python-list
contro opinion wrote:
> you can do it by hand ,
> 1.open
> http://www.flvcd.com/'
> 2.input
> http://v.163.com/movie/2008/10/O/Q/M7F57SUCS_M7F5R3DOQ.html
> 3.click submit
> you can get
> http://mov.bn.netease.com/movie/2012/1/V/7/S7MKQOBV7.flv
>
> i want to emulate it in python with mechanize
Prim wrote:
> First, sorry about my poor english.
> Put these in IPython under ubuntu.
>
-
> class C:
> def __init__(self):
> self.x = 1
> def print(self):
> print self.x
> c = C()
> c.x --
nukeymusic wrote:
> How can I load a python-script after starting python in the
> interactive mode?
> I tried with
load 'myscript.py'
myscript.py
myscript
>
> but none of these works, so the only way I could work further until
> now was copy/paste line per line of my python-script to
Yaşar Arabacı wrote:
> You can see my all code below, theoritically that code should work I
> guess. But I keep getting this error:
> [SUBWARNING/MainProcess] thread for sharing handles raised exception :
>
---
> Tracebac
Peter G. Marczis wrote:
Hello Peter,
Welcome to the list.
Have you tried calling statvfs from a C program? What happens if you do?
Best regards,
Kev
--
http://mail.python.org/mailman/listinfo/python-list
alias wrote:
>
>
>
> Highlighted options are in-the-money.
> (omit something)
> there is only one difference between code1 and code2 :
> in code1 is : tds=table.xpath("tr[@valign='top']//td")
> in code2 is: tds=table.xpath("//tr[@valign='top']//td")
>
> i want to know why t
Yingjie Lin wrote:
> Hi Python users,
>
> I have two lists:
>
> li1 = ['a', 'b']
> li2 = ['1', '2']
>
> and I wish to obtain a list like this
>
> li3 = ['a1', 'a2', 'b1', 'b2']
>
> Is there a handy and efficient function to do this, especially when li1
> and li2 are long lists.
> I found zip(
vipul jain wrote:
> hey i am new to python and i want to make a website using python .
> so for that i need a login page. in this login page i want to use the
> sessions... but i am not getting how to do it
The Python standard library doesn't include a session framework, but you
can either u
Ceonn Bobst wrote:
>
> When I open a command prompt, and type:
> c:\python32\python.exe -m idlelib.idle
>
> The message that comes is as follows:
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
> C:\Documents and Settings\Ceonn>c:\python32\python.exe -m
i
On Sat, 01 Jan 2011 20:53:47 -0800, marceepoo wrote:
> I just downloaded pyWin32 (https://sourceforge.net/projects/pywin32/)
> and started to install it.
>
> I get these error msgs:
>
> Skipping exchange: No library 'Ex2KSdk' Skipping exchdapi: No library
> 'Ex2KSdk' Skipping directsound: The he
On Tue, 21 Dec 2010 01:00:36 +0530, Anurag Chourasia wrote:
Anurag,
HTTPConnection takes a host and a port number as arguments, not just a URL.
So you could construct your connection request like this:
conn = httplib.HTTPConnection('joule', 8041)
then use the request() method on the connection
On Tue, 21 Dec 2010 00:01:44 +0530, Anurag Chourasia wrote:
>>> import httplib
>>> help(httplib.HTTP)
Help on class HTTP in module httplib:
class HTTP
| Compatibility class with httplib.py from 1.5.
|
| Methods defined here:
|
| __init__(self, host='', port=None, strict=None)
The con
On Thu, 16 Dec 2010 21:49:07 +, John Gordon wrote:
> (This is mostly a style question, and perhaps one that has already been
> discussed elsewhere. If so, a pointer to that discussion will be
> appreciated!)
>
> When I started learning Python, I wrote a lot of methods that looked
> like this
On Sun, 07 Nov 2010 09:01:42 -0800, rustom wrote:
> On Nov 7, 7:09 pm, Kev Dwyer wrote:
>> On Sun, 07 Nov 2010 10:56:46 +0530, Rustom Mody wrote:
>> > There are a large number of test frameworks in/for python. Apart
>> > from what comes builtin with python t
On Sun, 07 Nov 2010 10:56:46 +0530, Rustom Mody wrote:
> There are a large number of test frameworks in/for python. Apart from
> what comes builtin with python there seems to be nose, staf, qmtest etc
> etc.
>
> Is there any central place where these are listed with short
> descriptions? 'Test f
On Wed, 03 Nov 2010 11:17:32 +, Steven D'Aprano wrote:
> On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote:
>
>> Hope this isn't too O/T - I was just wondering how people read/send to
>> this mailing list, eg. normal email client, gmane, some other software
>> or online service?
>
> Usenet
On Mon, 18 Oct 2010 11:52:36 -0700, robinsieb...@gmail.com wrote:
> Here is an example straight out of the help, and for some reason, it is
> not working. I get the error messages in the log, but I do not get the
> info messages in the console.
>
Hello,
I don't see this code in the help; nevert
On Sun, 19 Sep 2010 12:55:43 -0500, Default User wrote:
> Consider:
>
> Can someone do development of programs for use on Windows systems, but
> developed totally on a GNU/Linux system, using standard, contemporary 32
> and / or 64-bit PC hardware?
>
> This would be for someone who can not or wi
On Sun, 19 Sep 2010 02:35:15 +1000, Lie Ryan wrote:
> I was expecting this to work:
>
> import logging
> logger = logging.getLogger(__name__)
> logger.warn('this is a warning')
>
> instead it produced the error:
>
> No handlers could be found for logger "__main__"
>
>
> However, if in
On Mon, 16 Aug 2010 08:17:20 -0700, Steve Ferg wrote:
> In this little script:
>
>
> import pdb
> pdb.set_trace()
> def main():
> xm = 123
> print("Hello,world!")
> main()
>
>
> When I run this, I use pdb to step through it until I reach the point in
> main() where the xm varia
On Mon, 16 Aug 2010 08:17:20 -0700, Steve Ferg wrote:
> In this little script:
>
>
> import pdb
> pdb.set_trace()
> def main():
> xm = 123
> print("Hello,world!")
> main()
>
>
> When I run this, I use pdb to step through it until I reach the point in
> main() where the xm varia
On Sun, 14 Mar 2010 14:40:34 -0700, _wolf wrote:
>> There's a recent thread about this on the python-dev list,
>
> pointers? i searched but didn’t find anything.
http://mail.python.org/pipermail/python-dev/2010-March/098354.html
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 14 Mar 2010 08:57:36 -0700, _wolf wrote:
>
> how can i use re2 from Python?
>
Hello Wolf,
There's a recent thread about this on the python-dev list,
Unfortunately it seems to suggest that there are no Python
bindings at present.
Cheers,
Kev
--
http://mail.python.org/mailman/lis
On Wed, 10 Mar 2010 16:17:29 -0800, robert somerville wrote:
> hi;
> i am trying to get some legacy python code (which i no nothing about)
> working with tries to import dbi and odbc (the import fails ...) it
> looks like these modules are deprecated ?? if so is there a work around
> , if not dep
On Fri, 12 Feb 2010 13:08:59 -0400, Juan Carlos Rodriguez wrote:
Hello Juan Carlos,
You're better off raising this on the mod_python list, however...
Python is looking for a module called mptest, and cannot find it.
Have you created the mptest.py module? (It should contain the handler function
On Sun, 07 Feb 2010 19:36:10 +0100, Pablo Recio Quijano wrote:
> Hi!
>
> I'm finishing a project writen in Python, and I realize about the
> document PEP8 - Style Guide for Python Code [1].
>
> Is there any app or script that checks if my project pass that style
> guide? I also worked with Drupa
On Fri, 05 Feb 2010 21:54:48 -0600, Jordan Uchima wrote:
Hello Jordan,
You could try something like this (not tested, and maybe I don't
quite "get" the rules):
"""
Nim game.
In response to question on c.l.p.
"""
# Start with pot of thirteen pieces and two players.
# Each player takes 1 - 4 p
On Thu, 31 Dec 2009 10:28:55 +0530, Vikash Dhankar wrote:
> Hi,
> I am newbie in the python, I am stuck into a small problem.
>
> Me and my friend are working on the gedit based Twitter plugin.
> http://code.google.com/p/gedit-twitter-plugin/
>
> Now I want to add the tiny URL thing into this. I
On Sat, 19 Dec 2009 06:36:32 +1100, Astan Chee wrote:
> Kev Dwyer wrote:
>> Hello Astan,
>>
>> Your code executes without error for me on Win98 (!) with Python 2.5 or
>> XP with Python 2.6.
>>
>> It would help people to help you if you could provide the *exa
On Sat, 19 Dec 2009 06:36:32 +1100, Astan Chee wrote:
> Kev Dwyer wrote:
>> Hello Astan,
>>
>> Your code executes without error for me on Win98 (!) with Python 2.5 or
>> XP with Python 2.6.
>>
>> It would help people to help you if you could provide the *exa
On Sat, 19 Dec 2009 04:56:34 +1100, Astan Chee wrote:
> Hi,
> I don't know if my last mail made it or not but here it is again. I'm
> trying to launch standard mail app in windows and after looking around
> most look like this:
>
> import urllib, webbrowser, win32api
> def mailto_url(to=None,subj
2009/11/21 Victor Subervi
> On Sat, Nov 21, 2009 at 12:04 PM, Kev Dwyer wrote:
>
>> On Sat, 21 Nov 2009 08:19:52 -0500, Victor Subervi wrote:
>>
>> Hello Victor,
>>
>> The information that you have sent comes from the client side of the
>> transaction, s
On Sat, 21 Nov 2009 08:19:52 -0500, Victor Subervi wrote:
Hello Victor,
The information that you have sent comes from the client side of the
transaction, so it isn't possible to tell why the server disconnected.
Assuming that there is an SMTP server listening on port 25, you need to
check the
On Fri, 20 Nov 2009 11:58:00 -0400, Victor Subervi wrote:
Hello Victor,
Carsten's well-specified instruction has identified your problem.
>[r...@13gems globalsolutionsgroup.vi]# python -c "import email; print
>email"
>
There is a file named email.pyc, most likely in your current directory,
th
On Fri, 20 Nov 2009 07:58:55 -0500, Victor Subervi wrote:
> On Thu, Nov 19, 2009 at 5:01 PM, Kev Dwyer
> wrote:
>
>> On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote:
>>
>> Hello Victor,
>>
>> There are some pages on the internet that suggest
On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote:
Hello Victor,
There are some pages on the internet that suggest that this problem my be
caused by a module named email.py (or email.pyc) in your pythonpath. If
you try import smtplib in the interpreter do you get this error message?
On Fri, 04 Sep 2009 12:34:32 +0100, jorma kala wrote:
> Hi,
> I've created a logger like this:
>
>
> LOG_FILENAME = 'test.txt'
> fh=logging.FileHandler(LOG_FILENAME,'w') logger1 =
> logging.getLogger('myLogger1') logger1.addHandler(fh)
> logger1.setLevel(logging.INFO)
> logger1.info('message fro
On Sun, 16 Aug 2009 20:29:15 +, kj wrote:
> I'm looking for a XML parser that produces an object with full XPath
> support. What I've been using up to now, xml.etree.ElementTree, fails
> to support Xpath predicates, as in "sp...@eggs='3']/ham".
>
> What I'm trying to do is to read-in a large
On Sun, 16 Aug 2009 16:57:41 +0900, Chang Min Jeon wrote:
Hello,
You have placed recursive calls to the function in a number of different
locations; when len(macro) becomes zero control will return to the
calling function, but this calling function may have more code to
execute, including fur
80 matches
Mail list logo