Questions tagged [nuitka]

Nuitka is a Python compiler compatible with Python 2.6, 2.7, 3.2, 3.3, 3.4, and 3.5.

Right now Nuitka is a good replacement for the Python interpreter and compiles every construct that CPython 2.6, 2.7, 3.2, 3.3, 3.4, and 3.5 offer. It translates the Python into a C++ program that then uses "libpython" to execute in the same way as CPython does, in a very compatible way.

It is somewhat faster than CPython already, but currently it doesn't make all the optimizations possible, but a 258% factor on pystone is a good start (number is from version 0.3.11).

Future

In the future, Nuitka will be able to use type inference and guessing by doing whole program analysis and then applying the results to perform as many calculations as possible. It will do this - where possible - without accessing "libpython" but in C++ with its native data types.

It will also be possible to integrate "ctypes" based bindings without the normal speed penalty (the compiled program will call the C++ library in C++ directly).

159 questions
0
votes
1 answer

How to overcome this compilation(Nuitka) error for python

I'm just starting to know about python language, and i just know the basics. I am finding problem when trying to compile a small command in ubuntu using nuitka. Note : The python version i'm using here is python 3.6 Here is my $ sample.py $. …
Karthikeyan S
  • 669
  • 3
  • 11
0
votes
0 answers

Unknown encoding: idna - When using the "requests" library with Nuitka

I am attempting to use the requests with Nuitka. example.py import requests r = requests.get('http://google.co.uk') print r.text I compiled a portable version of it using: $ nuitka --portable example.py. I can browse to example.dist and execute…
J. Doe
  • 3
  • 2
0
votes
0 answers

Difficulty compiling a file on openshift: /usr/bin/ld/: cannot find -lpython2.7

I recently put a simple web app on Openshift. Everything functions well on my local machine but when I run the application on Openshift I receive the error: /usr/bin/ld: cannot find -lpython2.7 The app uses Nuitka and gnu++ to convert a python file…
Logic9
  • 79
  • 1
  • 8
0
votes
2 answers

Python 3.5 - Compile pygame code with nuitka

I want to compile a game I made in Python. I searched around for compilers and I prefer Nuitka because it is cross-platform. But whenever I try to compile my code with Nuitka using nuitka --recurse-all --standalone myappname.py I get this…
Stam Kaly
  • 668
  • 1
  • 11
  • 26
0
votes
1 answer

Nuitka/Pyinstaller, unable to load oauth2client libraries and others

I'm relatively new to Python. For a school project, I'm coding a relatively complex program. I need to make an executable file. I started testing with a fraction of the actual program, and I was unable to create a .exe file using PyInstaller,…
Alex
  • 1
  • 1
0
votes
0 answers

Is there an actual jython to bytecode compiler à la nuitka?

While Jython offers a neat way to access Java from within Python-ish code, its bytecode works with PyObjects etc. and in order to let a Java programm interact with a Jython program, one has to put in some extra effort such as writing an object…
Tobias Kienzler
  • 25,759
  • 22
  • 127
  • 221
0
votes
1 answer

vsvars32.bat missing, Error while trying to building a Python program with Nuitka

I've got a little script that I want to compile using Nuitka. So I installed Nuitka, then I installed minGW C++ compiler, Nuitka then asked me to install python 2.7, so I installed that as well. Running nuitka recursive-all program.py results in a…
Azeirah
  • 6,176
  • 6
  • 25
  • 44
0
votes
1 answer

Nuitka unicode Hello world error

Just tried to compile very simple program in Nutika (Ubuntu 12.04, latest nuitka frop PyPI) and stuck with problem # -*- coding: utf-8 -*- print u"Hi Männer" And caught an exception nuitka test.py UnicodeEncodeError: 'ascii' codec can't…
alrusdi
  • 1,273
  • 1
  • 7
  • 9
0
votes
1 answer

python package compiled with nuitka fails with segmentation fault

I'm developing an embedded device controlled by a python2.7 script. And I need to compile the source for both security (I don't want device users to mess with my sources) and performance (I'm working on an BeagleBone Black, ARM microPC, and it's…
alexykot
  • 699
  • 1
  • 8
  • 21
1 2 3
10
11