Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8790189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:35:15+00:00 2026-06-13T22:35:15+00:00

I have an app which is running ok when started from Python. I would

  • 0

I have an app which is running ok when started from Python. I would like to use pyapp for packaging it on MAC OS 10.6.8.

The app is a small embedded webapp running with bottle microframework. It has been packages successfully on windows with py2exe.

I have the following py2app script

The setup.py py2app seems to be ok. I’ve a generated app file and I can see that it contains the right code.
Hello,
I have an app which is running ok when started from Python. I would like to use pyapp for packaging it on MAC OS 10.6.8.

The app is a small embedded webapp running with bottle microframework. It has been packages successfully on windows with py2exe.

I have the following py2app script

The setup.py py2app seems to be ok. I’ve a generated app file and I can see that it contains the right code.

from setuptools import setup
import sys, os, os.path
wapp_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

sys.path.append(wapp_path)

DATA_FILES = []

setup(
    app = [
        'nsav_ws.py',
    ],
    options={
        "py2app":{
            'argv_emulation': True, 
            "includes":["shelve", "dbhash", "sqlite3", "waitress", "runpy_imports", "bottle_sqlalchemy"],
            "packages": ["sqlalchemy.dialects.sqlite", "sqlalchemy", "nsav_wapp"],
        }
    },
   setup_requires=['py2app']
)

Unfortunately, the app fails on startup. Here is the traceback:

25/10/12 16:55:53   [0x0-0x118118].org.pythonmac.unspecified.nsav_ws[5126]  argvemulator warning: fetching events failed
25/10/12 16:55:53   [0x0-0x118118].org.pythonmac.unspecified.nsav_ws[5126]  Traceback (most recent call last):
25/10/12 16:55:53   [0x0-0x118118].org.pythonmac.unspecified.nsav_ws[5126]    File "/Users/luc/Dev/nelly_signe_avec_vous/nsav/nsav_mac/dist/nsav_ws.app/Contents/Resources/__boot__.py", line 340, in <module>
25/10/12 16:55:53   [0x0-0x118118].org.pythonmac.unspecified.nsav_ws[5126]      _run()
25/10/12 16:55:53   [0x0-0x118118].org.pythonmac.unspecified.nsav_ws[5126]    File "/Users/luc/Dev/nelly_signe_avec_vous/nsav/nsav_mac/dist/nsav_ws.app/Contents/Resources/__boot__.py", line 311, in _run
25/10/12 16:55:53   [0x0-0x118118].org.pythonmac.unspecified.nsav_ws[5126]      exec(compile(source, path, 'exec'), globals(), globals())
25/10/12 16:55:53   [0x0-0x118118].org.pythonmac.unspecified.nsav_ws[5126]    File "/Users/luc/Dev/nelly_signe_avec_vous/nsav/nsav_mac/dist/nsav_ws.app/Contents/Resources/nsav_ws.py", line 2
25/10/12 16:55:53   [0x0-0x118118].org.pythonmac.unspecified.nsav_ws[5126]      
25/10/12 16:55:53   [0x0-0x118118].org.pythonmac.unspecified.nsav_ws[5126]      ^
25/10/12 16:55:53   [0x0-0x118118].org.pythonmac.unspecified.nsav_ws[5126]  SyntaxError: invalid syntax
25/10/12 16:55:53   nsav_ws[5126]   nsav_ws Error

I’ve entered an issue on py2app project page but I would appreciate if some of you have any ideas that may help to fix it.

here is the start of the program:

# -*- coding: utf-8 -*-

"""
    3 text 
    lines
"""

from dewapp.utils import is_exe
import sys, os, os.path, shutil
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:35:17+00:00Added an answer on June 13, 2026 at 10:35 pm

    The problem was caused by windows line ending in the python code. Turning it into unix line ending fixed the issue. See https://bitbucket.org/ronaldoussoren/py2app/issue/70/generated-app-fails-due-to-syntax-error

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a long-running process written in Python 2.7 that I would like to
I have an iPhone app, which is running only in landscape mode, but recently
I have a Java application which is running as non root mode. My App
I have a rails app running on passenger standalone, which is working perfectly. I
I have a app which will download a file from web. The download action
Firstly, great job on B4A. I've just started, and already have a small app
I have a shell script which I'd like to trigger from a J2EE web
I have app in which i have recorded sound files i want that i
I have an app which has a map and some POI on it. I'm
I have an app which contain some images in res/drawable/ and shows them in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.