Re: How to create an executable from python script in windows

2012-11-27 Thread Prakash
It says like *** copy extensions *** *** copy dlls *** copying C:\Python24\lib\site-packages\py2exe\run_w.exe -> C:\Program Files (x86)\Notepad++\dist\build-check-test.exe Adding python24.dll as resource to C:\Program Files (x86)\Notepad++\dist\build-check-test.exe The following modules appear

Re: How to create an executable from python script in windows

2012-11-27 Thread Steven D'Aprano
On Tue, 27 Nov 2012 22:32:53 -0800, Prakash wrote: > I had created a python script which actually uses pywin32 com. It opens > few excel files and process it and produce output. Whenever I try to > create an windows exe file usin py2exe it diplays error. Please guide me > I am a noob in creating w

Re: please help me to debud my local chat network program

2012-11-27 Thread Chris Angelico
On Wed, Nov 28, 2012 at 4:47 PM, Minh Dang wrote: > ok, here is my code, zip > http://www.mediafire.com/?ob4kokda81fj6xc Thanks! That's a distinct improvement :) That code doesn't exactly match the traceback, though; there's client.py not pclient.py and the line numbers don't match. So I have to

Re: please help me to debud my local chat network program

2012-11-27 Thread Minh Dang
ok, here is my code, zip http://www.mediafire.com/?ob4kokda81fj6xc -- http://mail.python.org/mailman/listinfo/python-list

Re: "non central" package management

2012-11-27 Thread Roy Smith
In article , Miki Tebeka wrote: > > When we deploy, we create a new virtualenv, then do > > "pip install -r requirements.txt". > 1. Do you do that for every run? Well, sort of. We are currently using a single virtualenv per deployment host. Each time we deploy new code, we checkout all th

Re: "non central" package management

2012-11-27 Thread Miki Tebeka
On Tuesday, November 27, 2012 8:21:48 PM UTC-8, Roy Smith wrote: > What we do is run "pip freeze > requirements.txt" and check that into > version control. That's the idea I was toying with, thanks for confirming. > When we deploy, we create a new virtualenv, then do > "pip install -r requirem

Re: "non central" package management

2012-11-27 Thread Roy Smith
In article <8ea52e1b-2e02-40b2-8ce0-fcce7fc2e...@googlegroups.com>, Miki Tebeka wrote: > Greetings, > > The usual package mangers (easy_install, pip ...) install packages in one > central location. > > I'm looking for a solution that will allow every project (which run on the > same machine)

"non central" package management

2012-11-27 Thread Miki Tebeka
Greetings, The usual package mangers (easy_install, pip ...) install packages in one central location. I'm looking for a solution that will allow every project (which run on the same machine) use it's own packages and versions of packages. (Context - we're running several applications on the s

Re: please help me to debud my local chat network program

2012-11-27 Thread Chris Angelico
On Wed, Nov 28, 2012 at 1:50 PM, Minh Dang wrote: > Hello everybody, i am doing my project: local network chat using python > here is my file > http://www.mediafire.com/?cc2g9tmsju0ba2m Hmm. Might I recommend some other means of sharing your code? The unrar-free utility from the Debian repo won't

Re: please help me to debud my local chat network program

2012-11-27 Thread Terry Reedy
On 11/27/2012 9:50 PM, Minh Dang wrote: Hello everybody, i am doing my project: local network chat using python here is my file http://www.mediafire.com/?cc2g9tmsju0ba2m I am not familiar with .rar files and whether I can open them. Better to upload a standard .zip. when i compile client.py

Re: Migrate from Access 2010 / VBA

2012-11-27 Thread Michael Torrie
On 11/27/2012 05:06 PM, David Bolen wrote: > I went through a very similar transition a few years ago from > standalone Access databases (with GUI forms, queries and reports, as > well as replication) to a pure web application with full reporting > (albeit centrally designed and not a report design

please help me to debud my local chat network program

2012-11-27 Thread Minh Dang
Hello everybody, i am doing my project: local network chat using python here is my file http://www.mediafire.com/?cc2g9tmsju0ba2m when i compile client.py, there is some bug Traceback (most recent call last): File "C:\Users\MINH_IT\workspace\project\src\project\pclient.py", line 303, in sys.exit(

Re: deepcopy questions

2012-11-27 Thread MRAB
On 2012-11-27 23:59, lars van gemerden wrote: Hi, I get a very strange result when using deepcopy. The following code: def __deepcopy__(self, memo): independent = self.independent() if independent is self: out = type(self)() out.__dict__ = copy.d

Re: deepcopy questions

2012-11-27 Thread Steven D'Aprano
On Tue, 27 Nov 2012 15:59:38 -0800, lars van gemerden wrote: > Hi, > > I get a very strange result when using deepcopy. The following code: > > def __deepcopy__(self, memo): > independent = self.independent() > if independent is self: > out = type(self)() >

Re: Migrate from Access 2010 / VBA

2012-11-27 Thread David Bolen
kgard writes: > I am the lone developer of db apps at a company of 350+ > employees. Everything is done in MS Access 2010 and VBA. I'm > frustrated with the limitations of this platform and have been > considering switching to Python. I've been experimenting with the > language for a year or so,

deepcopy questions

2012-11-27 Thread lars van gemerden
Hi, I get a very strange result when using deepcopy. The following code: def __deepcopy__(self, memo): independent = self.independent() if independent is self: out = type(self)() out.__dict__ = copy.deepcopy(self.__dict__, memo) print self._

Re: Bugs: Content-Length not updated by reused urllib.request.Request / has_header() case-sensitive

2012-11-27 Thread Terry Reedy
On 11/12/2012 8:58 PM, Terry Reedy wrote: On 11/12/2012 4:35 PM, Terry Reedy wrote: import urllib.request opener = urllib.request.build_opener() request = urllib.request.Request("http://example.com/";, headers = {"Content-Type": "application/x-www-form-urlencoded"}) opener.open(reques

Re: Re: Managing multiple packages

2012-11-27 Thread Thomas Bach
On Mon, Nov 26, 2012 at 07:58:22PM -0600, Evan Driscoll wrote: > I'm also pretty confused about the > distutils/setuptools/distribute/distutils2 landscape and what the > differences are (at least between the first 3) and what their > relationships with standard Python are. In my opinion packaging

Re: Compare list entry from csv files

2012-11-27 Thread Neil Cerutti
On 2012-11-27, Anatoli Hristov wrote: > Thank you all for the help, but I figured that out and the > program now works perfect. I would appreciate if you have some > notes about my script as I'm noob :) Here is the code: > > import csv > > origf = open('c:/Working/Test_phonebook.csv', 'rt') > secf

Re: Compare list entry from csv files

2012-11-27 Thread Dave Angel
On 11/27/2012 01:57 PM, Anatoli Hristov wrote: > > > Thank you all for the help, but I figured that out and the program now > works perfect. Wow! > I would appreciate if you have some notes about my > script as I'm noob :) > Here is the code: > > import csv > > origf = open('c:/Working/Test_pho

Re: Migrate from Access 2010 / VBA

2012-11-27 Thread Wolfgang Keller
> The reporting question is the one that gives me the greatest concern > when I think about switching to Python. Not Python, but FOSS, cross-platform and it works with PostgreSQL: http://www.xtuple.com/openrpt Apart from that one, among the mentioned DB RAD frameworks, at least Dabo and Camelot

Re: Migrate from Access 2010 / VBA

2012-11-27 Thread Wolfgang Keller
> One program that claims to be working towards Access replacement is > Kexi. It's not written in Python, but I think it does use Python as a > scripting language, just as Access uses VBA. I doubt it's anywhere > near Access yet, but it's worth a look: > > http://kexi-project.org/about.html Unf

Re: changing dicts in a threaded environment ?

2012-11-27 Thread Terry Reedy
On 11/27/2012 7:53 AM, Bart Thate wrote: [Answers based on reading without thread experience.] i use python3 now and i need to be able to remove elements from a dict in a thread safe manner. Essentially no change from py2. kinda like a Queue.Queue thing but then in a dict, so i can pass aro

Re: Compare list entry from csv files

2012-11-27 Thread Anatoli Hristov
On Tue, Nov 27, 2012 at 4:05 PM, Neil Cerutti wrote: > On 2012-11-27, Anatoli Hristov wrote: >> Thanks for your help. I will do my best for the forum :) >> >> I advanced a little bit with the algorithm and at least I can >> now extract and compare the fields :) For my beginner skills I >> think t

RE: How to sort list of String without considering Special characters and with case insensitive

2012-11-27 Thread Prasad, Ramit
san wrote: > > Please let me know how to sort the list of String in either ascending / > descending order without considering > special characters and case. > ex: list1=['test1_two','testOne','testTwo','test_one'] > Applying the list.sort /sorted method results in sorted list ['test1_two', > 'te

Re: os.popen and the subprocess module

2012-11-27 Thread Mark Lawrence
On 27/11/2012 18:00, Andrew wrote: Hello world, I'm working on a script that will run an executable obtaine the output from the executable and do some analysis on the output. Essentially the script runs the executable analyses the data. I'm looking into os.popen and the subprocess module, implem

RE: os.popen and the subprocess module

2012-11-27 Thread Prasad, Ramit
Andrew wrote: > > Hello world, > > I'm working on a script that will run an executable obtaine the output > from the executable > and do some analysis on the output. Essentially the script runs the > executable analyses > the data. > I'm looking into os.popen and the subprocess module, implement

os.popen and the subprocess module

2012-11-27 Thread Andrew
Hello world, I'm working on a script that will run an executable obtaine the output from the executable and do some analysis on the output. Essentially the script runs the executable analyses the data. I'm looking into os.popen and the subprocess module, implementing os.popen is easy but i

Re: How to sort list of String without considering Special characters and with case insensitive

2012-11-27 Thread MRAB
On 2012-11-27 17:31, san wrote: Please let me know how to sort the list of String in either ascending / descending order without considering special characters and case. ex: list1=['test1_two','testOne','testTwo','test_one'] Applying the list.sort /sorted method results in sorted list ['test1_tw

Re: Migrate from Access 2010 / VBA

2012-11-27 Thread kagard
On Nov 26, 11:21 am, Michael Torrie wrote: > On 11/22/2012 08:19 PM, kgard wrote: > > > I am the lone developer of db apps at a company of 350+ employees. > > Everything is done in MS Access 2010 and VBA. I'm frustrated with the > > limitations of this platform and have been considering switching

How to sort list of String without considering Special characters and with case insensitive

2012-11-27 Thread san
Please let me know how to sort the list of String in either ascending / descending order without considering special characters and case. ex: list1=['test1_two','testOne','testTwo','test_one'] Applying the list.sort /sorted method results in sorted list ['test1_two', 'testOne', 'testTwo', 'test_o

Re: Compare list entry from csv files

2012-11-27 Thread Neil Cerutti
On 2012-11-27, Anatoli Hristov wrote: > Thanks for your help. I will do my best for the forum :) > > I advanced a little bit with the algorithm and at least I can > now extract and compare the fields :) For my beginner skills I > think this is too much for me. Now next step is to add the > second

Re: Compare list entry from csv files

2012-11-27 Thread Anatoli Hristov
On Tue, Nov 27, 2012 at 4:23 AM, Dave Angel wrote: > On 11/26/2012 05:27 PM, Anatoli Hristov wrote: >> I understand, but in my case I have for sure the field "Name" in the >> second file that contains at least the first or the last name on it... >> So probably it should be possible:) >> The Name "

changing dicts in a threaded environment ?

2012-11-27 Thread Bart Thate
Hello All ;] i wondered if somebody could bring me up to date on the following subject: i use python3 now and i need to be able to remove elements from a dict in a thread safe manner. kinda like a Queue.Queue thing but then in a dict, so i can pass arond my dict based objects as parameters aron

Python printout

2012-11-27 Thread Avrajit
I have multiple list and want to invoke a single prinout which will give a print preview of all list in Grid format in a different pages. I have tried wx.lib.printout.PrintTable but it takes only one table at a time. Any clues how to achieve this? -- http://mail.python.org/mailman/listinfo/pyth

Modules or Package for my application

2012-11-27 Thread Stone
Dear developers, I am creating application (originally written in perl) which will take care about replication from one system to the another system over command rsync. It will simulate High-availability solution. The application will contains main module called like ha.py and another modules w