Skip to content

Instantly share code, notes, and snippets.

@AndreMiras
AndreMiras / buildozer.log
Created December 19, 2018 20:37
libffi build fails under python3crystax p4a PR-1537
[INFO]: Building libffi for armeabi-v7a
[INFO]: -> directory context /home/andre/workspace/EtherollApp/.buildozer/android/platform/build/build/other_builds/libffi/armeabi-v7a__ndk_target_19/libffi
[INFO]: -> running autogen.sh
[INFO]: -> running autoreconf -vif
[INFO]: -> running configure --host=arm-linux-androideabi --prefix=/home/andre/workspace/EtherollApp/.buildozer/android/platform/build/build/python-installs/etheroll --enable-shared
[INFO]: -> running make -j5 libffi.la
working: make: *** [libffi.la] Error 2 Exception in thread background thread for pid 13668:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
diff --git a/pythonforandroid/build.py b/pythonforandroid/build.py
index e05bfe72..176d5542 100644
--- a/pythonforandroid/build.py
+++ b/pythonforandroid/build.py
@@ -627,7 +627,7 @@ def run_pymodules_install(ctx, modules):
venv = sh.Command(ctx.virtualenv)
with current_directory(join(ctx.build_dir)):
shprint(venv,
- '--python=python{}'.format(ctx.python_recipe.major_minor_version_string()),
+ '--python=python{}'.format(ctx.python_recipe.major_minor_version_string),
@AndreMiras
AndreMiras / logcat.txt
Created September 11, 2018 15:50
buildozer android adb -- logcat -s python,service,AndroidRuntime
09-11 17:44:07.536 8053 8086 I python : Initialize Python for Android [54/1936]
09-11 17:44:07.536 8053 8086 I python : Changing directory to the one provided by ANDROID_ARGUMENT
09-11 17:44:07.536 8053 8086 I python : /data/user/0/org.test.myapp/files/app
09-11 17:44:07.537 8053 8086 I python : Preparing to initialize python
09-11 17:44:07.537 8053 8086 I python : crystax_python does not exist
09-11 17:44:07.550 8053 8086 I python : Initialized python
09-11 17:44:07.550 8053 8086 I python : AND: Init threads
09-11 17:44:07.551 8053 8086 I python : testing python print redirection
09-11 17:44:07.552 8053 8086 I python : Setting up python from ANDROID_PRIVATE
[INFO]: Building gevent for armeabi-v7a [984/1627]
[INFO]: gevent apparently isn't already in site-packages
[INFO]: Building compiled components in gevent
# on Ubuntu 16.04 Xenial, the error:
# x11 - ImportError: No module named window_x11
# is fixed by installing kivy master
# https://github.com/kivy/kivy/archive/27e3b90eae2a0155b22a435f1b6f65c913519db6.zip
Kivy==1.10.0
This file has been truncated, but you can view the full file.
/* Generated by Cython 0.21 */
#define PY_SSIZE_T_CLEAN
#ifndef CYTHON_USE_PYLONG_INTERNALS
#ifdef PYLONG_BITS_IN_DIGIT
#define CYTHON_USE_PYLONG_INTERNALS 0
#else
#include "pyconfig.h"
#ifdef PYLONG_BITS_IN_DIGIT
#define CYTHON_USE_PYLONG_INTERNALS 1
This file has been truncated, but you can view the full file.
/* Generated by Cython 0.25.2 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000)
#error Cython requires Python 2.6+ or Python 3.2+.
#else
#define CYTHON_ABI "0_25_2"
@AndreMiras
AndreMiras / Etheroll-20180318.diff
Created March 27, 2018 13:02
Diff between old 0xddf0d0b9914D530E0b743808249d9AF901f1bd01 and new 0x048717Ea892F23Fb0126F00640e2b18072efd9D2 contract
1833,1834c1833,1834
< //init discontinued contract data
< int public totalBets = 244612;
---
> //init discontinued contract data
> uint public totalBets = 263935;
1836,1839c1836,1841
< //init discontinued contract data
< uint public totalWeiWon = 110633844560463069959901;
< //init discontinued contract data
[INFO ] Logger: Record log in /home/andre/.kivy/logs/kivy_17-01-07_149.txt
[INFO ] Kivy: v1.9.1
[INFO ] Python: v2.7.12 (default, Dec 15 2016, 09:52:22)
[GCC 4.9.3]
[INFO ] Factory: 179 symbols loaded
[DEBUG ] Cache: register <kv.image> with limit=None, timeout=60
[DEBUG ] Cache: register <kv.atlas> with limit=None, timeout=None
[INFO ] Image: Providers: img_tex, img_dds, img_gif, img_pygame (img_pil, img_ffpyplayer ignored)
[DEBUG ] Cache: register <kv.texture> with limit=1000, timeout=60
[DEBUG ] Cache: register <kv.shader> with limit=1000, timeout=3600
@AndreMiras
AndreMiras / _formhelpers_bootstrap3.html
Last active August 29, 2015 14:23 — forked from alienhaxor/_formhelpers.py
Jinja2 macro to render WTForms fields with Twitter Bootstrap. This fork renders the fields according to bootstrap 3.0.0
{% macro render_field(field) -%}
{% set with_label = kwargs.pop('with_label', False) %}
{% set placeholder = '' %}
{% if not with_label %}
{% set placeholder = field.label.text %}
{% endif %}
<div class="form-group {% if field.errors %}error{% endif %}">
{% if with_label %}
<label for="{{ field.id }}" class="control-label">
{{ field.label.text }}{% if field.flags.required %} *{% endif %}: