Git Product home page Git Product logo

nuitka / nuitka Goto Github PK

View Code? Open in Web Editor NEW
10.9K 136.0 582.0 54.9 MB

Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.

Home Page: http://nuitka.net

License: Apache License 2.0

Python 61.24% Shell 0.01% C 36.96% Batchfile 0.01% Jinja 1.38% C++ 0.41%
python-compiler python nuitka programming compiler packaging-tool performance

nuitka's Introduction

Nuitka User Manual

This document is the recommended first read when you start using Nuitka. On this page, you will learn more about Nuitka fundamentals, such as license type, use cases, requirements, and credits.

Table of Contents

Nuitka is the Python compiler. It is written in Python. It is a seamless replacement or extension to the Python interpreter and compiles every construct that Python 2 (2.6, 2.7) and Python 3 (3.4 - 3.11) have, when itself run with that Python version.

It then executes uncompiled code and compiled code together in an extremely compatible manner.

You can use all Python library modules and all extension modules freely.

Nuitka translates the Python modules into a C level program that then uses libpython and static C files of its own to execute in the same way as CPython does.

All optimization is aimed at avoiding overhead, where it's unnecessary. None is aimed at removing compatibility, although slight improvements will occasionally be done, where not every bug of standard Python is emulated, e.g. more complete error messages are given, but there is a full compatibility mode to disable even that.

Requirements

To ensure smooth operation of Nuitka, make sure to follow system requirements, that include the following components:

C Compiler

You need a C compiler with support for C11 or alternatively a C++ compiler for C++031.

Currently, this means, you need to use one of these compilers:

  • The MinGW64 C11 compiler, on Windows, must be based on gcc 11.2 or higher. It will be automatically downloaded if no usable C compiler is found, which is the recommended way of installing it, as Nuitka will also upgrade it for you.
  • Visual Studio 2022 or higher on Windows2. English language pack for best results (Nuitka filters away garbage outputs, but only for English language). It will be used by default if installed.
  • On all other platforms, the gcc compiler of at least version 5.1, and below that the g++ compiler of at least version 4.4 as an alternative.
  • The clang compiler on macOS X and most FreeBSD architectures.
  • On Windows, the clang-cl compiler on Windows can be used if provided by the Visual Studio installer.

Python

Python 2 (2.6, 2.7) and Python 3 (3.4 — 3.11) are supported. If at any moment, there is a stable Python release that is not in this list, rest assured it is being worked on and will be added.

Important

For Python 3.4 and only that version, we need other Python version as a compile time dependency.

Nuitka itself is fully compatible with all listed versions, but Scons as an internally used tool is not.

For these versions, you need a Python2 or Python 3.5 or higher installed as well, but only during the compile time. That is for use with Scons (which orchestrates the C compilation), which does not support the same Python versions as Nuitka.

In addition, on Windows, Python2 cannot be used because clcache does not work with it, there a Python 3.5 or higher needs to be installed.

Nuitka finds these needed Python versions (e.g. on Windows via registry) and you shouldn't notice it as long as they are installed.

Increasingly, other functionality is available when another Python has a certain package installed. For example, onefile compression will work for a Python 2.x when another Python is found that has the zstandard package installed.

Moving binaries to other machines

The created binaries can be made executable independent of the Python installation, with --standalone and --onefile options.

Binary filename suffix

The created binaries have an .exe suffix on Windows. On other platforms they have no suffix for standalone mode, or .bin suffix, that you are free to remove or change, or specify with the -o option.

The suffix for acceleration mode is added just to be sure that the original script name and the binary name do not ever collide, so we can safely overwrite the binary without destroying the original source file.

It has to be CPython, Anaconda Python, or Homebrew

You need the standard Python implementation, called "CPython", to execute Nuitka because it is closely tied to implementation details of it.

It cannot be from the Windows app store

It is known that Windows app store Python definitely does not work, it's checked against.

It cannot be pyenv on macOS

It is known that macOS "pyenv" does not work. Use Homebrew instead for self compiled Python installations. But note that standalone mode will be worse on these platforms and not be as backward compatible with older macOS versions.

Operating System

Supported Operating Systems: Linux, FreeBSD, NetBSD, macOS, and Windows (32 bits/64 bits/ARM).

Others will work as well. The portability is expected to be generally good, but the e.g. Nuitka's internal Scons usage may have to be adapted or need flags passed. Make sure to match Python and C compiler architecture, or else you will get cryptic error messages.

Architecture

Supported Architectures are x86, x86_64 (amd64), and arm, likely many, many more.

Other architectures are expected to also work, out of the box, as Nuitka is generally not using any hardware specifics. These are just the ones tested and known to be good. Feedback is welcome. Generally, the architectures that Debian supports can be considered good and tested, too.

Usage

Command Line

The recommended way of executing Nuitka is <the_right_python> -m nuitka to be absolutely certain which Python interpreter you are using, so it is easier to match with what Nuitka has.

The next best way of executing Nuitka bare that is from a source checkout or archive, with no environment variable changes, most noteworthy, you do not have to mess with PYTHONPATH at all for Nuitka. You just execute the nuitka and nuitka-run scripts directly without any changes to the environment. You may want to add the bin directory to your PATH for your convenience, but that step is optional.

Moreover, if you want to execute with the right interpreter, in that case, be sure to execute <the_right_python> bin/nuitka and be good.

Pick the right Interpreter

If you encounter a SyntaxError you absolutely most certainly have picked the wrong interpreter for the program you are compiling.

Nuitka has a --help option to output what it can do:

nuitka --help

The nuitka-run command is the same as nuitka, but with a different default. It tries to compile and directly execute a Python script:

nuitka-run --help

This option that is different is --run, and passing on arguments after the first non-option to the created binary, so it is somewhat more similar to what plain python will do.

Installation

For most systems, there will be packages on the download page of Nuitka. But you can also install it from source code as described above, but also like any other Python program it can be installed via the normal python setup.py install routine.

Notice for integration with GitHub workflows there is this Nuitka-Action that you should use that makes it really easy to integrate. You ought to start with a local compilation though, but this will be easiest for cross platform compilation with Nuitka.

License

Nuitka is licensed under the Apache License, Version 2.0; you may not use it except in compliance with the License.

You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Tutorial Setup and build on Windows

This is basic steps if you have nothing installed, of course if you have any of the parts, just skip it.

Setup

Install Python

  • Download and install Python from https://www.python.org/downloads/windows
  • Select one of Windows x86-64 web-based installer (64 bits Python, recommended) or x86 executable (32 bits Python) installer.
  • Verify it's working using command python --version.

Install Nuitka

  • python -m pip install nuitka
  • Verify using command python -m nuitka --version

Write some code and test

Create a folder for the Python code

  • mkdir HelloWorld
  • make a python file named hello.py
def talk(message):
    return "Talk " + message


def main():
    print(talk("Hello World"))


if __name__ == "__main__":
    main()

Test your program

Do as you normally would. Running Nuitka on code that works incorrectly is not easier to debug.

python hello.py

Build it using

python -m nuitka hello.py

Note

This will prompt you to download a C caching tool (to speed up repeated compilation of generated C code) and a MinGW64 based C compiler, unless you have a suitable MSVC installed. Say yes to both those questions.

Run it

Execute the hello.exe created near hello.py.

Distribute

To distribute, build with --standalone option, which will not output a single executable, but a whole folder. Copy the resulting hello.dist folder to the other machine and run it.

You may also try --onefile which does create a single file, but make sure that the mere standalone is working, before turning to it, as it will make the debugging only harder, e.g. in case of missing data files.

Use Cases

Use Case 1 — Program compilation with all modules embedded

If you want to compile a whole program recursively, and not only the single file that is the main program, do it like this:

python -m nuitka --follow-imports program.py

Note

There are more fine-grained controls than --follow-imports available. Consider the output of nuitka --help. Including fewer modules into the compilation, but instead using normal Python for it, will make it faster to compile.

In case you have a source directory with dynamically loaded files, i.e. one which cannot be found by recursing after normal import statements via the PYTHONPATH (which would be the recommended way), you can always require that a given directory shall also be included in the executable:

python -m nuitka --follow-imports --include-plugin-directory=plugin_dir program.py

Note

If you don't do any dynamic imports, simply setting your PYTHONPATH at compilation time is what you should do.

Use --include-plugin-directory only if you make __import__() calls that Nuitka cannot predict, and that come from a directory, for everything from your Python installation, use --include-module or --include-package.

Note

The resulting filename will be program.exe on Windows, program.bin on other platforms, but --output-filename allows changing that.

Note

The resulting binary still depends on CPython and used C extension modules being installed.

If you want to be able to copy it to another machine, use --standalone and copy the created program.dist directory and execute the program.exe (Windows) or program (other platforms) put inside.

Use Case 2 — Extension Module compilation

If you want to compile a single extension module, all you have to do is this:

python -m nuitka --module some_module.py

The resulting file some_module.so can then be used instead of some_module.py.

Important

The filename of the produced extension module must not be changed as Python insists on a module name derived function as an entry point, in this case PyInit_some_module and renaming the file will not change that. Match the filename of the source code to what the binary name should be.

Note

If both the extension module and the source code of it are in the same directory, the extension module is loaded. Changes to the source code only have effect once you recompile.

Note

The option --follow-import-to works as well, but the included modules will only become importable after you imported the some_module name. If these kinds of imports are invisible to Nuitka, e.g. dynamically created, you can use --include-module or --include-package in that case, but for static imports it should not be needed.

Note

An extension module can never include other extension modules. You will have to create a wheel for this to be doable.

Note

The resulting extension module can only be loaded into a CPython of the same version and doesn't include other extension modules.

Use Case 3 — Package compilation

If you need to compile a whole package and embed all modules, that is also feasible, use Nuitka like this:

python -m nuitka --module some_package --include-package=some_package

Note

The inclusion of the package contents needs to be provided manually; otherwise, the package is mostly empty. You can be more specific if you like, and only include part of it, or exclude part of it, e.g. with --nofollow-import-to='*.tests' you would not include the unused test part of your code.

Note

Data files located inside the package will not be embedded by this process, you need to copy them yourself with this approach. Alternatively, you can use the file embedding of Nuitka commercial.

Use Case 4 — Program Distribution

For distribution to other systems, there is the standalone mode, which produces a folder for which you can specify --standalone.

python -m nuitka --standalone program.py

Following all imports is default in this mode. You can selectively exclude modules by specifically saying --nofollow-import-to, but then an ImportError will be raised when import of it is attempted at program run time. This may cause different behavior, but it may also improve your compile time if done wisely.

For data files to be included, use the option --include-data-files=<source>=<target> where the source is a file system path, but the target has to be specified relative. For the standalone mode, you can also copy them manually, but this can do extra checks, and for the onefile mode, there is no manual copying possible.

To copy some or all file in a directory, use the option --include-data-files=/etc/*.txt=etc/ where you get to specify shell patterns for the files, and a subdirectory where to put them, indicated by the trailing slash.

Important

Nuitka does not consider data files code, do not include DLLs, or Python files as data files, and expect them to work, they will not, unless you really know what you are doing.

In the following, non-code data files are all files, not matching on of these criterions.

Suffix Rationale Solution
.py Nuitka trims even the stdlib modules to be included. If it doesn't see Python code, there is no dependencies analyzed, and as a result it will just not work. Use --include-module on them instead
.pyc Same as .py. Use --include-module on them from their source code instead.
.pyo Same as .pyc. Use --include-module on them from their source code instead.
.pyw Same as .py. For including multiple programs, use multiple --main arguments instead.
.pyi These are ignored, because they are code-like and not needed at run time. For the lazy package that actually would depend on them, we made a compile time solution that removes the need. Raise an issue if 3rd part software needs it.
.pyx These are ignored, because they are Cython source code not used at run time
.dll These are ignored, since they usually are not data files. For the cases where 3rd party packages do actually used them as data, e.g. .NET packages, we solve that in package configuration for it. Create Nuitka Package configuration for those, with dll section for the package that uses them. For rare cases, data-files section with special configuration might be the correct thing to do.
.dylib These are ignored, since they macOS extension modules or DLLs. Need to add configuration with dll section or depends that are missing
.so These are ignored, since they Linux, BSD, etc. extension modules or DLLs. Need to add configuration with dll section or depends that are missing
.exe The are binaries to Windows. You can add Nuitka Package configuration to include those as DLLs and mark them as executable: yes
.bin The are binaries to non-Windows, otherwise same as .exe.

Also folders are ignored, these are site-packages, dist-packages and vendor-packages which would otherwise include a full virtualenv, which is never a good thing to happen. And the __pycache__ folder is also always ignored. On non-MacOS the file .DS_Store is ignored too, and py.typed folders have only meaning to IDEs, and are ignored like .pyi files .

To copy a whole folder with all non-code files, you can use --include-data-dir=/path/to/images=images which will place those in the destination, and if you want to use the --noinclude-data-files option to remove them. Code files are as detailed above DLLs, executables, Python files, etc. and will be ignored. For those you can use the --include-data-files=/binaries/*.exe=binary/ form to force them, but that is not recommended and known to cause issues at run-time.

For package data, there is a better way, namely using --include-package-data, which detects all non-code data files of packages automatically and copies them over. It even accepts patterns in a shell style. It spares you the need to find the package directory yourself and should be preferred whenever available. Functionally it's very similar to --include-data-dir but it has the benefit to locate the correct folder for you.

With data files, you are largely on your own. Nuitka keeps track of ones that are needed by popular packages, but it might be incomplete. Raise issues if you encounter something in these. Even better, raise PRs with enhancements to the Nuitka package configuration. With want 3rd party software to just work out of the box.

When that is working, you can use the onefile mode if you so desire.

python -m nuitka --onefile program.py

This will create a single binary, that extracts itself on the target, before running the program. But notice, that accessing files relative to your program is impacted, make sure to read the section Onefile: Finding files as well.

# Create a binary that unpacks into a temporary folder
python -m nuitka --onefile program.py

Note

There are more platform-specific options, e.g. related to icons, splash screen, and version information, consider the --help output for the details of these and check the section Tweaks.

For the unpacking, by default a unique user temporary path one is used, and then deleted, however this default --onefile-tempdir-spec="{TEMP}/onefile_{PID}_{TIME}" can be overridden with a path specification that is using then using a cached path, avoiding repeated unpacking, e.g. with --onefile-tempdir-spec="{CACHE_DIR}/{COMPANY}/{PRODUCT}/{VERSION}" which uses version information, and user-specific cache directory.

Note

Using cached paths will be relevant, e.g. when Windows Firewall comes into play because otherwise, the binary will be a different one to it each time it is run.

Currently, these expanded tokens are available:

Token What this Expands to Example
{TEMP} User temporary file directory C:\Users\...\AppData\Locals\Temp
{PID} Process ID 2772
{TIME} Time in seconds since the epoch. 1299852985
{PROGRAM} Full program run-time filename of executable. C:\SomeWhere\YourOnefile.exe
{PROGRAM_BASE} No-suffix of run-time filename of executable. C:\SomeWhere\YourOnefile
{CACHE_DIR} Cache directory for the user. C:\Users\SomeBody\AppData\Local
{COMPANY} Value given as --company-name YourCompanyName
{PRODUCT} Value given as --product-name YourProductName
{VERSION} Combination of --file-version & --product-version 3.0.0.0-1.0.0.0
{HOME} Home directory for the user. /home/somebody
{NONE} When provided for file outputs, None is used see notice below
{NULL} When provided for file outputs, os.devnull is used see notice below

Important

It is your responsibility to make the path provided unique, on Windows a running program will be locked, and while using a fixed folder name is possible, it can cause locking issues in that case, where the program gets restarted.

Usually, you need to use {TIME} or at least {PID} to make a path unique, and this is mainly intended for use cases, where e.g. you want things to reside in a place you choose or abide your naming conventions.

Important

For disabling output and stderr with --force-stdout-spec and --force-stderr-spec the values {NONE} and {NULL} achieve it, but with different effect. With {NONE}, the corresponding handle becomes None. As a result, e.g. sys.stdout will be None, which is different from {NULL} where it will be backed by a file pointing to os.devnull, i.e. you can write to it.

With {NONE}, you may e.g. get RuntimeError: lost sys.stdout in case it does get used; with {NULL} that never happens. However, some libraries handle this as input for their logging mechanism, and on Windows this is how you are compatible with pythonw.exe which is behaving like {NONE}.

Use Case 5 — Setuptools Wheels

If you have a setup.py, setup.cfg or pyproject.toml driven creation of wheels for your software in place, putting Nuitka to use is extremely easy.

Let's start with the most common setuptools approach, you can, having Nuitka installed of course, simply execute the target bdist_nuitka rather than the bdist_wheel. It takes all the options and allows you to specify some more, that are specific to Nuitka.

# For setup.py if you don't use other build systems:
setup(
   # Data files are to be handled by setuptools and not Nuitka
   package_data={"some_package": ["some_file.txt"]},
   ...,
   # This is to pass Nuitka options.
   command_options={
      'nuitka': {
         # boolean option, e.g. if you cared for C compilation commands
         '--show-scons': True,
         # options without value, e.g. enforce using Clang
         '--clang': None,
         # options with single values, e.g. enable a plugin of Nuitka
         '--enable-plugin': "pyside2",
         # options with several values, e.g. avoiding including modules
         '--nofollow-import-to' : ["*.tests", "*.distutils"],
      },
   },
)

# For setup.py with other build systems:
# The tuple nature of the arguments is required by the dark nature of
# "setuptools" and plugins to it, that insist on full compatibility,
# e.g. "setuptools_rust"

setup(
   # Data files are to be handled by setuptools and not Nuitka
   package_data={"some_package": ["some_file.txt"]},
   ...,
   # This is to pass Nuitka options.
   ...,
   command_options={
      'nuitka': {
         # boolean option, e.g. if you cared for C compilation commands
         '--show-scons': ("setup.py", True),
         # options without value, e.g. enforce using Clang
         '--clang': ("setup.py", None),
         # options with single values, e.g. enable a plugin of Nuitka
         '--enable-plugin': ("setup.py", "pyside2"),
         # options with several values, e.g. avoiding including modules
         '--nofollow-import-to' : ("setup.py", ["*.tests", "*.distutils"]),
      }
   },
)

If for some reason, you cannot or do not want to change the target, you can add this to your setup.py.

# For setup.py
setup(
   ...,
   build_with_nuitka=True
)

Note

To temporarily disable the compilation, you could the remove above line, or edit the value to False by or take its value from an environment variable if you so choose, e.g. bool(os.getenv("USE_NUITKA", "True")). This is up to you.

Or you could put it in your setup.cfg

[metadata]
build_with_nuitka = true

And last, but not least, Nuitka also supports the new build meta, so when you have a pyproject.toml already, simple replace or add this value:

[build-system]
requires = ["setuptools>=42", "wheel", "nuitka", "toml"]
build-backend = "nuitka.distutils.Build"

# Data files are to be handled by setuptools and not Nuitka
[tool.setuptools.package-data]
some_package = ['data_file.txt']

[tool.nuitka]
# These are not recommended, but they make it obvious to have effect.

# boolean option, e.g. if you cared for C compilation commands, leading
# dashes are omitted
show-scons = true

# options with single values, e.g. enable a plugin of Nuitka
enable-plugin = "pyside2"

# options with several values, e.g. avoiding including modules, accepts
# list argument.
nofollow-import-to = ["*.tests", "*.distutils"]

Note

For the nuitka requirement above absolute paths like C:\Users\...\Nuitka will also work on Linux, use an absolute path with two leading slashes, e.g. //home/.../Nuitka.

Note

Whatever approach you take, data files in these wheels are not handled by Nuitka at all, but by setuptools. You can, however, use the data file embedding of Nuitka commercial. In that case, you actually would embed the files inside the extension module itself, and not as a file in the wheel.

Use Case 6 — Multidist

If you have multiple programs, that each should be executable, in the past you had to compile multiple times, and deploy all of these. With standalone mode, this, of course, meant that you were fairly wasteful, as sharing the folders could be done, but wasn't really supported by Nuitka.

Enter Multidist. There is an option --main that replaces or adds to the positional argument given. And it can be given multiple times. When given multiple times, Nuitka will create a binary that contains the code of all the programs given, but sharing modules used in them. They therefore do not have to be distributed multiple times.

Let's call the basename of the main path, and entry point. The names of these must, of course, be different. Then the created binary can execute either entry point, and will react to what sys.argv[0] appears to it. So if executed in the right way (with something like subprocess or OS API you can control this name), or by renaming or copying the binary, or symlinking to it, you can then achieve the miracle.

This allows to combine very different programs into one.

Note

This feature is still experimental. Use with care and report your findings should you encounter anything that is undesirable behavior

This mode works with standalone, onefile, and mere acceleration. It does not work with module mode.

Use Case 7 — Building with GitHub Workflows

For integration with GitHub workflows there is this Nuitka-Action that you should use that makes it really easy to integrate. You ought to start with a local compilation though, but this will be easiest for cross platform compilation with Nuitka.

This is an example workflow that builds on all 3 OSes

jobs:
build:
   strategy:
      matrix:
      os: [macos-latest, ubuntu-latest, windows-latest]

   runs-on: ${{ matrix.os }}

   steps:
      - name: Check-out repository
      uses: actions/checkout@v3

      - name: Setup Python
      uses: actions/setup-python@v4
      with:
         python-version: '3.10'
         cache: 'pip'
         cache-dependency-path: |
            **/requirements*.txt

      - name: Install your Dependencies
      run: |
         pip install -r requirements.txt -r requirements-dev.txt

      - name: Build Executable with Nuitka
      uses: Nuitka/Nuitka-Action@main
      with:
         nuitka-version: main
         script-name: your_main_program.py
         # many more Nuitka options available, see action doc, but it's best
         # to use nuitka-project: options in your code, so e.g. you can make
         # a difference for macOS and create an app bundle there.
         onefile: true

      - name: Upload Artifacts
      uses: actions/upload-artifact@v3
      with:
         name: ${{ runner.os }} Build
         path: | # match what's created for the 3 OSes
            build/*.exe
            build/*.bin
            build/*.app/**/*

If you app is a GUI, e.g. your_main_program.py should contain these comments as explained in Nuitka Options in the code since on macOS this should then be a bundle.

# Compilation mode, standalone everywhere, except on macOS there app bundle
# nuitka-project-if: {OS} in ("Windows", "Linux", "FreeBSD"):
#    nuitka-project: --onefile
# nuitka-project-if: {OS} == "Darwin":
#    nuitka-project: --standalone
#    nuitka-project: --macos-create-app-bundle
#
# Debugging options, controlled via environment variable at compile time.
# nuitka-project-if: os.getenv("DEBUG_COMPILATION", "no") == "yes"
#     nuitka-project: --enable-console
# nuitka-project-else:
#     nuitka-project: --disable-console

Tweaks

Icons

For good looks, you may specify icons. On Windows, you can provide an icon file, a template executable, or a PNG file. All of these will work and may even be combined:

# These create binaries with icons on Windows
python -m nuitka --onefile --windows-icon-from-ico=your-icon.png program.py
python -m nuitka --onefile --windows-icon-from-ico=your-icon.ico program.py
python -m nuitka --onefile --windows-icon-template-exe=your-icon.ico program.py

# These create application bundles with icons on macOS
python -m nuitka --macos-create-app-bundle --macos-app-icon=your-icon.png program.py
python -m nuitka --macos-create-app-bundle --macos-app-icon=your-icon.icns program.py

Note

With Nuitka, you do not have to create platform-specific icons, but instead it will convert e.g. PNG, but also other formats on the fly during the build.

MacOS Entitlements

Entitlements for an macOS application bundle can be added with the option, --macos-app-protected-resource, all values are listed on this page from Apple

An example value would be --macos-app-protected-resource=NSMicrophoneUsageDescription:Microphone access for requesting access to a Microphone. After the colon, the descriptive text is to be given.

Note

Beware that in the likely case of using spaces in the description part, you need to quote it for your shell to get through to Nuitka and not be interpreted as Nuitka arguments.

Console Window

On Windows, the console is opened by programs unless you say so. Nuitka defaults to this, effectively being only good for terminal programs, or programs where the output is requested to be seen. There is a difference in pythonw.exe and python.exe along those lines. This is replicated in Nuitka with the option --disable-console. Nuitka recommends you to consider this in case you are using PySide6 e.g. and other GUI packages, e.g. wx, but it leaves the decision up to you. In case, you know your program is console application, just using --enable-console which will get rid of these kinds of outputs from Nuitka.

Note

The pythonw.exe is never good to be used with Nuitka, as you cannot see its output.

Splash screen

Splash screens are useful when program startup is slow. Onefile startup itself is not slow, but your program may be, and you cannot really know how fast the computer used will be, so it might be a good idea to have them. Luckily, with Nuitka, they are easy to add for Windows.

For the splash screen, you need to specify it as a PNG file, and then make sure to disable the splash screen when your program is ready, e.g. has completed the imports, prepared the window, connected to the database, and wants the splash screen to go away. Here we are using the project syntax to combine the code with the creation, compile this:

# nuitka-project: --onefile
# nuitka-project: --onefile-windows-splash-screen-image={MAIN_DIRECTORY}/Splash-Screen.png

# Whatever this is, obviously
print("Delaying startup by 10s...")
import time, tempfile, os
time.sleep(10)

# Use this code to signal the splash screen removal.
if "NUITKA_ONEFILE_PARENT" in os.environ:
   splash_filename = os.path.join(
      tempfile.gettempdir(),
      "onefile_%d_splash_feedback.tmp" % int(os.environ["NUITKA_ONEFILE_PARENT"]),
   )

   if os.path.exists(splash_filename):
      os.unlink(splash_filename)

print("Done... splash should be gone.")
...

# Rest of your program goes here.

Reports

For analysis of your program and Nuitka packaging, there is the Compilation Report available. You can also make custom reports by providing your template, with a few of them built-in to Nuitka. These reports carry all the detail information, e.g. when a module was attempted to be imported, but not found, you can see where that happens. For bug reporting, it is very much recommended to provide the report.

Version Information

You can attach copyright and trademark information, company name, product name, and so on to your compilation. This is then used in version information for the created binary on Windows, or application bundle on macOS. If you find something that is lacking, please let us know.

Typical Problems

Deployment Mode

By default, Nuitka compiles without --deployment which leaves a set of safe guards and helpers on, that are aimed at debugging wrong uses of Nuitka.

This is a new feature, and implements a bunch of protections and helpers, that are documented here.

Fork bombs (self-execution)

So after compilation, sys.executable is the compiled binary. In case of packages like multiprocessing, joblib, or loky what these typically do is to expect to run from a full python with sys.executable and then to be able to use its options like -c command or -m module_name and then be able to launch other code temporarily or permanently as a service daemon.

With Nuitka however, this executes your program again, and puts these arguments, in sys.argv where you maybe ignore them, and then you fork yourself again to launch the helper daemons. Sometimes this ends up spawning CPU count processes that spawn CPU count processes that... this is called a fork bomb, and with almost all systems, that freezes them easily to death.

That is why e.g. this happens with default Nuitka:

./hello.dist/hello.bin -l fooL -m fooM -n fooN -o fooO -p
Error, the program tried to call itself with '-m' argument. Disable with '--no-deployment-flag=self-execution'.

Your program may well have its own command line parsing, and not use an unsupported package that does attempt to re-execute. In this case, you need at compile time to use --no-deployment-flag=self-execution which disables this specific guard.

Misleading Messages

Some packages output what they think is helpful information about what the reason of a failed import might mean. With compiled programs there are very often just plain wrong. We try and repair those in non-deployment mode. Here is an example, where we change a message that asks to pip install (which is not the issue) to point the user to the include command that makes an imageio plugin work.

- module-name: 'imageio.core.imopen'
  anti-bloat:
    - replacements_plain:
        '`pip install imageio[{config.install_name}]` to install it': '`--include-module={config.module_name}` with Nuitka to include it'
        'err_type = ImportError': 'err_type = RuntimeError'
      when: 'not deployment'

And much more

The deployment mode is relatively new and has constantly more features added, e.g. something for FileNotFoundError should be coming soon.

Disabling All

All these helpers can of course be disabled at once with --deployment but keep in mind that for debugging, you may want to re-enable it. You might want to use Nuitka Project options and an environment variable to make this conditional.

Should you disable them all?

We believe, disabling should only happen selectively, but with PyPI upgrades, your code changes, all of these issues can sneak back in. The space saving of deployment mode is currently negligible, so attempt to not do it, but review what exists, and if you know that it cannot affect you, or if it does, you will not need it. Some of the future ones, will clearly be geared at beginner level usage.

Windows Virus scanners

Binaries compiled on Windows with default settings of Nuitka and no further actions taken might be recognized by some AV vendors as malware. This is avoidable, but only in Nuitka commercial there is actual support and instructions for how to do it, seeing this as a typical commercial only need. https://nuitka.net/doc/commercial.html

Linux Standalone

For Linux standalone it is pretty difficult to build a binary that works on other Linux versions. This is mainly because on Linux, much software is built specifically targeted to concrete DLLs. Things like glibc used, are then encoded into the binary built, and it will not run with an older glibc, just to give one critical example.

The solution is to build on the oldest OS that you want to see supported. Picking that and setting it up can be tedious, so can be login, and keeping it secure, as it's something you put your source code on.

To aid that, Nuitka commercial has container based builds, that you can use. This uses dedicated optimized Python builds, targets CentOS 7 and supports even newest Pythons and very old OSes that way using recent C compiler chains all turn key solution. The effort needs to be compensated to support Nuitka development for Linux, there you need to purchase it https://nuitka.net/doc/commercial.html but even a sponsor license will be cheaper than doing it yourself.

Program crashes system (fork bombs)

A fork bomb is a program that starts itself over and over. This can easily happen, since sys.executable for compiled programs is not a Python interpreter, and packages that try to do multiprocessing in a better way, often relaunch themselves through this, and Nuitka needs and does have handling for these with known packages. However, you may encounter a situation where the detection of this fails. See deployment option above that is needed to disable this protection.

When this fork bomb happens easily all memory, all CPU of the system that is available to the user is being used, and even the most powerful build system will go down in flames sometimes needing a hard reboot.

For fork bombs, we can use --experimental=debug-self-forking and see what it does, and we have a trick, that prevents fork bombs from having any actual success in their bombing. Put this at the start of your program.

import os, sys

if "NUITKA_LAUNCH_TOKEN" not in os.environ:
   sys.exit("Error, need launch token or else fork bomb suspected.")
else:
   del os.environ["NUITKA_LAUNCH_TOKEN"]

Actually Nuitka is trying to get ahold of them without the deployment option already, finding "-c" and "-m" options, but it may not be perfect or not work well with a package (anymore).

Memory issues and compiler bugs

In some cases, the C compilers will crash saying they cannot allocate memory or that some input was truncated, or similar error messages, clearly from it. These are example error messages, that are a sure sign of too low memory, there is no end to them.

# gcc
fatal error: error writing to -: Invalid argument
Killed signal terminated program
# MSVC
fatal error C1002: compiler is out of heap space in pass 2
fatal error C1001: Internal compiler error

There are several options you can explore here.

Ask Nuitka to use less memory

There is a dedicated option --low-memory which influences decisions of Nuitka, such that it avoids high usage of memory during compilation at the cost of increased compile time.

Avoid 32 bit C compiler/assembler memory limits

Do not use a 32 bit compiler, but a 64 bit one. If you are using Python with 32 bits on Windows, you most definitely ought to use MSVC as the C compiler, and not MinGW64. The MSVC is a cross-compiler, and can use more memory than gcc on that platform. If you are not on Windows, that is not an option, of course. Also, using the 64 bit Python will work.

Use a minimal virtualenv

When you compile from a living installation, that may well have many optional dependencies of your software installed. Some software will then have imports on these, and Nuitka will compile them as well. Not only may these be just the troublemakers, they also require more memory, so get rid of that. Of course, you do have to check that your program has all the needed dependencies before you attempt to compile, or else the compiled program will equally not run.

Use LTO compilation or not

With --lto=yes or --lto=no you can switch the C compilation to only produce bytecode, and not assembler code and machine code directly, but make a whole program optimization at the end. This will change the memory usage pretty dramatically, and if your error is coming from the assembler, using LTO will most definitely avoid that.

Switch the C compiler to clang

People have reported that programs that fail to compile with gcc due to its bugs or memory usage work fine with clang on Linux. On Windows, this could still be an option, but it needs to be implemented first for the automatic downloaded gcc, that would contain it. Since MSVC is known to be more memory effective anyway, you should go there, and if you want to use Clang, there is support for the one contained in MSVC.

Add a larger swap file to your embedded Linux

On systems with not enough RAM, you need to use swap space. Running out of it is possibly a cause, and adding more swap space, or one at all, might solve the issue, but beware that it will make things extremely slow when the compilers swap back and forth, so consider the next tip first or on top of it.

Limit the amount of compilation jobs

With the --jobs option of Nuitka, it will not start many C compiler instances at once, each competing for the scarce resource of RAM. By picking a value of one, only one C compiler instance will be running, and on an 8 core system, that reduces the amount of memory by factor 8, so that's a natural choice right there.

Dynamic sys.path

If your script modifies sys.path, e.g. inserts directories with source code relative to it, Nuitka will not be able to see those. However, if you set the PYTHONPATH to the resulting value, it will be able to compile it and find the used modules from these paths as well.

Manual Python File Loading

A very frequent pattern with private code is that it scans plugin directories of some kind, and e.g. uses os.listdir, then considers Python filenames, and then opens a file and does exec on them. This approach works for Python code, but for compiled code, you should use this much cleaner approach, that works for pure Python code and is a lot less vulnerable.

# Using a package name, to locate the plugins. This is also a sane
# way to organize them into a directory.
scan_path = scan_package.__path__

for item in pkgutil.iter_modules(scan_path):
   importlib.import_module(scan_package.__name__ + "." + item.name)

   # You may want to do it recursively, but we don't do this here in
   # this example. If you'd like to, handle that in this kind of branch.
   if item.ispkg:
      ...

Missing data files in standalone

If your program fails to find data file, it can cause all kinds of different behavior, e.g. a package might complain it is not the right version because a VERSION file check defaulted to an unknown. The absence of icon files or help texts, may raise strange errors.

Often the error paths for files not being present are even buggy and will reveal programming errors like unbound local variables. Please look carefully at these exceptions, keeping in mind that this can be the cause. If your program works without standalone, chances are data files might be the cause.

The most common error indicating file absence is of course an uncaught FileNotFoundError with a filename. You should figure out what package is missing files and then use --include-package-data (preferably), or --include-data-dir/--include-data-files to include them.

Missing DLLs/EXEs in standalone

Nuitka has plugins that deal with copying DLLs. For NumPy, SciPy, Tkinter, etc.

These need special treatment to be able to run on other systems. Manually copying them is not enough and will give strange errors. Sometimes newer version of packages, esp. NumPy can be unsupported. In this case, you will have to raise an issue, and use the older one.

If you want to manually add a DLL or an EXE because it is your project only, you will have to use user Yaml files describing where they can be found. This is described in detail with examples in the Nuitka Package Configuration page.

Dependency creep in standalone

Some packages are a single import, but to Nuitka mean that more than a thousand packages (literally) are to be included. The prime example of Pandas, which does want to plug and use just about everything you can imagine. Multiple frameworks for syntax highlighting everything imaginable take time.

Nuitka will have to learn effective caching to deal with this in the future. Presently, you will have to deal with huge compilation times for these.

A major weapon in fighting dependency creep should be applied, namely the anti-bloat plugin, which offers interesting abilities, that can be put to use and block unneeded imports, giving an error for where they occur. Use it e.g. like this --noinclude-pytest-mode=nofollow --noinclude-setuptools-mode=nofollow and e.g. also --noinclude-custom-mode=setuptools:error to get the compiler to error out for a specific package. Make sure to check its help output. It can take for each module of your choice, e.g. forcing also that e.g. PyQt5 is considered uninstalled for standalone mode.

It's also driven by a configuration file, anti-bloat.yml that you can contribute to, removing typical bloat from packages. Please don't hesitate to enhance it and make PRs towards Nuitka with it.

Standalone: Finding files

The standard code that normally works, also works, you should refer to os.path.dirname(__file__) or use all the packages like pkgutil, pkg_resources, importlib.resources to locate data files near the standalone binary.

Important

What you should not do, is use the current directory os.getcwd, or assume that this is the script directory, e.g. with paths like data/.

If you did that, it was never good code. Links, to a program, launching from another directory, etc. will all fail in bad ways. Do not make assumptions about the directory your program is started from.

In case you mean to refer to the location of the .dist folder for files that are to reside near the binary, there is __compiled__.containing_dir that also abstracts all differences with --macos-create-app-bundle and the .app folder a having more nested structure.

# This will find a file *near* your app or dist folder
try:
   open(os.path.join(__compiled__.containing_dir, "user-provided-file.txt"))
except NameError:
   open(os.path.join(os.path.dirname(sys.argv[0]), "user-provided-file.txt"))

Onefile: Finding files

There is a difference between sys.argv[0] and __file__ of the main module for the onefile mode, that is caused by using a bootstrap to a temporary location. The first one will be the original executable path, whereas the second one will be the temporary or permanent path the bootstrap executable unpacks to. Data files will be in the later location, your original environment files will be in the former location.

Given 2 files, one which you expect to be near your executable, and one which you expect to be inside the onefile binary, access them like this.

# This will find a file *near* your onefile.exe
open(os.path.join(os.path.dirname(sys.argv[0]), "user-provided-file.txt"))
# This will find a file *inside* your onefile.exe
open(os.path.join(os.path.dirname(__file__), "user-provided-file.txt"))

# This will find a file *near* your onefile binary and work for standalone too
try:
   open(os.path.join(__compiled__.containing_dir, "user-provided-file.txt"))
except NameError:
   open(os.path.join(os.path.dirname(sys.argv[0]), "user-provided-file.txt"))

Windows Programs without console give no errors

For debugging purposes, remove --disable-console or use the options --force-stdout-spec and --force-stderr-spec with paths as documented for --onefile-tempdir-spec above. These can be relative to the program or absolute, so you can see the outputs given.

Deep copying uncompiled functions

Sometimes people use this kind of code, which for packages on PyPI, we deal with by doing source code patches on the fly. If this is in your own code, here is what you can do:

def binder(func, name):
   result = types.FunctionType(func.__code__, func.__globals__, name=func.__name__, argdefs=func.__defaults__, closure=func.__closure__)
   result = functools.update_wrapper(result, func)
   result.__kwdefaults__ = func.__kwdefaults__
   result.__name__ = name
   return result

Compiled functions cannot be used to create uncompiled ones from, so the above code will not work. However, there is a dedicated clone method, that is specific to them, so use this instead.

def binder(func, name):
   try:
      result = func.clone()
   except AttributeError:
      result = types.FunctionType(func.__code__, func.__globals__, name=func.__name__, argdefs=func.__defaults__, closure=func.__closure__)
      result = functools.update_wrapper(result, func)
      result.__kwdefaults__ = func.__kwdefaults__

   result.__name__ = name
   return result

Modules: Extension modules are not executable directly

A package can be compiled with Nuitka, no problem, but when it comes to executing it, python -m compiled_module is not going to work and give the error No code object available for AssertsTest because the compiled module is not source code, and Python will not just load it. The closest would be python -c "import compile_module" and you might have to call the main function yourself.

To support this, the CPython runpy and/or ExtensionFileLoader would need improving such that Nuitka could supply its compiled module object for Python to use.

Tips

Nuitka Options in the code

One clean way of providing options to Nuitka, that you will always use for your program, is to put them into the main file you compile. There is even support for conditional options, and options using pre-defined variables, this is an example:

# Compilation mode, support OS-specific options
# nuitka-project-if: {OS} in ("Windows", "Linux", "Darwin", "FreeBSD"):
#    nuitka-project: --onefile
# nuitka-project-else:
#    nuitka-project: --standalone

# The PySide2 plugin covers qt-plugins
# nuitka-project: --enable-plugin=pyside2
# nuitka-project: --include-qt-plugins=qml

The comments must be at the start of lines, and indentation inside of them is to be used, to end a conditional block, much like in Python. There are currently no other keywords than the used ones demonstrated above.

You can put arbitrary Python expressions there, and if you wanted to e.g. access a version information of a package, you could simply use __import__("module_name").__version__ if that would be required to e.g. enable or disable certain Nuitka settings. The only thing Nuitka does that makes this not Python expressions, is expanding {variable} for a pre-defined set of variables:

Table with supported variables:

Variable What this Expands to Example
{OS} Name of the OS used Linux, Windows, Darwin, FreeBSD, OpenBSD
{Version} Version of Nuitka e.g. (1, 6, 0)
{Commercial} Version of Nuitka Commercial e.g. (2, 1, 0)
{Arch} Architecture used x86_64, arm64, etc.
{MAIN_DIRECTORY} Directory of the compiled file some_dir/maybe_relative
{Flavor} Variant of Python e.g. Debian Python, Anaconda Python

The use of {MAIN_DIRECTORY} is recommended when you want to specify a filename relative to the main script, e.g. for use in data file options or user package configuration yaml files,

# nuitka-project: --include-data-files={MAIN_DIRECTORY}/my_icon.png=my_icon.png
# nuitka-project: --user-package-configuration-file={MAIN_DIRECTORY}/user.nuitka-package.config.yml

Python command line flags

For passing things like -O or -S to Python, to your compiled program, there is a command line option name --python-flag= which makes Nuitka emulate these options.

The most important ones are supported, more can certainly be added.

Caching compilation results

The C compiler, when invoked with the same input files, will take a long time and much CPU to compile over and over. Make sure you are having ccache installed and configured when using gcc (even on Windows). It will make repeated compilations much faster, even if things are not yet not perfect, i.e. changes to the program can cause many C files to change, requiring a new compilation instead of using the cached result.

On Windows, with gcc Nuitka supports using ccache.exe which it will offer to download from an official source and it automatically. This is the recommended way of using it on Windows, as other versions can e.g. hang.

Nuitka will pick up ccache if it's found in system PATH, and it will also be possible to provide if by setting NUITKA_CCACHE_BINARY to the full path of the binary, this is for use in CI systems where things might be non-standard.

For the MSVC compilers and ClangCL setups, using the clcache is automatic and included in Nuitka.

On macOS and Intel, there is an automatic download of a ccache binary from our site, for arm64 arches, it's recommended to use this setup, which installs Homebrew and ccache in there. Nuitka picks that one up automatically if it on that kind of machine. You need and should not use Homebrew with Nuitka otherwise, it's not the best for standalone deployments, but we can take ccache from there.

export HOMEBREW_INSTALL_FROM_API=1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
eval $(/opt/homebrew/bin/brew shellenv)
brew install ccache

Control where Caches live

The storage for cache results of all kinds, downloads, cached compilation results from C and Nuitka, is done in a platform dependent directory as determined by the appdirs package. However, you can override it with setting the environment variable NUITKA_CACHE_DIR to a base directory. This is for use in environments where the home directory is not persisted, but other paths are.

There is also per cache control of these caches, here is a table of environment variables that you can set before starting the compilation, to make Nuitka store some of these caches in an entirely separate space.

Cache name Environment Variable Data Put there
downloads NUITKA_CACHE_DIR_DOWNLOADS Downloads made, e.g. dependency walker
ccache NUITKA_CACHE_DIR_CCACHE Object files created by gcc
clcache NUITKA_CACHE_DIR_CLCACHE Object files created by MSVC
bytecode NUITKA_CACHE_DIR_BYTECODE Bytecode of demoted modules
dll-dependencies NUITKA_CACHE_DIR_DLL_DEPENDENCIES DLL dependencies

Runners

Avoid running the nuitka binary, doing python -m nuitka will make a 100% sure you are using what you think you are. Using the wrong Python will make it give you SyntaxError for good code or ImportError for installed modules. That is happening, when you run Nuitka with Python2 on Python3 code and vice versa. By explicitly calling the same Python interpreter binary, you avoid that issue entirely.

Fastest C Compilers

The fastest binaries of pystone.exe on Windows with 64 bits Python proved to be significantly faster with MinGW64, roughly 20% better score. So it is recommended for use over MSVC. Using clang-cl.exe of Clang7 was faster than MSVC, but still significantly slower than MinGW64, and it will be harder to use, so it is not recommended.

On Linux, for pystone.bin, the binary produced by clang6 was faster than gcc-6.3, but not by a significant margin. Since gcc is more often already installed, that is recommended to use for now.

Differences in C compilation times have not yet been examined.

Unexpected Slowdowns

Using the Python DLL, like standard CPython does, can lead to unexpected slowdowns, e.g. in uncompiled code that works with Unicode strings. This is because calling to the DLL rather than residing in the DLL causes overhead, and this even happens to the DLL with itself, being slower, than a Python all contained in one binary.

So if feasible, aim at static linking, which is currently only possible with Anaconda Python on non-Windows, Debian Python2, self compiled Pythons (do not activate --enable-shared, not needed), and installs created with pyenv.

Note

On Anaconda, you may need to execute conda install libpython-static

Standalone executables and dependencies

The process of making standalone executables for Windows traditionally involves using an external dependency walker to copy necessary libraries along with the compiled executables to the distribution folder.

There are plenty of ways to find that something is missing. Do not manually copy things into the folder, esp. not DLLs, as that's not going to work. Instead, make bug reports to get these handled by Nuitka properly.

Windows errors with resources

On Windows, the Windows Defender tool and the Windows Indexing Service both scan the freshly created binaries, while Nuitka wants to work with it, e.g. adding more resources, and then preventing operations randomly due to holding locks. Make sure to exclude your compilation stage from these services.

Windows standalone program redistribution

Whether compiling with MingW or MSVC, the standalone programs have external dependencies to Visual C Runtime libraries. Nuitka tries to ship those dependent DLLs by copying them from your system.

Beginning with Microsoft Windows 10, Microsoft ships ucrt.dll (Universal C Runtime libraries) which handles calls to api-ms-crt-*.dll.

With earlier Windows platforms (and wine/ReactOS), you should consider installing Visual C runtime libraries before executing a Nuitka standalone compiled program.

Depending on the used C compiler, you'll need the following redist versions on the target machines. However, notice that compilation using the 14.3 based version is always recommended, working and best supported, unless you want to target Windows 7.

Visual C version Redist Year CPython
14.3 2022 3.11
14.2 2019 3.5-3.10
14.1 2017 3.5-3.8
14.0 2015 3.5-3.8
10.0 2010 3.4
9.0 2008 2.6, 2.7

When using MingGW64 as downloaded by Nuitka, you'll need the following redist versions:

MingGW64 version Redist Year CPython
WinLibs automatic download 2015 2.6, 2.7, 3.4- 3.11

Once the corresponding runtime libraries are installed on the target system, you may remove all api-ms-crt-*.dll files from your Nuitka compiled dist folder.

Detecting Nuitka at run time

Nuitka does not sys.frozen unlike other tools because it usually triggers inferior code for no reason. For Nuitka, we have the module attribute __compiled__ to test if a specific module was compiled, and the function attribute __compiled__ to test if a specific function was compiled.

Providing extra Options to Nuitka C compilation

Nuitka will apply values from the environment variables CCFLAGS, LDFLAGS during the compilation on top of what it determines to be necessary. Beware, of course, that is this is only useful if you know what you are doing, so should this pose issues, raise them only with perfect information.

Producing a 32 bit binary on a 64 bit Windows system

Nuitka will automatically target the architecture of the Python you are using. If this is 64 bit, it will create a 64 bit binary, if it is 32 bit, it will create a 32 bit binary. You have the option to select the bits when you download the Python. In the output of python -m nuitka --version there is a line for the architecture. It's Arch: x86_64 for 64 bits, and just Arch: x86 for 32 bits.

The C compiler will be picked to match that more or less automatically. If you specify it explicitly, and it mismatches, you will get a warning about the mismatch and informed that your compiler choice was rejected.

Compilation Report

When you use --report=compilation-report.xml Nuitka will create an XML file with detailed information about the compilation and packaging process. This is growing in completeness with every release and exposes module usage attempts, timings of the compilation, plugin influences, data file paths, DLLs, and reasons why things are included or not.

At this time, the report contains absolute paths in some places, with your private information. The goal is to make this blended out by default because we also want to become able to compare compilation reports from different setups, e.g. with updated packages, and see the changes to Nuitka. The report is, however, recommended for your bug reporting.

Also, another form is available, where the report is free form and according to a Jinja2 template of yours, and one that is included in Nuitka. The same information as used to produce the XML file is accessible. However, right now, this is not yet documented, but we plan to add a table with the data. For a reader of the source code that is familiar with Jinja2, however, it will be easy to do it now already.

If you have a template, you can use it like this --report-template=your_template.rst.j2:your_report.rst and of course, the usage of restructured text, is only an example. You can use Markdown, your own XML, or whatever you see fit. Nuitka will just expand the template with the compilation report data.

Currently, the following reports are included in Nuitka. You just use the name as a filename, and Nuitka will pick that one instead.

Report Name Status Purpose
LicenseReport experimental Distributions used in a compilation with license texts

Note

The community can and should contribute more report types and help enhancing the existing ones for good looks.

Performance

This chapter gives an overview, of what to currently expect in terms of performance from Nuitka. It's a work in progress and is updated as we go. The current focus for performance measurements is Python 2.7, but 3.x is going to follow later.

pystone results

The results are the top value from this kind of output, running pystone 1000 times and taking the minimal value. The idea is that the fastest run is most meaningful, and eliminates usage spikes.

echo "Uncompiled Python2"
for i in {1..100}; do BENCH=1 python2 tests/benchmarks/pystone.py ; done | sort -rn | head -n 1
python2 -m nuitka --lto=yes --pgo tests/benchmarks/pystone.py
echo "Compiled Python2"
for i in {1..100}; do BENCH=1 ./pystone.bin ; done | sort -n | head -rn 1

echo "Uncompiled Python3"
for i in {1..100}; do BENCH=1 python3 tests/benchmarks/pystone3.py ; done | sort -rn | head -n 1
python3 -m nuitka --lto=yes --pgo tests/benchmarks/pystone3.py
echo "Compiled Python3"
for i in {1..100}; do BENCH=1 ./pystone3.bin ; done | sort -rn | head -n 1
Python Uncompiled Compiled LTO Compiled PGO
Debian Python 2.7 137497.87 (1.000) 460995.20 (3.353) 503681.91 (3.663)
Nuitka Python 2.7 144074.78 (1.048) 479271.51 (3.486) 511247.44 (3.718)

Report issues or bugs

Should you encounter any issues, bugs, or ideas, please visit the Nuitka bug tracker and report them.

Best practices for reporting bugs:

  • Please always include the following information in your report, for the underlying Python version. You can easily copy&paste this into your report. It does contain more information than you think. Do not write something manually. You may always add, of course,

    python -m nuitka --version
  • Try to make your example minimal. That is, try to remove code that does not contribute to the issue as much as possible. Ideally, come up with a small reproducing program that illustrates the issue, using print with different results when the program runs compiled or native.
  • If the problem occurs spuriously (i.e. not each time), try to set the environment variable PYTHONHASHSEED to 0, disabling hash randomization. If that makes the problem go away, try increasing in steps of 1 to a hash seed value that makes it happen every time, include it in your report.
  • Do not include the created code in your report. Given proper input, it's redundant, and it's not likely that I will look at it without the ability to change the Python or Nuitka source and re-run it.
  • Do not send screenshots of text, that is bad and lazy. Instead, capture text outputs from the console.

Unsupported functionality

The co_code attribute of code objects

The code objects are empty for native compiled functions. There is no bytecode with Nuitka's compiled function objects, so there is no way to provide it.

PDB

There is no tracing of compiled functions to attach a debugger to.


  1. Support for this C11 is given with gcc 5.x or higher or any clang version.

    The older MSVC compilers don't do it yet. But as a workaround, with Python 3.10 or older, the C++03 language standard is significantly overlapping with C11, it is then used instead.

  2. Download for free from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx (the community editions work just fine).

    The latest version is recommended, but not required. On the other hand, there is no need to except to support pre-Windows 10 versions, and they might work for you, but support of these configurations is only available to commercial users.

nuitka's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nuitka's Issues

Boostrap issue when running generated exe

  • Nuitka version: 0.5.29rc4
  • Python version: Python 3.6.1 Anaconda
  • Windows 10
  • Nuitka downloaded from site and installed from Nuitka-5.0.2940.win-amd64.py36.msi
  • I am using a virtual env

I am freezing a python command line program. I had to update to the RC version as Nuitka-5.1.281.win-amd64.py36.msi was not able to freeze the program (same warning messages as issue#60, can not find ... as absolute import, executable not generated).

0.5.29RC 4 generates the executable, but once called it fails.

The error message is the following:
import numpy as np
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 646, in _load_unlocked
File "<frozen importlib._bootstrap>", line 616, in _load_backward_compatible
KeyError: 'numpy'
Traceback (most recent call last):

I checked that numpy was already installed in the virtual environment, there is no problem.
There was another module giving the same issue. I placed the python module file next to executable and the issue is gone.

Please tell me what other checks I can do to solve the issue.

nuitka fails to find C include files

Tried nuitka-0.5.27 on Gentoo/AMD.

nuitka fails to compile 2-line program import numpy;print numpy.zeros([2,2])

Lots of warnins like

Nuitka:WARNING:/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py:72: Cannot find 'pkg_resources.extern.packaging.markers' in package 'pkg_resources' as absolute import.

and

Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib64/python2.7/site-packages/six.py:82' may require use of '--recurse-directory'.

Then multiple error messages like

n.build/__frozen.cpp(3): catastrophic error: cannot open source file "Python.h"
  #include <Python.h>
                     ^

compilation aborted for n.build/__frozen.cpp (code 4)
n.build/__helpers.cpp(4): catastrophic error: cannot open source file "nuitka/prelude.h"
  #include "nuitka/prelude.h"
                             ^

List of installed nuitka files (truncated for readability):

/usr
/usr/bin
/usr/bin/nuitka
/usr/bin/nuitka-run
/usr/lib
/usr/lib/python-exec
/usr/lib/python-exec/python2.7
/usr/lib/python-exec/python2.7/nuitka
/usr/lib/python-exec/python2.7/nuitka-run
/usr/lib64
/usr/lib64/python2.7
/usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/Nuitka-0.5.27-py2.7.egg-info
/usr/lib64/python2.7/site-packages/Nuitka-0.5.27-py2.7.egg-info/PKG-INFO
/usr/lib64/python2.7/site-packages/Nuitka-0.5.27-py2.7.egg-info/SOURCES.txt
/usr/lib64/python2.7/site-packages/Nuitka-0.5.27-py2.7.egg-info/dependency_links.txt
/usr/lib64/python2.7/site-packages/Nuitka-0.5.27-py2.7.egg-info/top_level.txt
/usr/lib64/python2.7/site-packages/nuitka
/usr/lib64/python2.7/site-packages/nuitka/Builtins.py
/usr/lib64/python2.7/site-packages/nuitka/Builtins.pyc
...
/usr/lib64/python2.7/site-packages/nuitka/build/__init__.pyo
/usr/lib64/python2.7/site-packages/nuitka/build/include
/usr/lib64/python2.7/site-packages/nuitka/build/include/coro.h
/usr/lib64/python2.7/site-packages/nuitka/build/include/nuitka
/usr/lib64/python2.7/site-packages/nuitka/build/include/nuitka/allocator.h
...
/usr/lib64/python2.7/site-packages/nuitka/build/include/nuitka/prelude.h
...
/usr/lib64/python2.7/site-packages/nuitka/utils/__init__.pyo
/usr/share
/usr/share/doc
/usr/share/doc/nuitka-0.5.27
/usr/share/doc/nuitka-0.5.27/README.rst.lzma

Whereabouts of Python.h:

/usr/include/python2.7/Python.h
/usr/include/python3.4m/Python.h
/usr/lib64/pypy/include/Python.h
... (android and macos stuff skipped)

If more information from me is required, I will of course provide it.

Error loading QtWidgets.pyd

@kayhayen

Created another little test for you, in this case I dont use * to import modules, you can reproduce it:

NS: nuitka3 main.py --show-progress --recurse-all --standalone --plugin-enable=qt-plugins didn't make any difference, you'll still get:

D:\sources\personal\python\apps\nuitka_tests\pyqt\test2\main.dist>main.exe
Traceback (most recent call last):
  File "D:\sources\personal\python\apps\nuitka_tests\pyqt\test2\main.dist\main.py", line 3, in <module>
ImportError: LoadLibraryEx 'D:\sources\personal\python\apps\nuitka_tests\pyqt\test2\main.dist\PyQt5\QtWidgets.pyd' failed

Reference leak for star dictionary updates

Issue:
Memory leak

Tested on:
Windows 10
Python 3.6.1
Nuitka version 0.5.29.2 (pip) & 0.5.30rc3 (zip file from website)

Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-116-generic x86_64)
Python 3.5.2
Nuitka version 0.5.28 (pip) & 0.5.29.2 (pip)

Code example:

while True:
    a = {
        'a': 1,
        'b': 2
        }
    b = {'c': 3, **a}

Steps to recreate:
nuitka example.py
run the example binary
(monitor the memory useage)

Extra info:
The problem is most likely being caused by the **a

Error while compiling the Python code with Tensorflow with Nuitka compiler

Hi,

I am trying to compile a very simple code with tensorflow. which imports tensorflow. The code compiles fine with Pycharm. But when i try comiling with nuitka --recurse-all Tensorflow_test.py . I have installed Nuitka using anaconda prompt
It gives warning Nuitka:WARNING:Tensorflow_test.py:1: Cannot find 'tensorflow' as relative or absolute import.

I tried nuitka --recurse-all --recurse-directory=C:\Users\tier3dlab1\Anaconda2\pkgs\tensorflow-1.2.1-py36_0\Lib\site-packages\tensorflow --show-progress --standalone Tensorflow_test.py this command also where i am giving the path of tensorflow .But it gives me the below error
File "c:\users\tier3dlab1\anaconda2\lib\site-packages\nuitka\nodes\ModuleNodes.py", line 57, in init
assert '.' not in name, name
AssertionError: benchmark.xcodeproj
and with lots of warnings.
I am able to compile a simple python code with Nuitka. The screenshots are as attached.Please advise
img1
imag2

ImportError with multiprocessing

ImportError with multiprocessing:

./process.exe 
Traceback (most recent call last):
  File "/home/ubuntu/thread_test/process.py", line 3, in <module>
    from concurrent.futures import ProcessPoolExecutor
  File "/usr/lib/python3.5/concurrent/futures/__init__.py", line 17, in <module>
    from concurrent.futures.process import ProcessPoolExecutor
  File "/usr/lib/python3.5/concurrent/futures/process.py", line 55, in <module>
    from multiprocessing.connection import wait
  File "/usr/lib/python3.5/multiprocessing/connection.py", line 21, in <module>
    import _multiprocessing
ImportError: /home/ubuntu/thread_test/_multiprocessing.so: cannot open shared object file: No such file or directory

Code to reproduce:

#!/usr/bin/env python3

from concurrent.futures import ProcessPoolExecutor
from time import sleep
 
def thread(msg):
    sleep(1)
    print("Message: {}".format(msg))
 
pool = ProcessPoolExecutor(2)
 
future = pool.submit(thread, "I have my own GIL")
print(future.done())
sleep(2)
print(future.done())

Compile with:

nuitka --standalone --python-flag=no_site --python-version=3.5 process.py

The culprit seems to be the --standalone argument as this works fine:

nuitka --recurse-all --python-flag=no_site --python-version=3.5 process.py
Nuitka version: 0.5.27
Python 3 version: 3.5.2
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.3 LTS
Release:	16.04
Codename:	xenial

Build for Raspberry pi ?

Hi,
Is there any chance you can add a build for raspbian to the packages you provide ?

I had a quick go installing the one in their repo, it's version 0.5.5.3 and my codebase is python 3.4, I got a bunch of errors that made me think trying a newer version might be an idea.

S

$ python `which nuitka` --recurse-all lumen_client/lumenclient.py 
WARNING:root:Problem at '<SourceCodeReference to lumen_client/lumenclient.py:8>' with Call(func=Attribute(value=Name(id='uvloop', ctx=Load()), attr='EventLoopPolicy', ctx=Load()), args=[], keywords=[]).
WARNING:root:Problem at '<SourceCodeReference to lumen_client/lumenclient.py:8>' with Call(func=Attribute(value=Name(id='asyncio', ctx=Load()), attr='set_event_loop_policy', ctx=Load()), args=[Call(func=Attribute(value=Name(id='uvloop', ctx=Load()), attr='EventLoopPolicy', ctx=Load()), args=[], keywords=[])], keywords=[]).
WARNING:root:Problem at '<SourceCodeReference to lumen_client/lumenclient.py:8>' with Expr(value=Call(func=Attribute(value=Name(id='asyncio', ctx=Load()), attr='set_event_loop_policy', ctx=Load()), args=[Call(func=Attribute(value=Name(id='uvloop', ctx=Load()), attr='EventLoopPolicy', ctx=Load()), args=[], keywords=[])], keywords=[])).
Traceback (most recent call last):
  File "/usr/bin/nuitka", line 156, in <module>
    MainControl.main()
  File "/usr/share/nuitka/nuitka/MainControl.py", line 660, in main
    filename = filename
  File "/usr/share/nuitka/nuitka/MainControl.py", line 72, in createNodeTree
    is_main  = not Options.shallMakeModule()
  File "/usr/share/nuitka/nuitka/tree/Building.py", line 1242, in buildModuleTree
    is_main         = is_main
  File "/usr/share/nuitka/nuitka/tree/Building.py", line 1201, in createModuleTree
    is_main     = is_main
  File "/usr/share/nuitka/nuitka/tree/Building.py", line 896, in buildParseTree
    source_ref = source_ref
  File "/usr/share/nuitka/nuitka/tree/Helpers.py", line 168, in buildStatementsNode
    statements = buildNodeList(provider, nodes, source_ref, allow_none = True)
  File "/usr/share/nuitka/nuitka/tree/Helpers.py", line 130, in buildNodeList
    entry = buildNode(provider, node, node_source_ref, allow_none)
  File "/usr/share/nuitka/nuitka/tree/Helpers.py", line 91, in buildNode
    source_ref = source_ref
  File "/usr/share/nuitka/nuitka/tree/Building.py", line 761, in buildExprOnlyNode
    expression = buildNode( provider, node.value, source_ref ),
  File "/usr/share/nuitka/nuitka/tree/Helpers.py", line 91, in buildNode
    source_ref = source_ref
  File "/usr/share/nuitka/nuitka/tree/ReformulationCallExpressions.py", line 42, in buildCallNode
    positional_args = buildNodeList(provider, node.args, source_ref)
  File "/usr/share/nuitka/nuitka/tree/Helpers.py", line 130, in buildNodeList
    entry = buildNode(provider, node, node_source_ref, allow_none)
  File "/usr/share/nuitka/nuitka/tree/Helpers.py", line 91, in buildNode
    source_ref = source_ref
  File "/usr/share/nuitka/nuitka/tree/ReformulationCallExpressions.py", line 61, in buildCallNode
    list_star_arg = buildNode(provider, node.starargs, source_ref, True)
AttributeError: 'Call' object has no attribute 'starargs'

Not working on Windows 10 VS 2017

I created a very simple python script:
print("hi there")

...and I typed this in the command line to get it to compile within nuitka:

nuitka --standalone hithere.py

This is the error I'm getting:

Traceback (most recent call last):
  File "C:\Python36\Scripts\nuitka", line 211, in <module>
    MainControl.main()
  File "C:\Python36\Lib\site-packages\nuitka\MainControl.py", line 766, in main
    main_module = main_module
  File "C:\Python36\Lib\site-packages\nuitka\MainControl.py", line 682, in compileTree
    quiet       = not Options.isShowScons()
  File "C:\Python36\Lib\site-packages\nuitka\MainControl.py", line 549, in runScons
    return SconsInterface.runScons(options, quiet), options
  File "C:\Python36\Lib\site-packages\nuitka\build\SconsInterface.py", line 266, in runScons
    return subprocess.call(scons_command, shell = False) == 0
  File "C:\Python36\lib\subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p:
  File "C:\Python36\lib\subprocess.py", line 707, in __init__
    restore_signals, start_new_session)
  File "C:\Python36\lib\subprocess.py", line 990, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

My system info (if you're curios):

  • Windows 10
  • Python 3.6 & Python 2.7.13 (both 64bit)
  • C:\MinGW64 installed in that pathway
  • CC pathway setup correctly for gcc.exe
  • Latest version of Nuitka (used the MSI download) - 0.5.27
  • I was tying to compile originally via python 2.7 (I was getting the message of "Error, cannot locate suitable C compiler. You have the following options:" although I did follow those steps) -- I'm happy that its just throwing some strange Windows error looking for something instead of the other problem

I wish I could just get a VM with this working on it so I didn't have to jump through these steps to not really progress at all.

.pyd file produced not .so

Hello
I used Nuitka in windows 10 environment 64bit with visual studio 15 installed and python 2.7xx.
i used command line on shell as written in documentation to produce .so file
nuitka --module myplugin.py
everything going ok without error messages but the file produced with extension .pyd
The file is ok in windows and i can import functions from it to other python modules.
but i want to use the file in project python in small Linux environment in enigma2 box(like dreambox),i tried to use the .pyd file in this Linux environment but failed to import functions(could not import myplugin.pyd),but i know my small linux enviroment can manage .so file
Is there way to produce .so file in windows or i have to use linux(my small box small linux can not manage Nuitka) and i do not have standard pc linux for now)?

Problems with getting started: WinError 2

Hy nuitka people,

I'm a newby to nuitka and i would really like to try it, but i'm running into some troubles. If i try to compile a simple HelloWorld.py file i always end up with the following error:

C:\Python34\Scripts>nuitka --module HelloWorld.py
Traceback (most recent call last):
File "C:\Python34\Scripts\nuitka", line 195, in
MainControl.main()
File "C:\Python34\Lib\site-packages\nuitka\MainControl.py", line 737, in main
main_module = main_module
File "C:\Python34\Lib\site-packages\nuitka\MainControl.py", line 654, in compi
leTree
quiet = not Options.isShowScons()
File "C:\Python34\Lib\site-packages\nuitka\MainControl.py", line 524, in runSc
ons
return SconsInterface.runScons(options, quiet), options
File "C:\Python34\Lib\site-packages\nuitka\build\SconsInterface.py", line 215,
in runScons
return subprocess.call(scons_command, shell = False) == 0
File "C:\Python34\lib\subprocess.py", line 535, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Python34\lib\subprocess.py", line 848, in init
restore_signals, start_new_session)
File "C:\Python34\lib\subprocess.py", line 1104, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finde
n

Here is what i did to install nuitka: I downloaded the nuitka installation .msi file for windows x64 and python 3.4. I started the installation and added the path to the python 3.4 installation. Corresponding to that I use python 3.4 for testing nuitka (i also use a python 3.6 version with anaconda, altough i have a python 2.7 installation). I also installed Visual Studio 2015 professional. The same error occurs if i try to test this in python 3.6.

I found a similar post to this problem here http://bugs.nuitka.net/msg1381 but it seems that this question was not answered, at least i cant find it.

Furthermore i would like to obtain a corresponding c++ file out of my .py file. What is the best way to obtain this in nuitka? I'm not sure about this...

Would be nice if someone could help me! :)

Not supported: WebAssembly(wasm)

It's a beautiful project you have here. I admire it quite a lot and come around once in a while to learn from it even though I don't use it directly in my work.
I understand the core developer of this project may have a lot on his plate but I've often wondered if Nuitka could have a wasm codegen phase.
The idea of having Python run in the browser is fascinating and I can't wait to see the possible applications of it. I, for one, would love to write some of my web apps in Python, I believe a lot of people would too.
I know my way around wasm and wast and I could help out with the codegen, but if there is a reason this idea won't work I would like to know.

Cannot compile django 2.0.2 "AttributeError: 'ExpressionOutlineFunction' object has no attribute 'getParameters'"

nuitka: 0.5.28.1 (installed via pip install...)
linux: Ubuntu 16.04
python: 3.5.2

Install new django in virtualenv running python 3.5.2. (just django and nuitka installed)
Create python file do_django.py containing django-admin.py content:

#!/usr/bin/env python
from django.core import management

if __name__ == "__main__":
    management.execute_from_command_line()
(nuitka_django) ~/wk/cliosoft/related_projects/nuitka/django $ nuitka --recurse-all do_django.py 
Nuitka:WARNING:/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/utils/autoreload.py:59: Cannot find 'pyinotify' in package 'django.utils' as absolute import.
Nuitka:WARNING:/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/core/validators.py:502: Cannot find 'PIL' in package 'django.core' as absolute import.
Nuitka:WARNING:/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/template/backends/jinja2.py:1: Cannot find 'jinja2' in package 'django.template.backends' as absolute import.
Nuitka:WARNING:/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/forms/fields.py:611: Cannot find 'PIL' in package 'django.forms' as absolute import.
Nuitka:WARNING:/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/db/models/fields/files.py:372: Cannot find 'PIL' in package 'django.db.models.fields' as absolute import.
Nuitka:WARNING:/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/core/files/images.py:39: Cannot find 'PIL' in package 'django.core.files' as absolute import.
Problem with statement at /home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/db/models/aggregates.py:26:
Problem with statement at /home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/db/models/aggregates.py:26:
Problem with statement at /home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/db/models/aggregates.py:26:
Problem with statement at /home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/db/models/aggregates.py:24:
Problem with statement at /home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/db/models/aggregates.py:24:
Problem with statement at /home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/db/models/aggregates.py:14:
Problem with statement at /home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/db/models/aggregates.py:14:
Nuitka:INFO:Interrupted while working on '<Node 'COMPILED_PYTHON_MODULE' with {'name': 'aggregates', 'package': 'django.db.models', 'filename': '/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/django/db/models/aggregates.py'}>'.
Traceback (most recent call last):
  File "/home/paul/.virtualenvs/nuitka_django/bin/nuitka", line 211, in <module>
    MainControl.main()
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/MainControl.py", line 758, in main
    filename = filename
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/MainControl.py", line 118, in createNodeTree
    Optimization.optimize()
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/Optimization.py", line 468, in optimize
    finished = makeOptimizationPass(False)
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/Optimization.py", line 382, in makeOptimizationPass
    changed = optimizeModule(current_module)
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/Optimization.py", line 168, in optimizeModule
    changed = optimizeCompiledPythonModule(module)
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/Optimization.py", line 92, in optimizeCompiledPythonModule
    module.computeModule()
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/ModuleNodes.py", line 439, in computeModule
    trace_collection = self.trace_collection
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/StatementNodes.py", line 165, in computeStatementsSequence
    trace_collection
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/FrameNodes.py", line 194, in computeStatementsSequence
    statement = statement
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 566, in onStatement
    statement.computeStatement(self)
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/TryNodes.py", line 128, in computeStatement
    trace_collection = trace_collection
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/StatementNodes.py", line 169, in computeStatementsSequence
    statement = statement
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 566, in onStatement
    statement.computeStatement(self)
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/AssignNodes.py", line 284, in computeStatement
    trace_collection.onExpression(self.getAssignSource())
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 535, in onExpression
    trace_collection = self
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/OutlineNodes.py", line 244, in computeExpressionRaw
    trace_collection = trace_collection
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/StatementNodes.py", line 169, in computeStatementsSequence
    statement = statement
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 566, in onStatement
    statement.computeStatement(self)
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/AssignNodes.py", line 284, in computeStatement
    trace_collection.onExpression(self.getAssignSource())
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 535, in onExpression
    trace_collection = self
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/ExpressionBases.py", line 820, in computeExpressionRaw
    expression = sub_expression
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 535, in onExpression
    trace_collection = self
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/FunctionNodes.py", line 881, in computeExpressionRaw
    trace_collection = trace_collection
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/StatementNodes.py", line 169, in computeStatementsSequence
    statement = statement
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 566, in onStatement
    statement.computeStatement(self)
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/TryNodes.py", line 128, in computeStatement
    trace_collection = trace_collection
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/StatementNodes.py", line 165, in computeStatementsSequence
    trace_collection
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/FrameNodes.py", line 194, in computeStatementsSequence
    statement = statement
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 566, in onStatement
    statement.computeStatement(self)
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/ReturnNodes.py", line 56, in computeStatement
    trace_collection.onExpression(self.getExpression())
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 535, in onExpression
    trace_collection = self
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/OutlineNodes.py", line 244, in computeExpressionRaw
    trace_collection = trace_collection
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/StatementNodes.py", line 169, in computeStatementsSequence
    statement = statement
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 566, in onStatement
    statement.computeStatement(self)
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/TryNodes.py", line 128, in computeStatement
    trace_collection = trace_collection
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/StatementNodes.py", line 169, in computeStatementsSequence
    statement = statement
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 566, in onStatement
    statement.computeStatement(self)
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/AssignNodes.py", line 284, in computeStatement
    trace_collection.onExpression(self.getAssignSource())
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 535, in onExpression
    trace_collection = self
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/ExpressionBases.py", line 820, in computeExpressionRaw
    expression = sub_expression
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 535, in onExpression
    trace_collection = self
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/ExpressionBases.py", line 820, in computeExpressionRaw
    expression = sub_expression
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 535, in onExpression
    trace_collection = self
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/ExpressionBases.py", line 820, in computeExpressionRaw
    expression = sub_expression
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/TraceCollections.py", line 535, in onExpression
    trace_collection = self
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/ExpressionBases.py", line 841, in computeExpressionRaw
    trace_collection = trace_collection
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/CallNodes.py", line 196, in computeExpression
    trace_collection = trace_collection
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/nodes/ConstantRefNodes.py", line 866, in computeExpressionCall
    call_node    = call_node
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/OptimizeBuiltinCalls.py", line 1409, in computeBuiltinCall
    new_node = _dispatch_dict[builtin_name](call_node)
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/OptimizeBuiltinCalls.py", line 1099, in super_extractor
    builtin_spec  = BuiltinOptimization.builtin_super_spec
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/BuiltinOptimization.py", line 487, in extractBuiltinArgs
    source_ref = node.getSourceReference()
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/Builtins.py", line 210, in wrapper
    return f(*args, **new_kw)
  File "/home/paul/.virtualenvs/nuitka_django/lib/python3.5/site-packages/nuitka/optimizations/OptimizeBuiltinCalls.py", line 1060, in wrapSuperBuiltin
    if parameter_provider.getParameters().getArgumentCount() > 0:
AttributeError: 'ExpressionOutlineFunction' object has no attribute 'getParameters'

Linking error: Multiple definition of `PyInit_imp'

Following up #29, here's another linking issue:

scons: building `nuitka-dist/nuitka_entrypoint.dist/nuitka_entrypoint.exe' because it doesn't exist
gcc -o nuitka-dist/nuitka_entrypoint.dist/nuitka_entrypoint.exe -export-dynamic -s -Wl,-R,'$ORIGIN' -Wl,--disable-new-dtags -Wl,-b -Wl,binary -Wl,nuitka-dist/nuitka_entrypoint.build/__constants.bin -Wl,-b -Wl,elf64-x86-64 -Wl,-defsym -Wl,constant_bin=_binary_nuitka_dist_nuitka_entrypoint_build___constants_bin_start nuitka-dist/nuitka_entrypoint.build/module.plistlib.o nuitka-dist/nuitka_entrypoint.build/module.pprint.o nuitka-dist/nuitka_entrypoint.build/module.profile.o nuitka-dist/nuitka_entrypoint.build/module.pstats.o nuitka-dist/nuitka_entrypoint.build/module.py_compile.o nuitka-dist/nuitka_entrypoint.build/module.pycparser.ast_transforms.o nuitka-dist/nuitka_entrypoint.build/module.pycparser.o nuitka-dist/nuitka_entrypoint.build/module.pycparser.c_ast.o nuitka-dist/nuitka_entrypoint.build/module.pycparser.c_lexer.o nuitka-dist/nuitka_entrypoint.build/module.pycparser.c_parser.o nuitka-dist/nuitka_entrypoint.build/module.pycparser.ply.o nuitka-dist/nuitka_entrypoint.build/module.pycparser.ply.lex.o nuitka-dist/nuitka_entrypoint.build/module.pycparser.ply.yacc.o nuitka-dist/nuitka_entrypoint.build/module.pycparser.plyparser.o nuitka-dist/nuitka_entrypoint.build/module.pydoc.o nuitka-dist/nuitka_entrypoint.build/module.pydoc_data.o nuitka-dist/nuitka_entrypoint.build/module.pydoc_data.topics.o nuitka-dist/nuitka_entrypoint.build/module.pytz.o nuitka-dist/nuitka_entrypoint.build/module.pytz.exceptions.o nuitka-dist/nuitka_entrypoint.build/module.pytz.lazy.o nuitka-dist/nuitka_entrypoint.build/module.pytz.tzfile.o nuitka-dist/nuitka_entrypoint.build/module.pytz.tzinfo.o nuitka-dist/nuitka_entrypoint.build/module.queue.o nuitka-dist/nuitka_entrypoint.build/module.random.o nuitka-dist/nuitka_entrypoint.build/module.rlcompleter.o nuitka-dist/nuitka_entrypoint.build/module.runpy.o nuitka-dist/nuitka_entrypoint.build/module.selectors.o nuitka-dist/nuitka_entrypoint.build/module.setup.o nuitka-dist/nuitka_entrypoint.build/module.shlex.o nuitka-dist/nuitka_entrypoint.build/module.shutil.o nuitka-dist/nuitka_entrypoint.build/module.signal.o nuitka-dist/nuitka_entrypoint.build/module.site.o nuitka-dist/nuitka_entrypoint.build/module.six.o nuitka-dist/nuitka_entrypoint.build/module.smtplib.o nuitka-dist/nuitka_entrypoint.build/module.socket.o nuitka-dist/nuitka_entrypoint.build/module.socketserver.o nuitka-dist/nuitka_entrypoint.build/module.ssl.o nuitka-dist/nuitka_entrypoint.build/module.string.o nuitka-dist/nuitka_entrypoint.build/module.subprocess.o nuitka-dist/nuitka_entrypoint.build/module.sysconfig.o nuitka-dist/nuitka_entrypoint.build/module.tarfile.o nuitka-dist/nuitka_entrypoint.build/module.tempfile.o nuitka-dist/nuitka_entrypoint.build/module.textwrap.o nuitka-dist/nuitka_entrypoint.build/module.tracemalloc.o nuitka-dist/nuitka_entrypoint.build/module.tty.o nuitka-dist/nuitka_entrypoint.build/module.unittest.o nuitka-dist/nuitka_entrypoint.build/module.unittest.case.o nuitka-dist/nuitka_entrypoint.build/module.unittest.loader.o nuitka-dist/nuitka_entrypoint.build/module.unittest.main.o nuitka-dist/nuitka_entrypoint.build/module.unittest.result.o nuitka-dist/nuitka_entrypoint.build/module.unittest.runner.o nuitka-dist/nuitka_entrypoint.build/module.unittest.signals.o nuitka-dist/nuitka_entrypoint.build/module.unittest.suite.o nuitka-dist/nuitka_entrypoint.build/module.unittest.util.o nuitka-dist/nuitka_entrypoint.build/module.urllib.o nuitka-dist/nuitka_entrypoint.build/module.urllib.parse.o nuitka-dist/nuitka_entrypoint.build/module.uu.o nuitka-dist/nuitka_entrypoint.build/module.uuid.o nuitka-dist/nuitka_entrypoint.build/module.waitress.adjustments.o nuitka-dist/nuitka_entrypoint.build/module.waitress.buffers.o nuitka-dist/nuitka_entrypoint.build/module.waitress.o nuitka-dist/nuitka_entrypoint.build/module.waitress.channel.o nuitka-dist/nuitka_entrypoint.build/module.waitress.compat.o nuitka-dist/nuitka_entrypoint.build/module.waitress.parser.o nuitka-dist/nuitka_entrypoint.build/module.waitress.receiver.o nuitka-dist/nuitka_entrypoint.build/module.waitress.server.o nuitka-dist/nuitka_entrypoint.build/module.waitress.task.o nuitka-dist/nuitka_entrypoint.build/module.waitress.trigger.o nuitka-dist/nuitka_entrypoint.build/module.waitress.utilities.o nuitka-dist/nuitka_entrypoint.build/module.webbrowser.o nuitka-dist/nuitka_entrypoint.build/module.wsgi.o nuitka-dist/nuitka_entrypoint.build/module.xml.o nuitka-dist/nuitka_entrypoint.build/module.xml.parsers.o nuitka-dist/nuitka_entrypoint.build/module.xml.parsers.expat.o nuitka-dist/nuitka_entrypoint.build/module.xmlrpc.o nuitka-dist/nuitka_entrypoint.build/module.xmlrpc.client.o nuitka-dist/nuitka_entrypoint.build/module.zipfile.o nuitka-dist/nuitka_entrypoint.build/module.jinja2._compat.o nuitka-dist/nuitka_entrypoint.build/module.jinja2._stringdefs.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.bccache.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.compiler.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.constants.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.debug.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.defaults.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.environment.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.exceptions.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.filters.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.idtracking.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.lexer.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.loaders.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.nodes.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.optimizer.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.parser.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.runtime.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.tests.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.utils.o nuitka-dist/nuitka_entrypoint.build/module.jinja2.visitor.o nuitka-dist/nuitka_entrypoint.build/module.json.o nuitka-dist/nuitka_entrypoint.build/module.json.decoder.o nuitka-dist/nuitka_entrypoint.build/module.json.encoder.o nuitka-dist/nuitka_entrypoint.build/module.json.scanner.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.btm_matcher.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.btm_utils.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.fixer_util.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.patcomp.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.pgen2.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.pgen2.driver.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.pgen2.grammar.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.pgen2.literals.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.pgen2.parse.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.pgen2.pgen.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.pgen2.token.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.pgen2.tokenize.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.pygram.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.pytree.o nuitka-dist/nuitka_entrypoint.build/module.lib2to3.refactor.o nuitka-dist/nuitka_entrypoint.build/module.logging.o nuitka-dist/nuitka_entrypoint.build/module.logging.config.o nuitka-dist/nuitka_entrypoint.build/module.logging.handlers.o nuitka-dist/nuitka_entrypoint.build/module.lzma.o nuitka-dist/nuitka_entrypoint.build/module.markupsafe._compat.o nuitka-dist/nuitka_entrypoint.build/module.markupsafe._constants.o nuitka-dist/nuitka_entrypoint.build/module.markupsafe._native.o nuitka-dist/nuitka_entrypoint.build/module.markupsafe.o nuitka-dist/nuitka_entrypoint.build/module.mimetypes.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.connection.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.context.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.dummy.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.dummy.connection.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.forkserver.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.heap.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.managers.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.pool.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.popen_fork.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.popen_forkserver.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.popen_spawn_posix.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.popen_spawn_win32.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.process.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.queues.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.reduction.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.resource_sharer.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.semaphore_tracker.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.sharedctypes.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.spawn.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.synchronize.o nuitka-dist/nuitka_entrypoint.build/module.multiprocessing.util.o nuitka-dist/nuitka_entrypoint.build/module.ntpath.o nuitka-dist/nuitka_entrypoint.build/module.numbers.o nuitka-dist/nuitka_entrypoint.build/module.optparse.o nuitka-dist/nuitka_entrypoint.build/module.pathlib.o nuitka-dist/nuitka_entrypoint.build/module.pdb.o nuitka-dist/nuitka_entrypoint.build/module.pickle.o nuitka-dist/nuitka_entrypoint.build/module.PIL._binary.o nuitka-dist/nuitka_entrypoint.build/module.PIL._util.o nuitka-dist/nuitka_entrypoint.build/module.PIL.BmpImagePlugin.o nuitka-dist/nuitka_entrypoint.build/module.PIL.o nuitka-dist/nuitka_entrypoint.build/module.PIL.GifImagePlugin.o nuitka-dist/nuitka_entrypoint.build/module.PIL.GimpGradientFile.o nuitka-dist/nuitka_entrypoint.build/module.PIL.GimpPaletteFile.o nuitka-dist/nuitka_entrypoint.build/module.PIL.Image.o nuitka-dist/nuitka_entrypoint.build/module.PIL.ImageChops.o nuitka-dist/nuitka_entrypoint.build/module.PIL.ImageColor.o nuitka-dist/nuitka_entrypoint.build/module.PIL.ImageFile.o nuitka-dist/nuitka_entrypoint.build/module.PIL.ImageMode.o nuitka-dist/nuitka_entrypoint.build/module.PIL.ImagePalette.o nuitka-dist/nuitka_entrypoint.build/module.PIL.ImageQt.o nuitka-dist/nuitka_entrypoint.build/module.PIL.ImageSequence.o nuitka-dist/nuitka_entrypoint.build/module.PIL.ImageShow.o nuitka-dist/nuitka_entrypoint.build/module.PIL.JpegImagePlugin.o nuitka-dist/nuitka_entrypoint.build/module.PIL.JpegPresets.o nuitka-dist/nuitka_entrypoint.build/module.PIL.MpoImagePlugin.o nuitka-dist/nuitka_entrypoint.build/module.PIL.PaletteFile.o nuitka-dist/nuitka_entrypoint.build/module.PIL.PngImagePlugin.o nuitka-dist/nuitka_entrypoint.build/module.PIL.PpmImagePlugin.o nuitka-dist/nuitka_entrypoint.build/module.PIL.PyAccess.o nuitka-dist/nuitka_entrypoint.build/module.PIL.TiffImagePlugin.o nuitka-dist/nuitka_entrypoint.build/module.PIL.TiffTags.o nuitka-dist/nuitka_entrypoint.build/module.PIL.version.o nuitka-dist/nuitka_entrypoint.build/module.pipes.o nuitka-dist/nuitka_entrypoint.build/module.pkgutil.o nuitka-dist/nuitka_entrypoint.build/module.platform.o nuitka-dist/nuitka_entrypoint.build/module.django.template.library.o nuitka-dist/nuitka_entrypoint.build/module.django.template.loader.o nuitka-dist/nuitka_entrypoint.build/module.django.template.response.o nuitka-dist/nuitka_entrypoint.build/module.django.template.utils.o nuitka-dist/nuitka_entrypoint.build/module.django.templatetags.o nuitka-dist/nuitka_entrypoint.build/module.django.templatetags.static.o nuitka-dist/nuitka_entrypoint.build/module.django.urls.base.o nuitka-dist/nuitka_entrypoint.build/module.django.urls.o nuitka-dist/nuitka_entrypoint.build/module.django.urls.exceptions.o nuitka-dist/nuitka_entrypoint.build/module.django.urls.resolvers.o nuitka-dist/nuitka_entrypoint.build/module.django.urls.utils.o nuitka-dist/nuitka_entrypoint.build/module.django.utils._os.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.autoreload.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.baseconv.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.cache.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.crypto.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.datastructures.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.dateformat.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.dateparse.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.dates.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.datetime_safe.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.deconstruct.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.decorators.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.deprecation.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.duration.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.encoding.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.formats.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.functional.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.html.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.html_parser.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.http.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.inspect.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.ipv6.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.itercompat.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.log.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.lru_cache.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.module_loading.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.numberformat.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.regex_helper.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.safestring.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.six.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.termcolors.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.text.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.timesince.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.timezone.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.translation.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.translation.template.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.translation.trans_null.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.translation.trans_real.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.tree.o nuitka-dist/nuitka_entrypoint.build/module.django.utils.version.o nuitka-dist/nuitka_entrypoint.build/module.django.views.o nuitka-dist/nuitka_entrypoint.build/module.django.views.debug.o nuitka-dist/nuitka_entrypoint.build/module.django.views.generic.base.o nuitka-dist/nuitka_entrypoint.build/module.django.views.generic.o nuitka-dist/nuitka_entrypoint.build/module.django.views.generic.dates.o nuitka-dist/nuitka_entrypoint.build/module.django.views.generic.detail.o nuitka-dist/nuitka_entrypoint.build/module.django.views.generic.edit.o nuitka-dist/nuitka_entrypoint.build/module.django.views.generic.list.o nuitka-dist/nuitka_entrypoint.build/module.doctest.o nuitka-dist/nuitka_entrypoint.build/module.dummy_threading.o nuitka-dist/nuitka_entrypoint.build/module.email._encoded_words.o nuitka-dist/nuitka_entrypoint.build/module.email._header_value_parser.o nuitka-dist/nuitka_entrypoint.build/module.email._parseaddr.o nuitka-dist/nuitka_entrypoint.build/module.email._policybase.o nuitka-dist/nuitka_entrypoint.build/module.email.base64mime.o nuitka-dist/nuitka_entrypoint.build/module.email.o nuitka-dist/nuitka_entrypoint.build/module.email.charset.o nuitka-dist/nuitka_entrypoint.build/module.email.contentmanager.o nuitka-dist/nuitka_entrypoint.build/module.email.encoders.o nuitka-dist/nuitka_entrypoint.build/module.email.errors.o nuitka-dist/nuitka_entrypoint.build/module.email.feedparser.o nuitka-dist/nuitka_entrypoint.build/module.email.generator.o nuitka-dist/nuitka_entrypoint.build/module.email.header.o nuitka-dist/nuitka_entrypoint.build/module.email.headerregistry.o nuitka-dist/nuitka_entrypoint.build/module.email.iterators.o nuitka-dist/nuitka_entrypoint.build/module.email.message.o nuitka-dist/nuitka_entrypoint.build/module.email.mime.base.o nuitka-dist/nuitka_entrypoint.build/module.email.mime.o nuitka-dist/nuitka_entrypoint.build/module.email.mime.message.o nuitka-dist/nuitka_entrypoint.build/module.email.mime.multipart.o nuitka-dist/nuitka_entrypoint.build/module.email.mime.nonmultipart.o nuitka-dist/nuitka_entrypoint.build/module.email.mime.text.o nuitka-dist/nuitka_entrypoint.build/module.email.parser.o nuitka-dist/nuitka_entrypoint.build/module.email.policy.o nuitka-dist/nuitka_entrypoint.build/module.email.quoprimime.o nuitka-dist/nuitka_entrypoint.build/module.email.utils.o nuitka-dist/nuitka_entrypoint.build/module.encodings.mbcs.o nuitka-dist/nuitka_entrypoint.build/module.fnmatch.o nuitka-dist/nuitka_entrypoint.build/module.fractions.o nuitka-dist/nuitka_entrypoint.build/module.getopt.o nuitka-dist/nuitka_entrypoint.build/module.gettext.o nuitka-dist/nuitka_entrypoint.build/module.glob.o nuitka-dist/nuitka_entrypoint.build/module.gzip.o nuitka-dist/nuitka_entrypoint.build/module.hashlib.o nuitka-dist/nuitka_entrypoint.build/module.hmac.o nuitka-dist/nuitka_entrypoint.build/module.html.o nuitka-dist/nuitka_entrypoint.build/module.html.entities.o nuitka-dist/nuitka_entrypoint.build/module.http.o nuitka-dist/nuitka_entrypoint.build/module.http.client.o nuitka-dist/nuitka_entrypoint.build/module.http.server.o nuitka-dist/nuitka_entrypoint.build/module.imp.o nuitka-dist/nuitka_entrypoint.build/module.importlib.abc.o nuitka-dist/nuitka_entrypoint.build/module.importlib.util.o nuitka-dist/nuitka_entrypoint.build/module.ipaddress.o nuitka-dist/nuitka_entrypoint.build/module.django.core.handlers.o nuitka-dist/nuitka_entrypoint.build/module.django.core.handlers.exception.o nuitka-dist/nuitka_entrypoint.build/module.django.core.handlers.wsgi.o nuitka-dist/nuitka_entrypoint.build/module.django.core.mail.o nuitka-dist/nuitka_entrypoint.build/module.django.core.mail.message.o nuitka-dist/nuitka_entrypoint.build/module.django.core.mail.utils.o nuitka-dist/nuitka_entrypoint.build/module.django.core.management.base.o nuitka-dist/nuitka_entrypoint.build/module.django.core.management.o nuitka-dist/nuitka_entrypoint.build/module.django.core.management.color.o nuitka-dist/nuitka_entrypoint.build/module.django.core.paginator.o nuitka-dist/nuitka_entrypoint.build/module.django.core.serializers.base.o nuitka-dist/nuitka_entrypoint.build/module.django.core.serializers.o nuitka-dist/nuitka_entrypoint.build/module.django.core.serializers.json.o nuitka-dist/nuitka_entrypoint.build/module.django.core.serializers.python.o nuitka-dist/nuitka_entrypoint.build/module.django.core.signals.o nuitka-dist/nuitka_entrypoint.build/module.django.core.signing.o nuitka-dist/nuitka_entrypoint.build/module.django.core.validators.o nuitka-dist/nuitka_entrypoint.build/module.django.core.wsgi.o nuitka-dist/nuitka_entrypoint.build/module.django.db.backends.o nuitka-dist/nuitka_entrypoint.build/module.django.db.backends.oracle.o nuitka-dist/nuitka_entrypoint.build/module.django.db.backends.oracle.functions.o nuitka-dist/nuitka_entrypoint.build/module.django.db.backends.utils.o nuitka-dist/nuitka_entrypoint.build/module.django.db.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.exceptions.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.executor.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.graph.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.loader.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.migration.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.operations.base.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.operations.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.operations.fields.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.operations.models.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.operations.special.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.recorder.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.serializer.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.state.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.utils.o nuitka-dist/nuitka_entrypoint.build/module.django.db.migrations.writer.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.aggregates.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.base.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.constants.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.deletion.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.expressions.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.fields.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.fields.files.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.fields.proxy.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.fields.related.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.fields.related_descriptors.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.fields.related_lookups.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.fields.reverse_related.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.functions.base.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.functions.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.functions.datetime.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.indexes.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.lookups.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.manager.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.options.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.query.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.query_utils.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.signals.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.sql.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.sql.constants.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.sql.datastructures.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.sql.query.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.sql.subqueries.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.sql.where.o nuitka-dist/nuitka_entrypoint.build/module.django.db.models.utils.o nuitka-dist/nuitka_entrypoint.build/module.django.db.transaction.o nuitka-dist/nuitka_entrypoint.build/module.django.db.utils.o nuitka-dist/nuitka_entrypoint.build/module.django.dispatch.o nuitka-dist/nuitka_entrypoint.build/module.django.dispatch.dispatcher.o nuitka-dist/nuitka_entrypoint.build/module.django.dispatch.weakref_backports.o nuitka-dist/nuitka_entrypoint.build/module.django.forms.boundfield.o nuitka-dist/nuitka_entrypoint.build/module.django.forms.o nuitka-dist/nuitka_entrypoint.build/module.django.forms.fields.o nuitka-dist/nuitka_entrypoint.build/module.django.forms.forms.o nuitka-dist/nuitka_entrypoint.build/module.django.forms.formsets.o nuitka-dist/nuitka_entrypoint.build/module.django.forms.models.o nuitka-dist/nuitka_entrypoint.build/module.django.forms.renderers.o nuitka-dist/nuitka_entrypoint.build/module.django.forms.utils.o nuitka-dist/nuitka_entrypoint.build/module.django.forms.widgets.o nuitka-dist/nuitka_entrypoint.build/module.django.http.o nuitka-dist/nuitka_entrypoint.build/module.django.http.cookie.o nuitka-dist/nuitka_entrypoint.build/module.django.http.multipartparser.o nuitka-dist/nuitka_entrypoint.build/module.django.http.request.o nuitka-dist/nuitka_entrypoint.build/module.django.http.response.o nuitka-dist/nuitka_entrypoint.build/module.django.middleware.o nuitka-dist/nuitka_entrypoint.build/module.django.middleware.csrf.o nuitka-dist/nuitka_entrypoint.build/module.django.template.backends.base.o nuitka-dist/nuitka_entrypoint.build/module.django.template.backends.o nuitka-dist/nuitka_entrypoint.build/module.django.template.backends.django.o nuitka-dist/nuitka_entrypoint.build/module.django.template.backends.jinja2.o nuitka-dist/nuitka_entrypoint.build/module.django.template.backends.utils.o nuitka-dist/nuitka_entrypoint.build/module.django.template.base.o nuitka-dist/nuitka_entrypoint.build/module.django.template.o nuitka-dist/nuitka_entrypoint.build/module.django.template.context.o nuitka-dist/nuitka_entrypoint.build/module.django.template.defaultfilters.o nuitka-dist/nuitka_entrypoint.build/module.django.template.engine.o nuitka-dist/nuitka_entrypoint.build/module.django.template.exceptions.o nuitka-dist/nuitka_entrypoint.build/__constants.o nuitka-dist/nuitka_entrypoint.build/__frozen.o nuitka-dist/nuitka_entrypoint.build/__helpers.o nuitka-dist/nuitka_entrypoint.build/__internal__.o nuitka-dist/nuitka_entrypoint.build/module.__future__.o nuitka-dist/nuitka_entrypoint.build/module.__main__.o nuitka-dist/nuitka_entrypoint.build/module._compat_pickle.o nuitka-dist/nuitka_entrypoint.build/module._dummy_thread.o nuitka-dist/nuitka_entrypoint.build/module._osx_support.o nuitka-dist/nuitka_entrypoint.build/module._pydecimal.o nuitka-dist/nuitka_entrypoint.build/module._sitebuiltins.o nuitka-dist/nuitka_entrypoint.build/module._strptime.o nuitka-dist/nuitka_entrypoint.build/module.appdirs.o nuitka-dist/nuitka_entrypoint.build/module.argparse.o nuitka-dist/nuitka_entrypoint.build/module.asyncore.o nuitka-dist/nuitka_entrypoint.build/module.bdb.o nuitka-dist/nuitka_entrypoint.build/module.bisect.o nuitka-dist/nuitka_entrypoint.build/module.calendar.o nuitka-dist/nuitka_entrypoint.build/module.certifi.o nuitka-dist/nuitka_entrypoint.build/module.certifi.core.o nuitka-dist/nuitka_entrypoint.build/module.cffi.api.o nuitka-dist/nuitka_entrypoint.build/module.cffi.o nuitka-dist/nuitka_entrypoint.build/module.cffi.cffi_opcode.o nuitka-dist/nuitka_entrypoint.build/module.cffi.commontypes.o nuitka-dist/nuitka_entrypoint.build/module.cffi.cparser.o nuitka-dist/nuitka_entrypoint.build/module.cffi.error.o nuitka-dist/nuitka_entrypoint.build/module.cffi.ffiplatform.o nuitka-dist/nuitka_entrypoint.build/module.cffi.lock.o nuitka-dist/nuitka_entrypoint.build/module.cffi.model.o nuitka-dist/nuitka_entrypoint.build/module.cffi.recompiler.o nuitka-dist/nuitka_entrypoint.build/module.cffi.vengine_cpy.o nuitka-dist/nuitka_entrypoint.build/module.cffi.vengine_gen.o nuitka-dist/nuitka_entrypoint.build/module.cffi.verifier.o nuitka-dist/nuitka_entrypoint.build/module.cgi.o nuitka-dist/nuitka_entrypoint.build/module.cmd.o nuitka-dist/nuitka_entrypoint.build/module.code.o nuitka-dist/nuitka_entrypoint.build/module.codeop.o nuitka-dist/nuitka_entrypoint.build/module.collections.abc.o nuitka-dist/nuitka_entrypoint.build/module.colorsys.o nuitka-dist/nuitka_entrypoint.build/module.concurrent.o nuitka-dist/nuitka_entrypoint.build/module.concurrent.futures._base.o nuitka-dist/nuitka_entrypoint.build/module.concurrent.futures.o nuitka-dist/nuitka_entrypoint.build/module.concurrent.futures.process.o nuitka-dist/nuitka_entrypoint.build/module.concurrent.futures.thread.o nuitka-dist/nuitka_entrypoint.build/module.configparser.o nuitka-dist/nuitka_entrypoint.build/module.contextlib.o nuitka-dist/nuitka_entrypoint.build/module.copy.o nuitka-dist/nuitka_entrypoint.build/module.ctypes._endian.o nuitka-dist/nuitka_entrypoint.build/module.ctypes.o nuitka-dist/nuitka_entrypoint.build/module.ctypes.macholib.o nuitka-dist/nuitka_entrypoint.build/module.ctypes.macholib.dyld.o nuitka-dist/nuitka_entrypoint.build/module.ctypes.macholib.dylib.o nuitka-dist/nuitka_entrypoint.build/module.ctypes.macholib.framework.o nuitka-dist/nuitka_entrypoint.build/module.ctypes.util.o nuitka-dist/nuitka_entrypoint.build/module.ctypes.wintypes.o nuitka-dist/nuitka_entrypoint.build/module.datetime.o nuitka-dist/nuitka_entrypoint.build/module.decimal.o nuitka-dist/nuitka_entrypoint.build/module.difflib.o nuitka-dist/nuitka_entrypoint.build/module.django.apps.o nuitka-dist/nuitka_entrypoint.build/module.django.apps.config.o nuitka-dist/nuitka_entrypoint.build/module.django.apps.registry.o nuitka-dist/nuitka_entrypoint.build/module.django.o nuitka-dist/nuitka_entrypoint.build/module.django.conf.o nuitka-dist/nuitka_entrypoint.build/module.django.conf.global_settings.o nuitka-dist/nuitka_entrypoint.build/module.django.conf.locale.o nuitka-dist/nuitka_entrypoint.build/module.django.conf.urls.o nuitka-dist/nuitka_entrypoint.build/module.django.contrib.o nuitka-dist/nuitka_entrypoint.build/module.django.contrib.staticfiles.o nuitka-dist/nuitka_entrypoint.build/module.django.contrib.staticfiles.storage.o nuitka-dist/nuitka_entrypoint.build/module.django.contrib.staticfiles.utils.o nuitka-dist/nuitka_entrypoint.build/module.django.core.o nuitka-dist/nuitka_entrypoint.build/module.django.core.cache.backends.base.o nuitka-dist/nuitka_entrypoint.build/module.django.core.cache.backends.o nuitka-dist/nuitka_entrypoint.build/module.django.core.cache.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.caches.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.compatibility.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.compatibility.django_1_10.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.compatibility.django_1_8_0.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.database.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.messages.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.model_checks.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.registry.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.security.base.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.security.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.security.csrf.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.security.sessions.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.templates.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.urls.o nuitka-dist/nuitka_entrypoint.build/module.django.core.checks.utils.o nuitka-dist/nuitka_entrypoint.build/module.django.core.exceptions.o nuitka-dist/nuitka_entrypoint.build/module.django.core.files.base.o nuitka-dist/nuitka_entrypoint.build/module.django.core.files.o nuitka-dist/nuitka_entrypoint.build/module.django.core.files.images.o nuitka-dist/nuitka_entrypoint.build/module.django.core.files.locks.o nuitka-dist/nuitka_entrypoint.build/module.django.core.files.move.o nuitka-dist/nuitka_entrypoint.build/module.django.core.files.storage.o nuitka-dist/nuitka_entrypoint.build/module.django.core.files.temp.o nuitka-dist/nuitka_entrypoint.build/module.django.core.files.uploadedfile.o nuitka-dist/nuitka_entrypoint.build/module.django.core.files.uploadhandler.o nuitka-dist/nuitka_entrypoint.build/module.django.core.files.utils.o nuitka-dist/nuitka_entrypoint.build/module.django.core.handlers.base.o nuitka-dist/nuitka_entrypoint.build/MainProgram.o nuitka-dist/nuitka_entrypoint.build/CompiledCellType.o nuitka-dist/nuitka_entrypoint.build/CompiledFunctionType.o nuitka-dist/nuitka_entrypoint.build/CompiledMethodType.o nuitka-dist/nuitka_entrypoint.build/CompiledGeneratorType.o nuitka-dist/nuitka_entrypoint.build/CompiledCoroutineType.o nuitka-dist/nuitka_entrypoint.build/CompiledAsyncgenType.o nuitka-dist/nuitka_entrypoint.build/CompiledFrameType.o nuitka-dist/nuitka_entrypoint.build/CompiledCodeHelpers.o nuitka-dist/nuitka_entrypoint.build/InspectPatcher.o nuitka-dist/nuitka_entrypoint.build/MetaPathBasedLoader.o nuitka-dist/nuitka_entrypoint.build/fibers_x64.o nuitka-dist/nuitka_entrypoint.build/swapfiber.o -L/home/ubuntu/.pyenv/versions/3.6.2/lib -ldl -lpython3.6m -ldl -lpthread -lutil -lm
/home/ubuntu/.pyenv/versions/3.6.2/lib/libpython3.6m.a(import.o): In function `PyInit_imp':
/tmp/python-build.20170928111802.13075/Python-3.6.2/Python/import.c:2094: multiple definition of `PyInit_imp'
nuitka-dist/nuitka_entrypoint.build/module.imp.o:module.imp.c:(.text+0x1bda0): first defined here
collect2: error: ld returned 1 exit status
scons: *** [nuitka-dist/nuitka_entrypoint.dist/nuitka_entrypoint.exe] Error 1
scons: building terminated because of errors.

Target platform - Ubuntu 17.04 x64
Target interpreter - Python 3.6.2
Scons interpreter - Python 2.7.13

Build args:

nuitka --recurse-all \
         --recurse-stdlib \
         --recurse-not-to=jinja2.asyncfilters \
         --recurse-not-to=jinja2.asyncsupport \
         --show-scons \
         --show-progress \
         --show-memory \
         --show-modules \
         --output-dir=./nuitka-dist \
         --python2-for-scons=$HOME/.pyenv/versions/nuitka/bin/python \
         --standalone \
         --python-flag=no_site \
         --nofreeze-stdlib \
         ./nuitka_entrypoint.py

Entrypoint:

from waitress import serve

from .wsgi import application

if __name__ == '__main__':
    serve(application, listen='0.0.0.0:8000')

WSGI App - django app.

PonyORM incompatible with Nuitka

I've found a runtime failure when trying to use a module compiled with nuitka which uses PonyORM for managing a sqlite database.
PonyORM - Python ORM with beautiful query syntax

Traceback (most recent call last):
  File "C:\APP\app\resultsdb\__init__.py", line 109, in load
  File "<string>", line 2, in select
  File "C:\APP\app_packages\pony\utils\utils.py", line 58, in cut_traceback
    return func(*args, **kwargs)
  File "C:\APP\app_packages\pony\orm\core.py", line 5160, in select
    return make_query(args, frame_depth=3)
  File "C:\APP\app_packages\pony\orm\core.py", line 5147, in make_query
    tree, external_names, cells = decompile(gen)
  File "C:\APP\app_packages\pony\orm\decompiling.py", line 28, in decompile
    else: throw(TypeError)
  File "C:\APP\app_packages\pony\utils\utils.py", line 98, in throw
    raise exc
TypeError

Some initial diagnostics shows that it's really not likely to work, probably ever.... pony does some crazy introspection on the code to be able to use really convenient python syntax to generate sql queries.

Here's a really good description of how it work: https://stackoverflow.com/questions/16115713/how-pony-orm-does-its-tricks

And specifically:
https://github.com/ponyorm/pony/blob/orm/pony/orm/decompiling.py#L17

def decompile(x):
    cells = {}
    t = type(x)
    if t is types.CodeType: codeobject = x
    elif t is types.GeneratorType: codeobject = x.gi_frame.f_code

In my case, when it's running as a compiled module, "t" above is <class 'compiled_generator'>
Even if I modify pony to accept this as a types.GeneratorType the object does not have the x.gi_frame attribute.

I'm not particularly asking for this to be fixed, I've moved away from using PonyORM already (not even using a database anymore, switched to yaml with my structured_config module to manage)

I just wanted to document my findings in case others run into the same issue.

"Invalid script entry point" on Nuitka 0.5.29 installation

The latest Nuitka 0.5.29 cannot be installed from pip:

$ pip install nuitka
Collecting nuitka
  Downloading Nuitka-0.5.29.tar.gz (2.0MB)
    100% |████████████████████████████████| 2.0MB 660kB/s
Building wheels for collected packages: nuitka
  Running setup.py bdist_wheel for nuitka ... done
  Stored in directory: /home/frol/.cache/pip/wheels/46/56/4d/65ba15f23b85dbbb1fa09b2dd6c704b403cc641ec313812b53
Successfully built nuitka
Installing collected packages: nuitka
Invalid script entry point: <ExportEntry nuitka3 = nuitka.__main__:None []> for req: nuitka - A callable suffix is required. Cf https://packaging.python.org/en/latest/distributing.html#console-scripts for more information.

The error is the same for Python 2 and Python 3 environments (only nuitka3 gets nuitka in Python 2 environment).

  • Linux, Windows, Mac OS are all affected
  • Python 2.7.14 and 3.6.4
  • pip 9.0.1 and 9.0.3

I am one of the maintainers of Nuitka package for Conda-Forge (Anaconda) and it fails on the CI: conda-forge/nuitka-feedstock#12 (follow the CI links at the bottom of the page)

Error, call to 'install_name_tool'

I get this error when running nuitka installed via pip3 install nuitka
Python 3.6.3
macOS 10.12.6
Looks like to be an Xcode-related problem. Any solutions?

Nuitka:WARNING:The version '3.6' is not currently supported. Expect problems.
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: more than one input file specified (libpython3.6m.dylib and --change)
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool [-change old new] ... [-rpath old new] ... [-add_rpath new] ... [-delete_rpath old] ... [-id name] input
Error, call to 'install_name_tool' to fix Python library path failed.

Please add python 3.6 binaries

Hi, could you please add python 3.6 compiled builds on the website?

Are async generators working on the latest stable version (0.5.26)??

Thanks!

Missing hidden dependencies for PyQt5.Qt leading to failed star import

@kayhayen

Steps:

Video

Problem:

> main.exe
Traceback (most recent call last):
  File "d:\nuitka_tests\pyqt\test1\main.dist\main.py", line 5, in <module>
NameError: name 'QLabel' is not defined

This test is intended to show 2 issues:

1st) import * is not well supported by nuitka, as you can see from the beforementioned error, you got any plan of addressing this in the future?
2nd) As discussed in other issues, gathering dependencies on windows is really slow at this moment when cache has not been created. Using file checksums to create caches should boost up the global packaging in general... ie: In case there are many virtualenvs containing the same dlls (same checksum) and some of these dlls are living in the cache, just use those and try to avoid depends.exe as much as possible (bottleneck)

[use-case question] How to compile a package with subpackages, and use/import all its modules from python scripts?


Required Info
Nuitka version 0.5.29.3/pip
Operating System & Version Ubuntu 16.04.4 LTS
Python version Python 2.7.12

Hi Kay Hayen, first of all, congratulations for your outstanding work with nuitka, and project methodologies. I find that the documentation is somehow poor, which I'd like to volunteer to contribute with use-cases and examples explained in the documentation/how-tos. On that regard I have some questions about a use-case, that I cannot figure out how to use.

I have a package, with sub-packages inside the directory python_path_root (see below),
I would like to build a single library with nuitka that contains all the packages and sub-packages, and be able to import any of its modules from other python scripts. Is this possible?

Example:

#script1.py

from package1.subpackage1 import submodule11

submodule11.do_something()
#script2.py

from package1 import module1
from package1.subpackage1 import submodule11

submodule11.do_something()
module1.do_something_else()

Package structure

├── python_path_root
│   └── package1
│       ├── __init__.py
│       ├── module1.py
│       ├── module2.py
│       ├── packaging
│       │   ├── __init__.py
│       │   └── pyinstaller_specs.py
│       ├── subpackage1
│       │   ├── __init__.py
│       │   └── submodule11.py
│       ├── subpackage2
│       │   ├── __init__.py
│       │   └── submodule21.py

UnicodeEncodeError "ascii codec can't encode....." when installing develop version of nuitka

hello again ! I saw your fixes,and of course i tried to install the develop version of nuitka,but without pip this time.
I downloaded the zip on my desktop,extracted it,and did : 'python.exe setup.py install'
the output is here : https://pastebin.com/7BYAUcbW
EDIT: modifying 'ascii' to 'utf-8' in easy_install.py allows the installation to complete,but nuitka can't run then : calling nuitka with any option (--help,--standalone) doesn't return anything.

--nofreeze-stdlib fails to include the stdlib

  • Nuitka version: 0.5.29rc4@60b7d44 on Mint 18 (essentially the same as Ubuntu 16.04)
  • Installed via pip install git+https://github.com/kayhayen/Nuitka
  • Repro:
import os

Running nuitka --nofreeze-stdlib --python-flag=no_site --standalone foo.py yields the following:

$ ./foo.dist/foo.exe 
Traceback (most recent call last):
  File "/tmp/foo.dist/foo.py", line 1, in <module>
ImportError: No module named os

Certifi data files not included for standalone mode

I described an issue I had when compiling my program which included tweepy a few hotfixes ago. The issue was supposed to be resolved but after playing around with the settings for about a month now I can’t seem to see the issue being fixed.

Basically my program (which includes a Qt GUI) has a button that allows the user to oauth with Twitter. The only problem is, when running the code through a python interpreter, everything runs flawlessly. But when I run the program after complaining lung with nuitka, everything runs fine except for the tweepy oauth confirmation. The point where tweepy tries to connect to the consumer API, the application crashes.
Please. I need this issue resolved. Respond as soon as you can, and happy holidays!
desktop 12-26-2017 5-04-10 pm-417

Problem with third-party modules

Trying to compile this project as a standalone binary: https://gitlab.com/chaica/feed2toot/tree/master

Get the following output:

feed2toot$ nuitka --standalone  --python-version=3.5  feed2toot.py 
Nuitka:WARNING:/home/equivalent/feed2toot/feed2toot/feed2toot/tootpost.py:19: Cannot find 'mastodon' in package 'feed2toot' as absolute import.
Nuitka:WARNING:/home/equivalent/feed2toot/feed2toot/feed2toot/confparse.py:28: Cannot find 'feedparser' in package 'feed2toot' as absolute import.
Nuitka:WARNING:/home/equivalent/feed2toot/feed2toot/feed2toot/confparsers/rss/urilist.py:20: Cannot find 'feedparser' in package 'feed2toot.confparsers.rss' as absolute import.

There seems to be a problem recognizing third-party library dependencies.
Is there any special treatment I need to compile the project? May be show Nuitka where those packages are?
The packages are installed, as the program runs on my system.

$ nuitka --version
0.5.28.1

Segfault importing asyncio after relative import in compiled module

I've got a really strange issue with import asyncio crashing python.

mkdir test; cd test
python3.6 -m pipenv install 
python3.6 -m pipenv shell
pip install nuitka
nuitka --version
# 0.5.28.1

mkdir mod
touch mod/empty.py
echo "from . import empty" > mod/__init__.py
nuitka --module --output-dir=b --recurse-to=mod mod
pushd b
python -c "import mod; import asyncio"
# Segmentation fault
python -c "import asyncio; import mod; import asyncio"
# Nothing goes wrong
popd

I initially ran into this issue on Windows 10 running python3.6 32 bit and nuitka from develop branch (working on my latest additions)

I've since reproduced above with python 3.6 ubuntu xenial
(installed from https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa)

Compiling: Need to have an option to force inclusion of modules

  • Nuitka version: 0.5.28.1
  • Full Python version: 2.7.13
  • Platform: Windows
  • How did you install Nuitka: pip
  • Python from source, Panda3D (panda3d.org)

I am trying to compile Panda3D and my code.

I have added

from direct.distributed import * 

to the start file and it still does not compile everything in the direct.distributed folder, but it still includes some files from it.

When I run nuitka --standalone --recurse-all --recurse-to=direct.distributed.DistributedCartesianGrid.py --verbose --enhanced --output-dir=build --show-progress --python-version=2.7 main.py

I get a printout saying "Nuitka:WARNING:Didn't recurse to 'direct.distributed.DistributedCartesianGrid.py', apparently not used." However, after building, the program clearly tries to load this file, and to no surprise, it is not found (because Nuitka didn't include it).

Any tips?

PyQt5 QML standalone not working

Moving an old interesting issue from the nuitka mailing list here. If you ask me, posting issues at github feels really good and the UI is really nice and cozy, the other mailing list is just... well, "a very unfriendly and cold way to post issues", sorry :'D

Anyway, here's the steps you need to do if you want to run that qml test using nuitka+virtualenv:

  • git clone https://github.com/Siecje/qml-testing
  • d:\software\python364_32\Scripts\virtualenv.exe --python=d:\software\python364_32\python.exe venv
  • venv\Scripts\activate
  • pip install pyqt5 nuitka
  • set path=D:\sources\personal\python\apps\nuitka_tests\pyqt\qml-testing\venv\Lib\site-packages\PyQt5\Qt\bin;%path%
  • nuitka3 main.py --show-progress --recurse-all --standalone --plugin-enable=qt-plugins
  • cp *.qml *.js main.dist
  • set QML2_IMPORT_PATH=D:\sources\personal\python\apps\nuitka_tests\pyqt\qml-testing\venv\Lib\site-packages\PyQt5\Qt\qml

If you adjust the hardcoded paths (they point out to my local paths) you should be able to get a running main.exe, now, what's the problem here?

The QML dlls are not being bundled with nuitka and as you can see I'm setting the env.var to use my local ones, why is this?

Unknown encoding: idna - Using the "requests" library with Nuitka.

I am attempting to use the "requests" library with Nuitka.

test.py

import requests

r = requests.get('http://google.com')

print r.text

I compiled a portable version of it using: >nuitka --portable test.py.

I can browse to test.dist and execute test.exe perfectly on my machine.

However when I transfer it to a new VM, I encountered a couple of errors:

  1. ImportError: No module named _socket - I fixed this by adding "_sockets.pyd"

  2. LookupError: unknown encoding: idna - I am currently stuck and cannot figure out how to fix this issue, I have tried adding idna.pyd (I compiled idna.py using Nuitka then added to test.dist but to no avail).

errors with jinja2 and Python3.6

Super excited to find this nuitka, props to the developer for putting in all the effort!

I'm having trouble getting it to work with numpy. When I run nuitka --recurse-all --generate-c-only --python-version=3.6 hello.py I get the below errors. hello.py contains only the line import numpy; print(numpy.__version__). Have others had luck running nuitka on python modules that use numpy? I get many warnings about Cannot find ... in package ..., then eventually an assertion error having to do with nuitka/nodes/FunctionNodes.py

Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/testing/nosetester.py:278: Cannot find 'nose.plugins.builtin' in package 'numpy.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/distutils/npy_pkg_config.py:8: Cannot find 'ConfigParser' in package 'numpy.distutils' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/distutils/system_info.py:2009: Cannot find 'Numeric' in package 'numpy.distutils' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/distutils/system_info.py:2014: Cannot find 'numarray' in package 'numpy.distutils' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/f2py/diagnose.py:51: Cannot find 'numpy_distutils' in package 'numpy.f2py' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/f2py/diagnose.py:91: Cannot find 'numpy_distutils.command.build_flib' in package 'numpy.f2py' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/f2py/diagnose.py:113: Cannot find 'numpy_distutils.fcompiler' in package 'numpy.f2py' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/f2py/diagnose.py:136: Cannot find 'numpy_distutils.command.cpuinfo' in package 'numpy.f2py' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/f2py/diagnose.py:142: Cannot find 'numpy_distutils.cpuinfo' in package 'numpy.f2py' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/f2py/__version__.py:6: Cannot find '__svn_version__' in package 'numpy.f2py' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/setuptools/command/egg_info.py:20: Cannot find 'setuptools.extern.six.moves' in package 'setuptools.command' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/setuptools/glob.py:13: Cannot find 'setuptools.extern.six' in package 'setuptools' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/pkg_resources/__init__.py:49: Cannot find 'pkg_resources.extern.six.moves' in package 'pkg_resources' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/appdirs.py:480: Cannot find 'win32com.shell' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/appdirs.py:534: Cannot find 'com.sun' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/appdirs.py:535: Cannot find 'com.sun.jna.platform' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/appdirs.py:568: Cannot find 'com.sun.jna' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/setuptools/namespaces.py:5: Cannot find 'setuptools.extern.six.moves' in package 'setuptools' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/setuptools/package_index.py:15: Cannot find 'urllib2' in package 'setuptools' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/setuptools/ssl_support.py:45: Cannot find 'backports.ssl_match_hostname' in package 'setuptools' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/setuptools/sandbox.py:18: Cannot find 'org.python.modules.posix.PosixModule' in package 'setuptools' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/cffi/recompiler.py:1503: Cannot find 'testing.udir' in package 'cffi' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/pycparser/ply/yacc.py:2946: Cannot find 'md5' in package 'pycparser.ply' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/testing/noseclasses.py:13: Cannot find 'nose' in package 'numpy.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/testing/noseclasses.py:14: Cannot find 'nose.plugins' in package 'numpy.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/testing/noseclasses.py:15: Cannot find 'nose.plugins.errorclass' in package 'numpy.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/testing/noseclasses.py:16: Cannot find 'nose.plugins.base' in package 'numpy.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/testing/noseclasses.py:17: Cannot find 'nose.util' in package 'numpy.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/testing/utils.py:179: Cannot find 'win32pdh' in package 'numpy.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/lib/npyio.py:29: Cannot find 'future_builtins' in package 'numpy.lib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/lib/_datasource.py:264: Cannot find 'urlparse' in package 'numpy.lib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/lib/_datasource.py:287: Cannot find 'urllib2' in package 'numpy.lib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/numpy/core/__init__.py:100: Cannot find 'copy_reg' in package 'numpy.core' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/pkg_resources/__init__.py:72: Cannot find 'pkg_resources.extern.packaging.version' in package 'pkg_resources' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/pkg_resources/__init__.py:73: Cannot find 'pkg_resources.extern.packaging.specifiers' in package 'pkg_resources' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/pkg_resources/__init__.py:74: Cannot find 'pkg_resources.extern.packaging.requirements' in package 'pkg_resources' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/pkg_resources/__init__.py:75: Cannot find 'pkg_resources.extern.packaging.markers' in package 'pkg_resources' as absolute import.
Nuitka:WARNING:Use '--plugin-enable=pylint-warnings' for: Understand PyLint/PyDev annotations for warnings.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/Cython/Build/IpythonMagic.py:64: Cannot find 'md5' in package 'Cython.Build' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/Cython/Debugger/DebugWriter.py:8: Cannot find 'lxml' in package 'Cython.Debugger' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/Cython/Compiler/Main.py:356: Cannot find 'Parser' in package 'Cython' 2 package levels up.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/utils/text.py:20: Cannot find 'pathlib2' in package 'IPython.utils' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/__init__.py:150: Cannot find 'IPython.kernel.zmq.kernelapp' in package 'IPython' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/traitlets/traitlets.py:1946: Cannot find 'System' in package 'traitlets' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/terminal/interactiveshell.py:385: Cannot find 'win_unicode_console' in package 'IPython.terminal' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/lib/clipboard.py:18: Cannot find 'win32clipboard' in package 'IPython.lib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/prompt_toolkit/layout/controls.py:9: Cannot find 'six.moves' in package 'prompt_toolkit.layout' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/prompt_toolkit/key_binding/bindings/vi.py:19: Cannot find 'six.moves' in package 'prompt_toolkit.key_binding.bindings' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/prompt_toolkit/key_binding/input_processor.py:18: Cannot find 'six.moves' in package 'prompt_toolkit.key_binding' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/prompt_toolkit/renderer.py:15: Cannot find 'six.moves' in package 'prompt_toolkit' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/core/debugger.py:158: Cannot find 'repr' in package 'IPython.core' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/prompt_toolkit/styles/from_dict.py:14: Cannot find 'six.moves' in package 'prompt_toolkit.styles' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/prompt_toolkit/terminal/vt100_input.py:12: Cannot find 'six.moves' in package 'prompt_toolkit.terminal' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/utils/_process_cli.py:15: Cannot find 'clr' in package 'IPython.utils' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/utils/_process_cli.py:16: Cannot find 'System' in package 'IPython.utils' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/tornado/simple_httpclient.py:29: Cannot find 'urlparse' in package 'tornado' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/tornado/netutil.py:56: Cannot find 'backports.ssl_match_hostname' in package 'tornado' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/tornado/platform/auto.py:44: Cannot find 'monotime' in package 'tornado.platform' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/tornado/platform/auto.py:52: Cannot find 'monotonic' in package 'tornado.platform' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/tornado/gen.py:98: Cannot find 'singledispatch' in package 'tornado' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/tornado/gen.py:115: Cannot find 'backports_abc' in package 'tornado' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/tornado/platform/asyncio.py:37: Cannot find 'trollius' in package 'tornado.platform' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/tornado/httputil.py:43: Cannot find 'Cookie' in package 'tornado' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/tornado/escape.py:37: Cannot find 'htmlentitydefs' in package 'tornado' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jsonschema/compat.py:26: Cannot find 'urlparse' in package 'jsonschema' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jsonschema/compat.py:30: Cannot find 'urllib2' in package 'jsonschema' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jsonschema/compat.py:35: Cannot find 'functools32' in package 'jsonschema' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/requests/compat.py:41: Cannot find 'urlparse' in package 'requests' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/requests/compat.py:42: Cannot find 'urllib2' in package 'requests' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/requests/compat.py:43: Cannot find 'cookielib' in package 'requests' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/requests/compat.py:44: Cannot find 'Cookie' in package 'requests' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/urllib3/packages/ordered_dict.py:11: Cannot find '_abcoll' in package 'urllib3.packages' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/urllib3/packages/ssl_match_hostname/__init__.py:13: Cannot find 'backports.ssl_match_hostname' in package 'urllib3.packages.ssl_match_hostname' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/urllib3/contrib/socks.py:27: Cannot find 'socks' in package 'urllib3.contrib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/urllib3/connectionpool.py:28: Cannot find 'packages.six.moves' in package 'urllib3' 1 package level up.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/urllib3/util/response.py:2: Cannot find 'packages.six.moves' in package 'urllib3' 2 package levels up.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/urllib3/request.py:4: Cannot find 'packages.six.moves.urllib.parse' in package 'urllib3' 1 package level up.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/urllib3/connection.py:10: Cannot find 'packages.six.moves.http_client' in package 'urllib3' 1 package level up.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py:46: Cannot find 'OpenSSL.SSL' in package 'urllib3.contrib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py:47: Cannot find 'cryptography' in package 'urllib3.contrib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py:48: Cannot find 'cryptography.hazmat.backends.openssl' in package 'urllib3.contrib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py:49: Cannot find 'cryptography.hazmat.backends.openssl.x509' in package 'urllib3.contrib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py:137: Cannot find 'cryptography.x509.extensions' in package 'urllib3.contrib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py:144: Cannot find 'OpenSSL.crypto' in package 'urllib3.contrib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jsonschema/_format.py:194: Cannot find 'rfc3987' in package 'jsonschema' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jsonschema/_format.py:206: Cannot find 'strict_rfc3339' in package 'jsonschema' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jsonschema/_format.py:209: Cannot find 'isodate' in package 'jsonschema' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jsonschema/_format.py:248: Cannot find 'webcolors' in package 'jsonschema' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/notebook/nbextensions.py:20: Cannot find 'urlparse' in package 'notebook' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/nbconvert/filters/strings.py:19: Cannot find 'urllib2' in package 'nbconvert.filters' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/nbconvert/filters/citation.py:18: Cannot find 'HTMLParser' in package 'nbconvert.filters' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jinja2/utils.py:182: Cannot find 'pretty' in package 'jinja2' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jinja2/debug.py:22: Cannot find '__pypy__' in package 'jinja2' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jinja2/debug.py:105: Cannot find 'jinja2.debugrenderer' in package 'jinja2' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/entrypoints.py:16: Cannot find 'backports' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipykernel/zmqshell.py:372: Cannot find 'ipyparallel' in package 'ipykernel' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipykernel/eventloops.py:100: Cannot find 'wx' in package 'ipykernel' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipykernel/eventloops.py:156: Cannot find 'Tkinter' in package 'ipykernel' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/cycler.py:48: Cannot find 'six.moves' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/colors.py:63: Cannot find 'six.moves' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/mlab.py:3384: Cannot find 'mpl_toolkits.natgrid' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/axes/_axes.py:5: Cannot find 'six.moves' in package 'matplotlib.axes' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/font_manager.py:67: Cannot find 'functools32' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/textpath.py:24: Cannot find 'six.moves.urllib.parse' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/pyparsing.py:89: Cannot find 'ordereddict' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/image.py:11: Cannot find 'six.moves.urllib.request' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py:8: Cannot find 'six.moves' in package 'matplotlib.backends' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/PIL/Image.py:57: Cannot find 'FixTk' in package 'PIL' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/PIL/ImageQt.py:26: Cannot find 'PyQt5.QtGui' in package 'PIL' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/PIL/ImageQt.py:27: Cannot find 'PyQt5.QtCore' in package 'PIL' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/PIL/ImageQt.py:31: Cannot find 'PyQt4.QtGui' in package 'PIL' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/PIL/ImageQt.py:32: Cannot find 'PyQt4.QtCore' in package 'PIL' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/PIL/ImageQt.py:36: Cannot find 'PySide.QtGui' in package 'PIL' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/PIL/ImageQt.py:37: Cannot find 'PySide.QtCore' in package 'PIL' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/PIL/GifImagePlugin.py:298: Cannot find '_imaging_gif' in package 'PIL' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/tri/triinterpolate.py:8: Cannot find 'six.moves' in package 'matplotlib.tri' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/dateutil/rrule.py:19: Cannot find 'six.moves' in package 'dateutil' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/dateutil/tz/win.py:5: Cannot find 'six.moves' in package 'dateutil.tz' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/compat/subprocess.py:23: Cannot find 'subprocess32' in package 'matplotlib.compat' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipykernel/gui/gtk3embed.py:17: Cannot find 'gi' in package 'ipykernel.gui' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipykernel/gui/gtk3embed.py:20: Cannot find 'gi.repository' in package 'ipykernel.gui' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipykernel/gui/gtkembed.py:17: Cannot find 'gobject' in package 'ipykernel.gui' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipykernel/gui/gtkembed.py:18: Cannot find 'gtk' in package 'ipykernel.gui' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/lib/guisupport.py:71: Cannot find 'wx' in package 'IPython.lib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/external/qt_loaders.py:183: Cannot find 'PySide' in package 'IPython.external' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/external/qt_loaders.py:199: Cannot find 'sip' in package 'IPython.external' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/external/qt_loaders.py:241: Cannot find 'PyQt4' in package 'IPython.external' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/external/qt_loaders.py:265: Cannot find 'PyQt5' in package 'IPython.external' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/external/qt_loaders.py:295: Cannot find 'PySide2' in package 'IPython.external' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipykernel/pickleutil.py:26: Cannot find 'ipyparallel.serialize' in package 'ipykernel' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipykernel/pickleutil.py:84: Cannot find 'dill' in package 'ipykernel' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipykernel/pickleutil.py:107: Cannot find 'cloudpickle' in package 'ipykernel' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipykernel/codeutil.py:24: Cannot find 'copy_reg' in package 'ipykernel' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/zmq/ssh/tunnel.py:26: Cannot find 'paramiko' in package 'zmq.ssh' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/zmq/ssh/forward.py:35: Cannot find 'SocketServer' in package 'zmq.ssh' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/zmq/eventloop/minitornado/platform/auto.py:39: Cannot find 'monotime' in package 'zmq.eventloop.minitornado.platform' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/zmq/sugar/context.py:81: Cannot find 'pyczmq' in package 'zmq.sugar' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/pyplot.py:83: Cannot find 'wx' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/pyplot.py:87: Cannot find 'PyQt4.QtGui' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/pyplot.py:92: Cannot find 'PyQt5.QtWidgets' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/pyplot.py:99: Cannot find 'gi.repository' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/pyplot.py:102: Cannot find 'gobject' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/__init__.py:1581: Cannot find 'nose' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/__init__.py:1593: Cannot find 'nose.plugins' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/__init__.py:1606: Cannot find 'nose.plugins.builtin' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/__init__.py:1607: Cannot find 'nose.plugins.manager' in package 'matplotlib' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/matplotlib/testing/noseclasses.py:7: Cannot find 'nose.plugins.errorclass' in package 'matplotlib.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/core/magics/code.py:272: Cannot find 'urllib2' in package 'IPython.core.magics' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/core/history.py:15: Cannot find 'pysqlite2' in package 'IPython.core' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jedi/evaluate/docstrings.py:46: Cannot find 'numpydoc.docscrape' in package 'jedi.evaluate' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jedi/api/keywords.py:14: Cannot find 'pydoc_topics' in package 'jedi.api' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/coverage/misc.py:51: Cannot find 'contracts' in package 'coverage' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/coverage/backward.py:25: Cannot find 'ConfigParser' in package 'coverage' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/coverage/debug.py:284: Cannot find 'aspectlib' in package 'coverage' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/coverage/debug.py:285: Cannot find 'aspectlib.debug' in package 'coverage' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/coverage/control.py:52: Cannot find '_structseq' in package 'coverage' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/coverage/control.py:57: Cannot find '_pypy_irc_topic' in package 'coverage' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/coverage/collector.py:114: Cannot find 'greenlet' in package 'coverage' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/coverage/collector.py:117: Cannot find 'eventlet.greenthread' in package 'coverage' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/coverage/collector.py:120: Cannot find 'gevent' in package 'coverage' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/coverage/collector.py:196: Cannot find '__pypy__' in package 'coverage' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/testing/iptest.py:29: Cannot find 'nose.plugins.builtin' in package 'IPython.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/testing/iptest.py:30: Cannot find 'nose.plugins.xunit' in package 'IPython.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/testing/iptest.py:31: Cannot find 'nose' in package 'IPython.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/testing/iptest.py:32: Cannot find 'nose.core' in package 'IPython.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/testing/iptest.py:33: Cannot find 'nose.plugins' in package 'IPython.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/testing/iptest.py:34: Cannot find 'nose.util' in package 'IPython.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/testing/tools.py:26: Cannot find 'nose.tools' in package 'IPython.testing' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/external/decorators/_numpy_testing_noseclasses.py:8: Cannot find 'nose.plugins.errorclass' in package 'IPython.external.decorators' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/external/decorators/_decorators.py:59: Cannot find 'nose' in package 'IPython.external.decorators' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/testing/plugin/ipdoctest.py:46: Cannot find 'nose.plugins' in package 'IPython.testing.plugin' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/testing/plugin/ipdoctest.py:47: Cannot find 'nose.util' in package 'IPython.testing.plugin' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/IPython/core/interactiveshell.py:87: Cannot find 'docrepr.sphinxify' in package 'IPython.core' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/pickleshare.py:45: Cannot find 'pathlib2' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/Cython/Build/Dependencies.py:47: Cannot find 'pythran' in package 'Cython.Build' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/setuptools/command/build_ext.py:54: Cannot find 'dl' in package 'setuptools.command' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/setuptools/dist.py:19: Cannot find 'pkg_resources.extern.packaging.specifiers' in package 'setuptools' as absolute import.
Nuitka:WARNING:/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/setuptools/dist.py:20: Cannot find 'pkg_resources.extern.packaging.version' in package 'setuptools' as absolute import.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/PIL/Image.py:398' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/PIL/Image.py:398' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/cffi/verifier.py:161' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/cffi/verifier.py:161' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipykernel/pickleutil.py:223' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipykernel/pickleutil.py:223' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipython_genutils/importstring.py:31' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipython_genutils/importstring.py:39' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipython_genutils/importstring.py:31' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/ipython_genutils/importstring.py:39' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jedi/evaluate/compiled/__init__.py:406' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jedi/evaluate/compiled/__init__.py:406' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jedi/evaluate/compiled/fake.py:101' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at '/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jedi/evaluate/compiled/fake.py:101' may require use of '--recurse-directory'.
Problem with <Node 'EXPRESSION_ASYNC_WAIT'> at /Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/jinja2/asyncfilters.py:72
Traceback (most recent call last):
  File "/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/bin/nuitka", line 211, in <module>
    MainControl.main()
  File "/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/nuitka/MainControl.py", line 766, in main
    main_module = main_module
  File "/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/nuitka/MainControl.py", line 639, in compileTree
    main_module = main_module
  File "/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/nuitka/MainControl.py", line 323, in makeSourceDirectory
    Finalization.prepareCodeGeneration(module)
  File "/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/nuitka/finalizations/Finalization.py", line 33, in prepareCodeGeneration
    Operations.visitTree(tree, visitor)
  File "/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/nuitka/tree/Operations.py", line 36, in visitTree
    visitTree(visitable, visitor)
  File "/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/nuitka/tree/Operations.py", line 36, in visitTree
    visitTree(visitable, visitor)
  File "/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/nuitka/tree/Operations.py", line 36, in visitTree
    visitTree(visitable, visitor)
  [Previous line repeated 9 more times]
  File "/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/nuitka/tree/Operations.py", line 26, in visitTree
    visitor.onEnterNode(tree)
  File "/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/nuitka/finalizations/FinalizeMarkups.py", line 52, in onEnterNode
    self._onEnterNode(node)
  File "/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/nuitka/finalizations/FinalizeMarkups.py", line 159, in _onEnterNode
    search = search.getParent()
  File "/Users/aneben/.pyenv/versions/3.6.1/envs/software-3.6.1/lib/python3.6/site-packages/nuitka/nodes/FunctionNodes.py", line 447, in getParent
    assert False
AssertionError

Package all standalone resources into a single file option

Hello @kayhayen,

Let me first greet you for that project who opens up new horizons, really.

I would like to bring an idea to improve it (at least, for my usages): could you propose an option to pack all standalone resources into one single file like the --onefile option for pyinstaller ? IMHO it's even more convenient for users to manipulate a single file than rather use entire folders.

Pyinstaller packs all resources into a single zip file (which is executable) and unzip them at runtime (check one of my compiled tools, for instance https://github.com/maaaaz/tibcopasswordrevealer) to see what it looks like).

Cheers!

Python3 syntax for *args notation of base classes raises an assertion in Nuitka

Versions:

  • Nuitka 0.5.29.4
  • Python 3.6.5
  • MacOS 10.13.4

Installed Nuitka with python3 -m pip install nuitka.

Problem

bases.py:

class A: pass
class B: pass

bases = (A, B)

class C(*bases): pass

Verbose output:

% python3 -m nuitka --verbose bases.py
Nuitka:WARNING:Problem at '<SourceCodeReference to bases.py:6>' with Starred(value=Name(id='bases', ctx=Load()), ctx=Load()).
Nuitka:WARNING:Problem at '<SourceCodeReference to bases.py:6>' with ClassDef(name='C', bases=[Starred(value=Name(id='bases', ctx=Load()), ctx=Load())], keywords=[], body=[Pass()], decorator_list=[]).
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/nuitka/__main__.py", line 213, in <module>
    main()
  File "/usr/local/lib/python3.6/site-packages/nuitka/__main__.py", line 207, in main
    MainControl.main()
  File "/usr/local/lib/python3.6/site-packages/nuitka/MainControl.py", line 758, in main
    filename = filename
  File "/usr/local/lib/python3.6/site-packages/nuitka/MainControl.py", line 78, in createNodeTree
    is_main  = not Options.shallMakeModule()
  File "/usr/local/lib/python3.6/site-packages/nuitka/tree/Building.py", line 1100, in buildModuleTree
    is_main     = is_main
  File "/usr/local/lib/python3.6/site-packages/nuitka/tree/Building.py", line 1044, in createModuleTree
    is_main     = is_main
  File "/usr/local/lib/python3.6/site-packages/nuitka/tree/Building.py", line 748, in buildParseTree
    source_ref = source_ref
  File "/usr/local/lib/python3.6/site-packages/nuitka/tree/TreeHelpers.py", line 351, in buildStatementsNode
    statements = buildNodeList(provider, nodes, source_ref, allow_none = True)
  File "/usr/local/lib/python3.6/site-packages/nuitka/tree/TreeHelpers.py", line 305, in buildNodeList
    entry = buildNode(provider, node, node_source_ref, allow_none)
  File "/usr/local/lib/python3.6/site-packages/nuitka/tree/TreeHelpers.py", line 262, in buildNode
    source_ref = source_ref
  File "/usr/local/lib/python3.6/site-packages/nuitka/tree/ReformulationClasses.py", line 920, in buildClassNode
    return _buildClassNode3(provider, node, source_ref)
  File "/usr/local/lib/python3.6/site-packages/nuitka/tree/ReformulationClasses.py", line 334, in _buildClassNode3
    source_ref
  File "/usr/local/lib/python3.6/site-packages/nuitka/tree/TreeHelpers.py", line 305, in buildNodeList
    entry = buildNode(provider, node, node_source_ref, allow_none)
  File "/usr/local/lib/python3.6/site-packages/nuitka/tree/TreeHelpers.py", line 276, in buildNode
    assert False, ast.dump(node)
AssertionError: Starred(value=Name(id='bases', ctx=Load()), ctx=Load())

Compiling python code that uses six.py somewhere in the import chain

Steps:

  1. Compile any code that has six.py in it's import chain - e.g. direct usage or imports some module which eventually imports six.py
    e.g.
~/temp/glances $ nuitka --python-version=3.5 --portable --recurse-all /usr/bin/glances 
Nuitka:WARNING:Unresolved '__import__' call at '/home/gsjy/.local/lib/python3.5/site-packages/six.py:82' may require use of '--recurse-directory'.
  1. Try running the generated code.
    Result:
~/temp/glances$ glances.dist/glances.exe 
Traceback (most recent call last):
  File "/home/gsjy/temp/glances/glances.dist/glances", line 5, in <module>
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/home/gsjy/temp/glances/glances.dist/pkg_resources/__init__.py", line 51, in <module>
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/home/gsjy/temp/glances/glances.dist/pkg_resources/extern/__init__.py", line 43, in load_module
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
KeyError: 'six'
  • Nuitka version 0.5.28.1, Python 3.5.2 and Python 2.7.12 on Ubuntu 16.04 and Windows 10
  • Python installed and kept up to date by the APT, nuitka installed and managed by pip
  • No virtualenv
  • Looks like issue is not a regression.

Would it be possible to enable cross-compilation ?

I would like some guidance on what would be necessary to use mingw-64 to build a Windows executable from a linux machine.

We have many go builds that enjoy a simple linux-based ci builds to produce Windows executables. We would probably be interested in the same for nuitka --standalone from a linux machine.

I have come across this: https://www.freelists.org/post/nuitka-dev/Patch-Added-crosscompilation-support-to-nuitka, but it seemingly has not received any feedback. This patch seems to point to a relatively easy thing to support.

Am I correct in my assumptions ? What would be needed for such a use-case ?

Built-in names could be resolved despite use at module variable

Hi,

I have some methods in which some parameters have default argument. When I create the executable and run it. It gives following error message.

TypeError: compile() takes at least 3 arguments (1 given)
compile functions takes three arguments in which 2 have default values.

I am using following command to create executable
nuitka --standalone --python-flag=nosite --warn-implicit-exceptions --debug main.py

Any suggestions, what am I doing wrong?

Python3.6 in Cygwin x64 in Windows 10: weird compile error

In installed Nuitka via pip because of the good words about when Nuitka can do.

Perhaps my setting is not so canonical: Windows 10 x64, and Python3.6 from within Cygwin x64. The script works without any problem.
But when I run
$> nuitka --recurse-all --python-version=3.6 myPythonScript.py
There is this error message:
$> nuitka --recurse-all --python-version=3.6 myPythonScript.py
Traceback (most recent call last):
File "/usr/bin/nuitka", line 74, in
from nuitka import Options # isort:skip
ModuleNotFoundError: No module named 'nuitka'

I even started pip inside Python 3 and installed isort, but that didn't help.

Please let me know I should do to assist the improvement of Nuitka.

bound method become compiled_method after nuitka build

after I compile some packages, the bound method to object become type compiled_method which is different from default type instancemethod.
This will cause traits like library failed at isinstance(method, types.MethodType)

Segmentation fault

image

image

image

Nuitka version: 0.5.26.4

This is fixed with nuitka version: 0.5.27 so I guess it isn't a high priority. 0.5.27 in repositories would be great though.

And by the way thanks for the great work!

Issue with compiling

  • Nuitka version, full Python version and Platform (Windows, OSX, Linux ...)
    0.5.28.1 python 2.7.5 Windows 10

  • How did you install Nuitka and Python (pip, anaconda, deb, rpm, from source,
    what is a virtualenv ...), this is very important usually.
    I used pip install nuitka python came with panda3d

  • If possible please supply a Short, Self Contained, Correct, Example
    that demonstrates the issue i.e a small piece of code which reproduces
    the issue and can be run with out any other (or as few as possible)
    external dependencies.
    I tried using roaming-ralph in the panda3d samples folder, however I keep getting this error no matter what.

  • Command Used:
    nuitka --standalone --recurse-all --verbose --enhanced --output-dir=build --python-version=2.7 main.py

  • Error:

Traceback (most recent call last):
  File "c:\users\link\appdata\local\temp\tmphla8bk", line 20, in <module>
    __import__(imp)
  File "C:\Panda3D-1.10.0\panda\python\lib\smartroom\BeyondQuestion.py", line 139, in <module>
    createPort()
  File "C:\Panda3D-1.10.0\python\lib\smartroom\BeyondQuestion.py", line 66, in createPort
    raise "The Beyond Question Executable is not installed properly."
TypeError: exceptions must be old-style classes or derived from BaseException, not str

I'm not entirely sure if this is a bug, or if I'm just doing something wrong. thanks in advance for any help.

Not supported: The Cygwin, TDM, MinGW compiler, help to change that or use MinGW64 with 32/64 bits.

UPDATE./ Can you guys PLEASE state that you do not support 3.6. I've spent half the day only to realise you guys do not support it yet state you do on your website.

C:\Users\Bain3>Nuitka --exe 123.py
Nuitka:WARNING:Not recursing to 'selenium' (C:\Users\Bain3\Anaconda3\Lib\site-packages\selenium), please specify --recurse-none (do not warn), --recurse-all (recurse to all), --recurse-not-to=selenium (ignore it), --recurse-to=selenium (recurse to it) to change.
Nuitka:WARNING:Not recursing to 'selenium.webdriver.support.ui' (C:\Users\Bain3\Anaconda3\Lib\site-packages\selenium\webdriver\support\ui.py), please specify --recurse-none (do not warn), --recurse-all (recurse to all), --recurse-not-to=selenium.webdriver.support.ui (ignore it), --recurse-to=selenium.webdriver.support.ui (recurse to it) to change.
Nuitka:WARNING:Not recursing to 'selenium.webdriver.support' (C:\Users\Bain3\Anaconda3\Lib\site-packages\selenium\webdriver\support), please specify --recurse-none (do not warn), --recurse-all (recurse to all), --recurse-not-to=selenium.webdriver.support (ignore it), --recurse-to=selenium.webdriver.support (recurse to it) to change.
Nuitka:WARNING:Not recursing to 'selenium.webdriver.common.by' (C:\Users\Bain3\Anaconda3\Lib\site-packages\selenium\webdriver\common\by.py), please specify --recurse-none (do not warn), --recurse-all (recurse to all), --recurse-not-to=selenium.webdriver.common.by (ignore it), --recurse-to=selenium.webdriver.common.by (recurse to it) to change.
Nuitka:WARNING:Not recursing to 'requests' (C:\Users\Bain3\Anaconda3\Lib\site-packages\requests), please specify --recurse-none (do not warn), --recurse-all (recurse to all), --recurse-not-to=requests (ignore it), --recurse-to=requests (recurse to it) to change.
Nuitka:WARNING:Not recursing to 'selenium.common.exceptions' (C:\Users\Bain3\Anaconda3\Lib\site-packages\selenium\common\exceptions.py), please specify --recurse-none (do not warn), --recurse-all (recurse to all), --recurse-not-to=selenium.common.exceptions (ignore it), --recurse-to=selenium.common.exceptions (recurse to it) to change.
Nuitka:WARNING:Not recursing to 'retrying' (C:\Users\Bain3\Anaconda3\Lib\site-packages\retrying.py), please specify --recurse-none (do not warn), --recurse-all (recurse to all), --recurse-not-to=retrying (ignore it), --recurse-to=retrying (recurse to it) to change.
Error, cannot find "gendef.exe" which is required though.

Issue compiling six.move.http_client

So I'm new to Nuitka and I am loving it so far but there is one major issue I am coming across. Every time I compile my program, it runs into an issue importing a major piece of one of the imported packages (tweepy) For some reason it has trouble importing six.move.http_client, but when running the program with the python interpreter there are no issues. I would really love some help in fixing this issue. If you need any assets let me know and I will get them for you.
Kind regards.

Convert Python code into dll to use it in other program (c, C++, ...)

Hello,

I am looking for a way to convert Python code (using numpy, scipy maybe, and other libraries) into a file .dll which can be used by other langage as C or C++. This is to avoid to recode all my algorithms in C++ to create pure C++ dll.
Your tool Nuitka seems to achieve this goal. Am i wrong ? I find before Cython but with this library I have to recode all my Python file so it is not very cool.

I am sorry to disturb you whereas there is a website but I am such a newbie in this that it is difficult to understand all the aspects.
Thank you in advance for your answer

Visual Studio 2017 not detected

Hello,i have some trouble trying to get nuitka 0.5.26.4 working.
I have :
-VS 2017 community edition
-Python 3.6 32bits
-Python 2.7.13
I try to compile this hello_world script.py :
print("hello_world")
Using this command :
nuitka --standalone --recurse-all --python-version=3.6 hello_world.py
Which gives me
`Error, cannot locate suitable C compiler. You have the following options:

a) If a suitable Visual Studio version is installed, it will not be located
automatically, unless you install pywin32 for the Python installation
below "c:\Python27".

b) To make it find Visual Studio execute from Start Menu the 'Visual Studio
Command Prompt' or "vcvarsall.bat". That will add Visual Studio to the
PATH. And it will be detected.

c) Install MinGW64 to "C:\MinGW64" or "\MinGW", where then it is automatically
detected or add it to PATH before executing Nuitka. But be sure to pick the
proper variant (32/64 bits, your Python arch is x86).

d) Set the environment variable C to the full path of either "gcc.exe". Also
be sure to head proper architecture or else errors will occur.`

I installed pywin32 on python 2.7 using:
pip2.7.exe install pypiwin32
I tried to run vcvarsall.bat x86,amd64,and x86_amd64,with no results.
Have you got any idea ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.