pynsist | Build Windows installers for Python applications | DevOps library

 by   takluyver Python Version: 2.8 License: Non-SPDX

kandi X-RAY | pynsist Summary

kandi X-RAY | pynsist Summary

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

Build Windows installers for Python applications
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              pynsist has a highly active ecosystem.
              It has 842 star(s) with 123 fork(s). There are 32 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 24 open issues and 143 have been closed. On average issues are closed in 101 days. There are 6 open pull requests and 0 closed requests.
              OutlinedDot
              It has a negative sentiment in the developer community.
              The latest version of pynsist is 2.8

            kandi-Quality Quality

              pynsist has 0 bugs and 40 code smells.

            kandi-Security Security

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

            kandi-License License

              pynsist 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

              pynsist releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              pynsist has no build file. You will be need to create the build yourself to build the component from source.
              pynsist saves you 900 person hours of effort in developing the same functionality from scratch.
              It has 2057 lines of code, 142 functions and 43 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed pynsist and discovered the below as its top functions. This is intended to give you an instant insight into pynsist implemented functionality, and help decide if they suit your requirements.
            • Add paths to the system path
            • Setup the UI
            • Translate the UI
            • Remove from system path
            • Expand sz value
            • Run the installer
            • Copy extra files to the installer
            • Download an embeddable build
            • Copy the license file
            • Returns the arguments for the installer builder builder
            • Read shortcuts section
            • Read the commands from the config file
            • Read extra files
            • Read and validate a config file
            • Check for invalid keys
            • Check that all mandatory fields are present
            • Checks the configuration of the given section
            • Return a set of files to ignore
            • Broadcasts the environment settings change
            • Read a single frame
            • Convert array to QImage
            Get all kandi verified functions for this library.

            pynsist Key Features

            No Key Features are available at this moment for pynsist.

            pynsist Examples and Code Snippets

            No Code Snippets are available at this moment for pynsist.

            Community Discussions

            QUESTION

            Missing wheel for et-xmlfile when creating install of python program
            Asked 2021-Mar-14 at 12:00

            I just added the ability of my python application to write a data set out to an excel file using openpyxl. Apparently openpyxl is dependent on the et-xmlfile. I create an install of my application by first running "setup.py sdist bdist_wheel" and then "pynsist installer.cfg". I added both openpyxl==3.0.7 and et-xmlfile=1.0.1 to the [Include] section of the installer.cfg file.

            When running pynsist I get the following error.

            File "c:\users\vh942e\appdata\local\python\lib\site-packages\nsist\wheels.py", line 150, in get_from_pypi raise NoWheelError('No compatible wheels found for {0.name} {0.version}'.format(self)) nsist.wheels.NoWheelError: No compatible wheels found for et-xmlfile 1.0.1

            Are there any ideas about how to solve this no compatible wheels problem? All other included libraries work.

            ...

            ANSWER

            Answered 2021-Mar-14 at 12:00

            et-xmlfile doesn't have wheels on PyPI and for now, Pynsist only consumes wheels someone else has buil. That may change one day, but it would be a significant extra bit of complexity.

            It looks like it's a pure Python project, so it's easy to make a wheel of it yourself:

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

            QUESTION

            How to install numpy in python with Pynsist
            Asked 2019-Nov-24 at 03:45

            If i have built an application using Pynsist package and then after the installation of that application, I will have a numpy package in the pkg folder of the application path just like what i mentioned in the installer.cfg. But there wont be any numpy in the site-packages of Python 2.7 (installed because of the python installer downloaded by NSIS built application.

            So how would the python know if there is a numpy in the computer or not? In other words, how would the numpy package in the application folder will link itself to Python lib/site-package folder? Do we need to copy that folder into the site-package location or am I missing something?

            Below is the installer.cfg code

            ...

            ANSWER

            Answered 2019-Nov-24 at 03:45

            Here, to let the application know that numpy has also to be imported, we add a dependency in installer.cfg file. The dependency is: anaconda-project. Now the numpy can be imported properly.

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

            QUESTION

            How to make an installer the way it creates an icon on desktop?
            Asked 2019-Sep-26 at 20:16

            I've got ready, already compiled python application for windows but there is a problem with making an installer, which creates desktop icon for it when you check a corresponding mark.

            I made an installer using clean NSIS script, fbs and pynsist. Actually, there is no problem to create an installer which downloads your app to Program Files but however I haven't found the way to create an icon which will be shown on desktop.

            Any help is appreciated.

            ...

            ANSWER

            Answered 2019-Sep-26 at 20:16

            Pynsist does not seem to have a way to inject extra code for some reason but you can override the entire install script.

            Make a copy of your pyapp.nsi file (or grab it from Github).

            There are two places in the file where it does CreateShortCut "$SMPROGRAMS\..... Add another line under it with:

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

            QUESTION

            NSIS: can't import tinker
            Asked 2019-Apr-14 at 12:09

            I would like to build my program that uses matplotlib, which requires tkinter. The problem is that I can't include tkinter, as it is not on pyPi (and it has now wheels).

            I use Pynsist to build an NSIS installer. Here is the cfg:

            ...

            ANSWER

            Answered 2019-Apr-14 at 12:09

            I found it in the documentation: Pynsist documentation

            "Because Pynsist makes use of the “bundled” versions of Python the tkinter module isn’t included by default. If your application relies on tkinter for a GUI then you need to find the following assets..."

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

            QUESTION

            Why does cx_Freeze rise this error when running an exe file?
            Asked 2019-Feb-09 at 12:58

            I am a new user of cx_Freeze and I wanted to package my python file with all needed dependencies.

            I use Python3.

            I work under a python virtualenv with dependencies such as tensorflow, sklearn, matplotlib, python-vlc...

            Here are all files needed to reproduce the same error on Windows.

            My requirements.txt to install

            ...

            ANSWER

            Answered 2019-Feb-08 at 14:08

            I see the following potential problems in your setup script for cx_Freeze 5.1.1:

            1. You are using numpy (and matplotlib which depends on numpy). In order that cx_Freeze correctly freezes numpy, it needs to be added to the packages list of the build_exe options.

            2. For cx_Freeze version 5.1.1, the TCL/TK DLLs need to be included in a lib subdirectory of the build directory. You can do that by passing a tuple (source, destination) to the corresponding entry of the include_files list option. Furthermore, it would be safer to dynamically find out the location of the TCL/TK DLLs.

            Altogether, try with the following modifications in your setup script:

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

            QUESTION

            GUI Built with Pynsist and PyQt: Import Error 'sip'
            Asked 2018-Jul-13 at 06:15

            I have built a GUI using PyQt5 and wanted to distribute it to other computers without Python installed by packageing it with pynsist. Unfortunately, when launching the shortcuts produced by the installer, the GUI does not open as expected and Python keeps crashing (even if Python is instlalled).

            The console shows the following error upon crashing:

            ...

            ANSWER

            Answered 2018-Mar-12 at 12:45

            When I first encountered this problem I simply added sip.pyd to my project-folder. You can find it under:

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

            QUESTION

            how to build .exe for python 3.5+, 3.6 if possible?
            Asked 2018-May-17 at 06:38

            Is there now an easy protocol to build a .exe from python 3.5+, using modules pyqtgraph, qt5, theano, pymc3, numpy, scipy, os and sys, and opening a simple GUI stored in a '.ui' file ? I lost hours and eventually failed to make one (for w7-64 bits). Help !

            preliminary failure with py2exe: I first install py2exe for python 3 but it turns out this is not compatible with my python 3.6 yet, so I downgraded to python 3.5… to get a bunch of errors. Then I went to forums and tried the proposed cures but failed (I’m uneasy with windows), the alternative being to downgrade to python 3.4… So I downgraded to python 3.4 to get an error concerning a missing ‘msvcr100.dll’ that I tried to install following instructions on forums but by default I don’t have the permission to modify system directories… When I eventually had this permission it turns out the ‘regsvr32’ command fails (isn’t this for 32 bits ? but there is no ‘regsvr64’…). Following episodes are described below.

            update august 23, 2017, 1pm:

            what's next ?

            update september, 2, 2pm:

            I eventually managed to build a .exe with pyinstaller after many episodes.

            Unfortunately I failed to deal with the ‘theano’ module (that is required in my case by the ‘pymc3’ module) and I had to modify the .py files and give up part of the application. Could anyone help me building a .exe for windows 7+, with the ‘theano’ module ?

            see build a .exe for Windows from a python 3 script importing theano with pyinstaller

            ...

            ANSWER

            Answered 2017-Jun-16 at 08:19

            I would suggest pyinstaller see http://www.pyinstaller.org/

            The pyinstaller already supports 3.5

            The development version supports 3.6

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

            QUESTION

            [ Python 2.7 ]Package program with Pynsist
            Asked 2017-Sep-13 at 12:15

            I am packaging a Python 2.7 program with the lastest version of Pynsist.
            I've created an installer.cfg file following this example.
            But when I try to package my application running

            ...

            ANSWER

            Answered 2017-Sep-13 at 12:15

            Reposting as an answer, since it worked:

            If you put pygame in packages=, it tries to copy it from your computer. But on your computer that's pygame for Linux, which won't work on Windows. If you instead put pygame in the pypi_wheels= bit of the config file, Pynsist will take care of downloading a Windows version for you.

            Have a look at the pygame example in the Pynsist repository.

            Most packages don't have this problem because they only contain Python code, which is the same files on all platforms. Pygame has compiled modules, which have to be compiled for the right platform.

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

            QUESTION

            KeyError when using Pynsist
            Asked 2017-Mar-04 at 14:01

            I'm trying to replicate the following example: https://github.com/takluyver/pynsist/tree/master/examples/tkinter but it is not working. I have a python file and .cfg that are copy pasted from here, but when I run py -m nsist installer.cfg on my command prompt, I get the following error:

            ...

            ANSWER

            Answered 2017-Mar-04 at 14:01

            The issue turned out to be that the config file was called installer.cfg.txt, rather than installer.cfg.

            If you're having a similar issue, double check that the config file is in the right place and the name matches what you're typing at the command line. Remember that some programs (like Windows Explorer) might hide known extensions, so what you see might not be the real file name. Using a terminal or command prompt will usually show you the real name.

            I'll make Pynsist give a clearer error when the config file isn't there.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install pynsist

            You can install using 'pip install pynsist' or download it from GitHub, PyPI.
            You can use pynsist 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 pynsist

          • CLONE
          • HTTPS

            https://github.com/takluyver/pynsist.git

          • CLI

            gh repo clone takluyver/pynsist

          • sshUrl

            git@github.com:takluyver/pynsist.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

            Explore Related Topics

            Consider Popular DevOps Libraries

            ansible

            by ansible

            devops-exercises

            by bregman-arie

            core

            by dotnet

            semantic-release

            by semantic-release

            Carthage

            by Carthage

            Try Top Libraries by takluyver

            flit

            by takluyverPython

            bash_kernel

            by takluyverPython

            cite2c

            by takluyverJavaScript

            nbopen

            by takluyverPython

            igo

            by takluyverGo