Make standalone gui-enabled app for LINUX
Hi I know there are tools like cx_freeze or nuitka for making a linux standalone python app. but i couldn't find a good tutorial about how to making a portable gui-enabled python3 app in linux. by gui-enabled i mean application which use any gui libs like pygobject, qt or wx. I know most of linux distros have python installed(usually version 2) and a package manager to install packages with their dependencies(rpm or deb). but i'm thinking of really portable app with all dependencies included to run easily almost on every linux OSs with no trouble even for new or less experienced linux users. So again how can i make a portable python3 + gui(pygobject, qt, wx) for linux? I found some helpful guide for windows, but what about linux? Thanks. -- https://mail.python.org/mailman/listinfo/python-list
Re: Make standalone gui-enabled app for LINUX
I have no experience with pyqt and so pyqtdeploy but it seems what i need. > I haven't announced this on the list yet, but... > > http://pyqt.sourceforge.net/Docs/pyqtdeploy/ > > Phil But i think pyinstaller doesn't work with python3. On Friday, March 6, 2015 at 12:58:11 AM UTC+3:30, Christian Gollwitzer wrote: > Use pyinstaller. It creates a "portable app", i.e. either single file or > directory which can be run on (nearly) any system. However the resulting > files can be awfully big. I use it with a relatively small program that > depends on numpy/matplolib, and that pulls in ~100 MB worth of libraries. > > Christian -- https://mail.python.org/mailman/listinfo/python-list
formal math ?
Hi, I have just discovered python and it seems so easy ans so powerful to me that it remind me matlab or maple programming language (sorry free software purists ears). So I was wondering if there a sort of formal math library, that can do a thing like: lib.solve("x+1=0") -> x=-1 I have checked numarray and I think it can not do this. Thanks in advance, Mehdi -- http://mail.python.org/mailman/listinfo/python-list
Re: formal math ?
Thanks you two. I was just thinking if it was possible. If I really want to do this, maybe the best way is to do an interface to python of an open source project I have just discovered : maxima. So long, -- http://mail.python.org/mailman/listinfo/python-list
py2exe and pyparallel
HiI want to convert a .py file into .exe with py2exe(I use Pyparallel(import parallel) in that program)after running setup.py py2exe this massage appear:"The following modules appear to be missing: ['parallelioctl' , 'paralleljava'] " how I can remove this Problem?thanks See the all-new, redesigned Yahoo.com. Check it out. -- http://mail.python.org/mailman/listinfo/python-list
poblem regarding opening a html file
Hi I have a GUI application (wxpython) that calls another GUI Application. I m using os.system (cmd) to launch The second GUI, in the second GUI I m trying to open the html file using the os.startfile (filename) function but It takes lots of time to open the html file. If I am running only the second application then 'os.startfile' quickly open the html file. Any one can help me to solve this problem. Thanks. Sibtey -- http://mail.python.org/mailman/listinfo/python-list
Multiprocessing takes higher execution time
Hi, I use multiprocessing to compare more then one set of files. For comparison each set of files (i.e. Old file1 Vs New file1) I create a process, Process(target=compare, args=(oldFile, newFile)).start() It takes 61 seconds execution time. When I do the same comparison without implementing multiprocessing, it takes 52 seconds execution time. The parallel processing time should be lesser. I am not able to get advantage of multiprocessing here. Any suggestions can be very helpful. Thanks, Gopal -- http://mail.python.org/mailman/listinfo/python-list
RE: Multiprocessing takes higher execution time
Hello, Please see the code I have send in attachment. Any suggestions will highly appreciate. Thanks and Regards, Gopal -Original Message- From: Grant Edwards [mailto:inva...@invalid] Sent: Wednesday, January 07, 2009 8:58 PM To: python-list@python.org Subject: Re: Multiprocessing takes higher execution time On 2009-01-07, Steve Holden wrote: >> I use multiprocessing to compare more then one set of files. >> >> For comparison each set of files (i.e. Old file1 Vs New file1) >> I create a process, >> >> Process(target=compare, args=(oldFile, newFile)).start() >> >> It takes 61 seconds execution time. >> >> When I do the same comparison without implementing >> multiprocessing, it takes 52 seconds execution time. > My first suggestion would be: show us some code. We aren't > psychic, you know. I am! He's only got one processor, and he's just been bit by Amdahl's law when P<1 and S<1. There you have a perfectly "psychic" answer: an educated guess camoflaged in plausible-sounding but mostly-bullshit buzzwords. A better psychic would have avoided making that one falsifiable statement (he's only got one processor). -- Grant Edwards grante Yow! Hello. Just walk at along and try NOT to think visi.comabout your INTESTINES being almost FORTY YARDS LONG!! The oldProjects and newProjects will contains zip files i.e(oldxyz1.zip,oldxyz2.zip, newxyz2.zip,newxyz2.zip) it will unzip both the zip files and compare all the files between old and new (mdb files or txt files) and gives the result. I do this comparision for n number set of zip files and i assigne each set of zip files comparision to a process. class CompareProjects(dict): """ Compares the set of projects(zip files) """ def __init__(self, oldProjects, newProjects, ignoreOidFields, tempDir): self.oldProjects = oldProjects self.newProjects = newProjects def _compare(self, tempDir, ignoreOidFields): """ Compares each project """ projects = set(self.oldProjects.keys()).union(set(self.newProjects.keys())) progress.totalProjects = len(projects) progress.progress = 0 que = Queue() for count,project in enumerate(projects): oldProject = self.oldProjects.get(project) if project in self.oldProjects else None newProject = self.newProjects.get(project) if project in self.newProjects else None prj = '_'.join((os.path.basename(oldProject)[:-4], os.path.basename(newProject)[:-4])) cmpProj = CompareProject(oldProject, newProject, ignoreOidFields, tempDir) p = Process(target=cmpProj._compare, args=(os.path.join(tempDir, prj), ignoreOidFields, False, project, que)) p.start() print 'pid>>',p.pid while progress.totalProjects != len(self): if not que.empty(): proj, cmpCitect = que.get_nowait()#get() self.__setitem__(proj, cmpCitect) progress.progress += 1 else: time.sleep(0.001) class CompareProject(object): """ compares two projects """ def __init__(self, oldProject, newProject, ignoreOidFields, tempDir, unitCompare = False): self.oldProject = oldProject self.newProject = newProject def _compare(self, tempDir, ignoreOidFields, unitCompare, project=None, que=None): """ Compares the extracted .mdb files and txt files """ oldProjectDir = os.path.join(tempDir,'oldProject') newProjectDir = os.path.join(tempDir,'newProject') # get .mdb files and txt files from the project oldmdbFiles,oldTxtFiles = self.getFiles(self.oldProject, oldProjectDir) newmdbFiles,newTxtFiles = self.getFiles(self.newProject, newProjectDir) #start comparing mdb files and txt files self.comparedTables = ComparedTables(oldDbfFiles, newDbfFiles, ignoreOidFields, tempDir) self.comparedTxtFiles = ComparedTextFiles(oldTxtFiles, newTxtFiles, tempDir) if que and project: que.put_nowait((project, self)) class ComparedTables(dict): """ This class compare two mdb files and it each tables and gives the results """ class ComparedTextFiles(dict): """ This class compare two txt files line by line and give the diff results """ ..-- http://mail.python.org/mailman/listinfo/python-list
RE: Multiprocessing takes higher execution time
Thanks Nick. It processes 10-15 projects(i.e. 10-15 processes are started) at once. One Zip file size is 2-3 MB. When I used dual core system it reduced the execution time from 61 seconds to 55 seconds. My dual core system Configuration is, Pentium(R) D CPU 3.00GHz, 2.99GHz 1 GB RAM Regards, Gopal -Original Message- From: Nick Craig-Wood [mailto:n...@craig-wood.com] Sent: Thursday, January 08, 2009 3:01 PM To: python-list@python.org Subject: Re: Multiprocessing takes higher execution time Sibtey Mehdi wrote: > I use multiprocessing to compare more then one set of files. > > For comparison each set of files (i.e. Old file1 Vs New file1) > I create a process, > > Process(target=compare, args=(oldFile, newFile)).start() > > It takes 61 seconds execution time. > > When I do the same comparison without implementing > multiprocessing, it takes 52 seconds execution time. > The oldProjects and newProjects will contains zip files > i.e(oldxyz1.zip,oldxyz2.zip, newxyz2.zip,newxyz2.zip) > it will unzip both the zip files and compare all the files between old > and new (mdb files or txt files) and gives the result. > I do this comparision for n number set of zip files and i assigne each > set of zip files comparision to a process. I had a brief look at the code and your use of multiprocessing looks fine. How many projects are you processing at once? And how many MB of zip files is it? As reading zip files does lots of disk IO I would guess it is disk limited rather than anything else, which explains why doing many at once is actually slower (the disk has to do more seeks). -- Nick Craig-Wood -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list
ImportError: No module named MySQLdb
Hi Guys, I have been working in python from some time now, while writing a python script i used: import MySQLdb in my script to do some database related operations. When i tried to execute the same script on another system it gave me an error as: "ImportError: No module named MySQLdb" though mysqldb was already installed on that system, and python 2.5.2 was present on that machine. i have tried uninstalling and installing of mysql again and again but to no avail. please help me resolve the issue. Thanks & Regards Syed -- http://mail.python.org/mailman/listinfo/python-list
Re: ImportError: No module named MySQLdb
Thanks Gabriel, it worked after installing MySQL (database engine). Regards Syed On Tue, Apr 8, 2008 at 10:23 AM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Tue, 08 Apr 2008 00:35:29 -0300, syed mehdi <[EMAIL PROTECTED]> > escribió: > > > I have been working in python from some time now, > > while writing a python script i used: import MySQLdb in my script to do > > some > > database related operations. > > When i tried to execute the same script on another system it gave me an > > error as: > > "ImportError: No module named MySQLdb" > > though mysqldb was already installed on that system, and python 2.5.2 > was > > present on that machine. > > i have tried uninstalling and installing of mysql again and again but to > > no > > avail. > > MySQL (the database engine) is not the same as MySQLdb (the Python > package). You have to download and install it: > http://mysql-python.sourceforge.net/ > > -- > Gabriel Genellina > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list
argument to python cgi script
Hi Guys, If someone can help me in telling how can i pass arguments to python cgi script then that will be good. like if i want to pass "some argument" to my remote python script, by calling something like: http://localhost/cgi-bin/test.py?some\ argument. What is the correct way of sending arguments in this way, and how can i decode/receive them in test.py Thanks & Regards Syed -- http://mail.python.org/mailman/listinfo/python-list
python server side scripting with apache2
Hi Guys, I want to do server side scripting in python for one of my applications. So after installing apache2, python lib for apache2 (libapache2), and doing some changes in default file in /etc/apache2/sites-available i was able to execute python scripts in /var/www/ directory from client side. but i want to place all of my python scripts in some other directory like /home/username/myserver, so what changes i have to make in configuration files at /etc/apache2/apache2.conf or some other place (like /etc/apache2/sites-available/default), so that my server side scripts placed in this folder (/home/username/myserver) gets executed from client side using some url like http://machine-ip/home/username/myserver/abc.py. Thanks & Regards Syed -- http://mail.python.org/mailman/listinfo/python-list
Memory Error
I am using the cPickle module to serialization and de-serialization of heavy python object (80 MB). When I try to save the object it gives the memory Error. Any one can help me out of this problem. I am pickling the object as: def savePklFile(pickleFile, data): pickledFile = open(pickleFile, 'wb') cPickle.dump(data, pickledFile, -1) pickledFile.close() my system has 2 GB of RAM. Thanks, Sibtey -- http://mail.python.org/mailman/listinfo/python-list
NASA using Python / Django for NEBULA (cloud comp.)
Hello Python devs! I'm supporting NASA on their NEBULA project and they're looking for Python / Django experts to join their team here in Mountain View, CA. If you're interested, let me know and we can talk more on how they're using Django in their environment! Thanks, Mehdi -- http://mail.python.org/mailman/listinfo/python-list