473,785 Members | 2,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Standalone applications ?

Hi

I just finished developing an application using Qt Designer in Python that
uses pyqwt, gpib, etc. How does one create standalone executables for
applications such as these ?

Thanks.
Aug 14 '05 #1
9 5153
On Sat, 13 Aug 2005 23:29:27 -0400, Madhusudan Singh wrote:
Hi

I just finished developing an application using Qt Designer in Python that
uses pyqwt, gpib, etc. How does one create standalone executables for
applications such as these ?


Generally, you can't, as Python is an interpreted programming language.
However, there are some projects like py2exe in Windows which approximates
what you want to do - port the Python code into a stand-alone application.

Aug 14 '05 #2
Paolo Alexis Falcone wrote:
On Sat, 13 Aug 2005 23:29:27 -0400, Madhusudan Singh wrote:
Hi

I just finished developing an application using Qt Designer in Python
that uses pyqwt, gpib, etc. How does one create standalone executables
for applications such as these ?


Generally, you can't, as Python is an interpreted programming language.
However, there are some projects like py2exe in Windows which approximates
what you want to do - port the Python code into a stand-alone application.


I should have added that my platform is Linux.

Aug 14 '05 #3
> I should have added that my platform is Linux.

http://davidf.sjsoft.com/mirrors/mcm.../install1.html

Squeeze works on Linux too.
Aug 14 '05 #4
TPJ
> I should have added that my platform is Linux.

In this case you shouldn't bother yourself with executables. Python is
available on any major distribution.

My Python apps are available as pyc files for Linux (and for those
Windows users, who have Python installed) and as executables for Win
(for those Windows users, who have no Python installed).

Aug 14 '05 #5
On 14 Aug 2005 03:49:08 -0700, TPJ <tp*****@interi a.pl> wrote:
I should have added that my platform is Linux.


In this case you shouldn't bother yourself with executables. Python is
available on any major distribution.

My Python apps are available as pyc files for Linux (and for those
Windows users, who have Python installed) and as executables for Win
(for those Windows users, who have no Python installed).


What about any dependencies? While Linux distros may have Python
installed, it may be an older version, and may not have one or two
libraries that your app needs. E.g., I have Python that came with my
FC2 install, but it doesn't come with Tkinter, so if you build a
Tkinter-based app and just send me the .pyc file, it won't work.
--

# p.d.
Aug 14 '05 #6
TPJ wrote:
I should have added that my platform is Linux.


In this case you shouldn't bother yourself with executables. Python is
available on any major distribution.

My Python apps are available as pyc files for Linux (and for those
Windows users, who have Python installed) and as executables for Win
(for those Windows users, who have no Python installed).


My python app uses a lot of modules, some custom developed by myself (and
which I am not planning on releasing right now). Which is why I posed the
question in the first place (that and curiosity).
Aug 14 '05 #7
henne wrote:
> I should have added that my platform is Linux.


http://davidf.sjsoft.com/mirrors/mcm.../install1.html

Squeeze works on Linux too.


It tells me that the installer files are not found.
M
Aug 15 '05 #8
TPJ
It's just the same as with Java, GTK+, Qt or any other
library/platform. If you're doing development with Java, you can use
any version that you like (for example the version 1.5) - and your
application probably won't be able to run by an older version of Java.
The same is with, for example, GTK+ library - if you use the version
2.6, your application might not work on systems with older version of
the GTK+ library.

And the same is with Python. When you develop application with Python,
you must use some version of Python - and this is your dependency. You
might say that your application needs a particular version of Python
(and eventually particular versions of external modules).

Aug 15 '05 #9
TPJ
Well, I think I must answer to my own post...

There is at least one reason to bother with executables. I have just
read a message. Someone wanted to run a program written in Python +
wxPython. But he has failed. Why? Because the version of wxPython on
his system was newer and it's API was different.

Of course he could install an older (the proper) version of wxPython as
well... But he's not a developer. He don't know how to install Python,
wxPython and so on... And he's not interested in such knowledge.

So there *is* a reason for making executables.

Aug 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2976
by: uri bushey | last post by:
I have a Python program that is built on an infrastructure of quite a few other programs, but I would like to create a standalone nonetheless. It doesn't necesarily have to be its own executable, although this is the most attractive option - it could just mean distributing the entire python distribution with it in an installer or something. However, here is what I have called in my python file: Tkinter, and multiple Pmw widgets...
0
1120
by: Barry Warsaw | last post by:
Python 2.4 final will probably be released in a few hours so this seems like a good time to release the standalone email package, version 3.0 final. Unless there's some last second snafu, this will be identical to the version released with Python 2.4. email 3.0 is compatible with Python 2.3 and 2.4. If you need to support earlier versions of Python, stick with email 2.5.5. For documentation (until Fred flips the "current" docs...
5
2547
by: Martin Kock | last post by:
Hi, I'm writing a small application in Borland C++ Builder 4. Just for your information, it is a win32 application with a GUI, programmed in WinXP, but supposed to run on Win98. Anyways, my executable seems to require some Borland DLL files to be on the system in order to run. How do I create a standalone application, that anyone can run from any computer?
3
7514
by: Bob | last post by:
Hi! I need a standalone javascript engine so that I can run the javascript statements directly from the command line(just like the interpreted languages) without using any internet environment. Is it possible? or Is such kind of an engine is available? Since modern browser comes with the inbuilt javascript facility, I knwo there must be some inbuilt-plugin for executing javascript commands.? Can separate that plugin from the browser?
5
5631
by: Robin Johnson | last post by:
Hi, I've written an engine in Javascript for running text adventure games on a web page: http://www.robinjohnson.f9.co.uk/adventure/hamlet.html (That's the only game I've written with it so far, and a version of the engine that is slightly less sophisticated than my development copy, which has cleaner code and a more authentic Infocom-style scrolling display, but I digress.)
1
1553
by: VK | last post by:
It is possibly more suitable to address this question to W3C mailing list, but I'm trying here first. Could anyone comment on <http://www.w3.org/TR/REC-xml/#sec-rmd> The first statement says: "If there are external markup declarations but there is no standalone document declaration, the value "no" is assumed."
4
2072
by: comp.lang.php | last post by:
I downloaded the tarball and while was able to compile within PHP with no problems, I am having memory timeout issues involving image manipulation with extremely large images (800K - 2mb). Requirements are to create thumbnails for even these banner-sized images, but PHP + GD + = too much memory. I'm trying to prove that it is undoable, though the suggestion was to do a command-line GD call to the image instead of using the PHP...
7
11666
by: tah | last post by:
Hey, Can someone please clarify, confirm, or set me straight on my understanding of a standalone="yes" attribute in the xml version element? I assume it means that the xml document containing it is standalone, and does not refer to any external document to define types. In other words, it doesn't use an external dtd to validate any types - everything used would be defined within the doc itself. In other words, you would never see an xml...
7
6564
by: dspfun | last post by:
How do you create a standalone C program? With standalone C program I mean it should run "freestanding" on a CPU without an OS or other supporting software/libraries linked to the C program. After the bios/ setup has done its initializations and "stuff" I would like to be able to continue execution with my own C program. The C program will be really simple to start with, for example just write an integer value to a memory address. ...
0
10325
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10148
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8972
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.