py2app | py2app is a Python setuptools command which will allow you to make standalone Mac OS X application | Map library

 by   ronaldoussoren Python Version: 0.28.8 License: Non-SPDX

kandi X-RAY | py2app Summary

kandi X-RAY | py2app Summary

py2app is a Python library typically used in Geo, Map applications. py2app has no bugs, it has no vulnerabilities and it has high support. However py2app build file is not available and it has a Non-SPDX License. You can install using 'pip install py2app' or download it from GitHub, PyPI.

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              py2app has a highly active ecosystem.
              It has 239 star(s) with 27 fork(s). There are 13 watchers for this library.
              There were 1 major release(s) in the last 12 months.
              There are 160 open issues and 302 have been closed. On average issues are closed in 67 days. There are 2 open pull requests and 0 closed requests.
              OutlinedDot
              It has a negative sentiment in the developer community.
              The latest version of py2app is 0.28.8

            kandi-Quality Quality

              py2app has 0 bugs and 0 code smells.

            kandi-Security Security

              py2app has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              py2app code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              py2app has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              py2app releases are available to install and integrate.
              Deployable package is available in PyPI.
              py2app has no build file. You will be need to create the build yourself to build the component from source.

            Top functions reviewed by kandi - BETA

            kandi has reviewed py2app and discovered the below as its top functions. This is intended to give you an instant insight into py2app implemented functionality, and help decide if they suit your requirements.
            • Initialize distutils options
            • Determine the runtime
            • Reads expected imports from a file
            • Returns the runtime preferences
            • Check if the built - in package is available
            • Scans for bytecode loads
            • Get the package name of a node
            • Return tk version number
            • Emulates the shell environment
            • Check if the recipe is valid
            • Return the site - packages
            • Run the build
            • Build an application
            • Create a setup py file
            • Finalize distutils options
            • Return a function that returns a skip function
            • Update sys path
            • Check wfglade
            • Simple example function
            • Setup pkg resources
            • Called when the window controller is loaded
            • Map from source to destination
            • Convert source datamodel
            • Open file dialog
            • Compile the XIB tool to a new one
            • Returns the path to the users site
            Get all kandi verified functions for this library.

            py2app Key Features

            No Key Features are available at this moment for py2app.

            py2app Examples and Code Snippets

            No Code Snippets are available at this moment for py2app.

            Community Discussions

            QUESTION

            No such file or directory: '/opt/anaconda3/lib/python3.8/site-packages/rtree/lib'
            Asked 2022-Mar-13 at 16:13

            I am trying to build an app from a python file (Mac OS) using the py2app extension. I have a folder with the python file and the "setup.py" file.

            • I first tested the app by running python setup.py py2app -A in the terminal and the dist and build folder are successfully created and the app works when launched.
            • Now when I try to build it non-locally by running the command python setup.py py2app in the terminal, there are various "WARNING: ImportERROR" messages while building and finally a error: [Errno 2] No such file or directory: '/opt/anaconda3/lib/python3.8/site-packages/rtree/lib' error.

              How can I fix this? I've tried to delete anaconda fully as I don't use it but it seems to still want to run through it. Additionally, I have tried to run the build command using a virtual environment but I end up having even more import errors.
              *I Left out a lot of the "skipping" and "warning" lines using "..." for space
            ...

            ANSWER

            Answered 2022-Mar-13 at 16:13

            The error error: [Errno 2] No such file or directory: '/opt/anaconda3/lib/python3.8/site-packages/rtree/lib' was caused by py2app trying to build the program bundle using a non-existent interpreter. This means that even if you try to uninstall a manager like Anaconda, it still has option logs somewhere on your mac.

            The fix:

            1. Open the terminal and type the command type -a python.
            • You will see similar lines

            Source https://stackoverflow.com/questions/71414043

            QUESTION

            how can i solve this error? Error Code: 0x00000004 (no mapping for user data read), I made the app , thanks
            Asked 2022-Mar-12 at 00:33

            I made the app in python and converted it into an app for macos with py2app, on my mac it works correctly but on another mac the error "Error Code: 0x00000004 (no mapping for user data read)" appears. I have already read some articles but they always say to update the app but this solution does not work for me because I made the app, I leave the LOG for you to analyze, thanks. I just discovered that they only allow 30 thousand characters here so I can't upload the full log.

            ...

            ANSWER

            Answered 2022-Mar-12 at 00:33

            The "no mapping for user data read" is a common error on mac when running apps. This usually happens if your software version on mac is either outdated or too modern.

            Here are the steps I suggest:

            1. First Check the versions of each mac by clicking the  logo in the top left of your mac and selecting "about this mac".
            2. If the current software version is not the same for each mac, upgrade or downgrade the other mac's software to the one of which the app worked on.
            3. To upgrade, click the  logo in the top left of your mac > system preferences > software update.
            4. To downgrade, refer to this link

            Source https://stackoverflow.com/questions/71440430

            QUESTION

            I have used Py2App to create an .app file from a Python code project I am working on but when I open the app to browse files they are all greyed out?
            Asked 2022-Feb-18 at 19:53

            I have written an application using Python code utilizing the Pandas and Openpyxl modules.

            Summary of my app: Browse and find an excel file(original), browse and find another excel file(new). Press a button and update certain columns from original file with information of new file using name of item as a reference. Press save button and save the file to my computer.

            Using my Windows machine I have made it into an .exe file and everything works perfectly fine. I am able to do everything I created it to do. I am trying to make it compatible on both Windows and MacOS. I have created a .app file using Py2App, and the app "runs" just fine. I am able to browse for files and so far it looks like I am able to save files. The problem is that the files I am trying to "use" are completely greyed out and I am unable to choose any files. I'm fairly new to MacOS so any advice or help would be greatly appreciated.

            ...

            ANSWER

            Answered 2022-Feb-18 at 19:53

            Change the file format selector.

            Source https://stackoverflow.com/questions/71178770

            QUESTION

            Tkinter, ignore certain lines from a tcl file?
            Asked 2022-Feb-12 at 05:45

            Basically, I just want to remove the mouse scrollwheel binding for scrolling in ttk.Treeview widget. And I found that a specific line in the file found in

            ...

            ANSWER

            Answered 2022-Feb-12 at 05:45

            You don't have to modify the original code. Tkinter's event handling mechanism is very robust. It's easy to prevent the default bindings from running, bind binding a function that returns the string "break". Returning "break" will prevent any other handlers in the widget's binding tags from being invoked.

            Here's a short contrived example:

            Source https://stackoverflow.com/questions/71089129

            QUESTION

            How to make pack a python script for sharing?
            Asked 2021-Oct-22 at 10:32

            I'm interested in manually packaging my Python script into a compact and sharable Application.

            As a self-taught unexperienced semi-programer I have improvised by writing the following .command-shell-script and put it in a folder along the rest of the .py files from my program:

            ...

            ANSWER

            Answered 2021-Oct-22 at 10:27

            You dont have to invent any wheel ... It was invented. There is a standard way for packaging your library.

            Follow https://packaging.python.org/tutorials/packaging-projects/

            and by the end of the process you will have a library that any onc can install.

            Source https://stackoverflow.com/questions/69675073

            QUESTION

            How do I turn a .py file into an application on Mac?
            Asked 2021-Oct-13 at 00:46

            [I know this question has been asked multiple times but I am still having trouble finding an option that works for me]

            I am using replit.com to write my python code.

            I made a program in python, but I want to turn it into an executable application (not a .exe as I am on mac). I saw multiple people use py2app but it doesn't work for me (probably due to the fact I am using an Online IDE). I also tried PyCharm, but when I write: "pip install py2app" to import the package, it just says that it doesn't know the command "pip".

            The name of the file is: "main.py"

            Here is my code in case it helps (it is pretty messy and confusing):

            ...

            ANSWER

            Answered 2021-Oct-13 at 00:46

            Please try to move your code into a new python file on your machine. I don't think it's possible to do this using replit.

            You have to download pip for you to do this properly. You can download pip here.

            Once you have pip downloaded, you can use the Pyinstaller library to package Python programs as standalone executables. It works on Windows, Linux, and Mac.

            Read this answer for more details.

            If you want to stick with py2app, just run pip install py2app in your terminal once you have pip downloaded.

            Source https://stackoverflow.com/questions/69548312

            QUESTION

            What are the precise steps for notarizing an .app file created using pyinstaller?
            Asked 2021-Oct-08 at 05:28

            I have a simple app named determinant_calculator.app that was created using Python 3.9 along with pyinstaller. It functions fine on my own Mac running OS 11.3.1. I want to share it with others outside the App Store. I have an Apple Developer account but I have no experience as a developer nor have I worked with XCode at all. I'm trying to follow the steps given at https://github.com/pyinstaller/pyinstaller/wiki/Recipe-OSX-Code-Signing

            I went to the Apple Developer's website and created a certificate, developerID_application.cer, which I downloaded to my desktop. Within Keychain Access, I uploaded the certificate and see it under "My Certificates" as "Developer ID Application: PaulF (47A67S7RBW)"

            The bundle contents of determinant_calculator.app contains the info.plist shown here:

            ...

            ANSWER

            Answered 2021-Oct-08 at 05:28

            You not only need to codesign your app, you also need to notarize it (as a separate step). If your run the following command in the folder where your app is located, it will send the app to Apple to check. Apple will return a ticket ID. You can then check your notarization history after a few minutes to see if the notarization passed:

            Notarization command:

            Source https://stackoverflow.com/questions/69469522

            QUESTION

            py2app access non-python files
            Asked 2021-Sep-07 at 09:46

            Currently I'm working on a python project (standalone application) which will use some non-python code (js/html). This code is already present in the directory and should therefore be included within the py2app application. I tried out different things to keep these files around so I can access them at runtime in the standalone application.

            For the setup.py I use the following configuration

            ...

            ANSWER

            Answered 2021-Sep-07 at 09:46

            https://py2app.readthedocs.io/en/latest/options.html#option-reference Lists py2app specific configuration options.

            In your case using the “resources” option will help, that will copy files in the application Resources folder.

            Source https://stackoverflow.com/questions/69084407

            QUESTION

            Python standalone application failing when launched (macOS)
            Asked 2021-May-20 at 22:21

            So I have made this simple Password Manager in Python 3.8 using PyQt5, and I have been using the 'py2app' module to create a standalone application of this program. However, when I execute my app (both from the terminal and the finder), I get a simple popup saying "keysafe Error". My code is executing just fine and has no errors. I can't seem to figure out the problem here. If it helps, I get this message in my macOS logs:

            ...

            ANSWER

            Answered 2021-May-20 at 22:21

            So I finally was able to find an answer to this question!
            The first thing to do is open your setup.py file, the default one should look like so:

            Source https://stackoverflow.com/questions/66660414

            QUESTION

            p2app application to ask for administrator rights
            Asked 2021-May-10 at 14:15

            I have created a python script that helps automate a part of my work on Mac Os VMs. In addition to that it makes use of some other files (some jsons and a few files that need to be copied on the Macos machine in a specific location). Since the script contains also a ui part(via pyqt) I need to pack all files into one app, but I ran into an issue I need the resulting app to ask for Administrative rights when it is ran. I search the internet and the py2app documentation and can't find any info on how to achieve this

            any workaround or py2app is not what I need?

            ...

            ANSWER

            Answered 2021-May-10 at 14:15

            ended up using "elevate" library. worked like a charm :)

            Source https://stackoverflow.com/questions/67399681

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install py2app

            You can install using 'pip install py2app' or download it from GitHub, PyPI.
            You can use py2app like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install py2app

          • CLONE
          • HTTPS

            https://github.com/ronaldoussoren/py2app.git

          • CLI

            gh repo clone ronaldoussoren/py2app

          • sshUrl

            git@github.com:ronaldoussoren/py2app.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link