"""
Minimal setup.py example, run with:
% python setup.py py2app
"""
from distutils.core import setup
import py2app
setup(
app = ['main.py'],
)
That is a sample code of wiki.
I have a file 'main.py' and several sub-folders.
After I execute 'pythonw setup.py py2exe', I see 2 folders, 'dist' & 'build'
which is the same as py2exe.
I open the 'dist' folder and see a file 'main'. Then I double-click the
'main' and appeared the error message.
'IOError:[Errno 2] No such file or directory:
'/user/austin/Desktop/disk/main.app/Contents/Resources/log/eventlog.xml
I feel so wildered because 'main.app' should be a file not a folder.
I was wondering if some extra codes needed by setup.py
Could anyone give me an advice?
Thanks a lot. 1 1998
On 31-dec-04, at 11:12, Austin wrote: """ Minimal setup.py example, run with: % python setup.py py2app """
from distutils.core import setup import py2app setup( app = ['main.py'], )
That is a sample code of wiki. I have a file 'main.py' and several sub-folders. After I execute 'pythonw setup.py py2exe', I see 2 folders, 'dist' & 'build' which is the same as py2exe. I open the 'dist' folder and see a file 'main'. Then I double-click the 'main' and appeared the error message. 'IOError:[Errno 2] No such file or directory: '/user/austin/Desktop/disk/main.app/Contents/Resources/log/eventlog.xml I feel so wildered because 'main.app' should be a file not a folder.
It's an application bundle, which is a folder. All '.app'-s on OS X are
folders, it is a neat way of bundling the application program and all
data files it needs. I was wondering if some extra codes needed by setup.py Could anyone give me an advice?
What is 'eventlog.xml' supposed to be? If you're going to write to it,
it is in the wrong location. If it is a datafile that is used by your
application you should mention it in the setup.py script (the
data_files argument).
Ronald This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bob Swerdlow |
last post by:
I'm trying to move my application from bundlebuilder to py2app. I upgraded
to PyObjC 1.2, which include py2app 1.7, but I got the following error. I
saw a note on the py2app site that earlier versions need to be removed
before the upgrade, so I deleted the py2app directory and downloaded and
installed it separately, but got the same result. How do I get it to find
this boot_app.py file?
Thanks,
Bob
|
by: bex |
last post by:
Im baffled about this one...
Im running OS 10.3, and Python 2.3. I installed py2app 0.17 and never
used it, then installed py2app 0.2. It refuses to work. None of the
samples will build. Observe:
$ pwd
/Developer/Python/py2app/Examples/pygame
$ python setup.py py2app
Traceback (most recent call last):
|
by: bsharitt |
last post by:
I'm trying to get Bittornado to run on Mac OS X (10.4 with Python
2.3.5) but I've only ever dealt with Python at lower lever scripting
stuff, never wxPython or another GUI stuff. py2app is supposed to be
the tool to create Mac friendly Python applications(like py2exe on
Windows), but the documentation for py2app doesn't seem to be much
help. The setup.py script that comes with BitTornado doesn't run when I
type python setup.py py2app and...
|
by: Richard Taylor |
last post by:
User-Agent: OSXnews 2.07
Xref: number1.nntp.dca.giganews.com comp.lang.python:437315
Hi
I am trying to use py2app (http://undefined.org/python/) to package a
gnome-python application called gramps (http://www.gramps-project.org) for
MAC OS X.
|
by: SPE - Stani's Python Editor |
last post by:
Hi,
I'm creating a GUI program
with wxPython which will be distributed for Mac and Windows. The
audience of the program is not technical at all (eg they've never
heard about Python yet ;-), so everything should go automatically. The
program should be able to update itself and to update its database
(collection of .txt files). These are two separated things and don't
happen simultaneously. I thought of the following:
| |
by: loren.davie |
last post by:
Hi,
I'm attempting to build a small app that uses pythoncard for a gui
layer. The intention is to use py2app to construct an .app bundle for
the Mac. I'm running OS 10.4 on an Intel MacBook Pro. I'm using the
default installed Python 2.3
The .app bundle appears to build, but when I start up it fails -
checking the console reveals that it can't find the "wx" package, as
its called from some pythoncard code. (The app launches just...
|
by: James Stroud |
last post by:
Hello All,
I am trying to create a semi-standalone with the vendor python on OS X
10.4 (python 2.3.5). I tried to include some packages with both
--packages from the command and the 'packages' option in setup.py. While
the packages were nicely included in the application bundle in both
cases (at Contents/Resources/lib/python2.3/), they were not found by
python when the program was launched, giving the error:
"ImportError: No module...
|
by: Ian A. York |
last post by:
I've been packaging a set of scripts using py2app, and until now the app
that results has run without issues on MacOS10.4, either intel or ppc.
The latest version made by py2app, however, only runs on intel (on which I
made the py2app package). The problem seems to be with eGenix mx base
package (which is needed for BioPython). The package when run on PPC gets
the error "No module named TextTools", although TextTools is included and...
|
by: AdamGr |
last post by:
I am currently trying to convert a program I just wrote to application form, on the Mac. I'm using py2app to accomplish this, and everything works fine up until the last stage; when I try to complete the conversion with:
python setup.py py2app
and then run the resulting executable, I get the error:
ImportError: No module named MySQLdb
The really strange thing is that when I was testing the application creation by making an app bundle,...
|
by: Joe Strout |
last post by:
I'm trying to use py2app to convert the pySketch wxPython example into
a stand-alone OS X app. I've found the documentation at <http://undefined.org/python/py2app.html
like this:
#!/usr/bin/env python
"""
setup.py - script for building a bundled OS X application
Usage:
% python setup.py py2app
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |