Skip to content

Instantly share code, notes, and snippets.

View Tamriel's full-sized avatar

Jan Tamriel

  • Germany
View GitHub Profile
$ python3 /Volumes/HDD/Meine\ Docs/Studium/semester_07/BA/ba_git/Entwicklung/pyinstaller-python3/pyinstaller.py --windowed a.py
175 INFO: wrote /Users/Mora/ba/github/a.spec
176 WARNING: You are running 64-bit Python: created binaries will only work on Mac OS X 10.6+.
If you need 10.4-10.5 compatibility, run Python as a 32-bit binary with this command:
VERSIONER_PYTHON_PREFER_32_BIT=yes arch -i386 /Library/Frameworks/Python.framework/Versions/3.4/bin/python3
4179 INFO: UPX is not available.
4181 INFO: Extending PYTHONPATH with /Users/Mora/ba/github
4181 INFO: checking Analysis
@Tamriel
Tamriel / gist:d7e9398d0d7f596059ec
Created August 5, 2015 13:45
pygs install error
jans-laptop:pygs Mora$ python3 setup.py install
running install
running bdist_egg
running egg_info
creating PyGlobalShortcut.egg-info
writing PyGlobalShortcut.egg-info/PKG-INFO
writing dependency_links to PyGlobalShortcut.egg-info/dependency_links.txt
writing top-level names to PyGlobalShortcut.egg-info/top_level.txt
writing manifest file 'PyGlobalShortcut.egg-info/SOURCES.txt'
reading manifest file 'PyGlobalShortcut.egg-info/SOURCES.txt'
@Tamriel
Tamriel / gist:7b412366432e0df14ceb
Created August 5, 2015 15:09
pygs install error
jans-Mac:~ jan$ pip3 install PyGlobalShortcut
Collecting PyGlobalShortcut
Using cached PyGlobalShortcut-0.2.3.zip
Building wheels for collected packages: PyGlobalShortcut
Running setup.py bdist_wheel for PyGlobalShortcut
Complete output from command /usr/local/opt/python3/bin/python3.4 -c "import setuptools;__file__='/private/var/folders/h5/dymvt9c92yv_wccz9c79w84r0000gn/T/pip-build-6b185l4n/PyGlobalShortcut/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/h5/dymvt9c92yv_wccz9c79w84r0000gn/T/tmp6rboqy_wpip-wheel-:
running bdist_wheel
running build
running build_clib
building 'QxtGlobalShortcut' library
@Tamriel
Tamriel / gist:5effe03e81ba94d2975b
Created August 5, 2015 15:52
linux pygs install error
osboxes@osboxes:~$ pip3 install PyGlobalShortcut
Downloading/unpacking PyGlobalShortcut
Downloading PyGlobalShortcut-0.2.3.zip (44kB): 44kB downloaded
Running setup.py (path:/tmp/pip-build-vj_d61f6/PyGlobalShortcut/setup.py) egg_info for package PyGlobalShortcut
Installing collected packages: PyGlobalShortcut
Running setup.py install for PyGlobalShortcut
building 'QxtGlobalShortcut' library
Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
@Tamriel
Tamriel / gist:7107521081f2f26cdd22
Created August 5, 2015 17:16
windows pygs install error
C:\Users\Jan>pip3 install PyGlobalShortcut
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting PyGlobalShortcut
Using cached PyGlobalShortcut-0.2.3.zip
Installing collected packages: PyGlobalShortcut
Running setup.py install for PyGlobalShortcut
building 'QxtGlobalShortcut' library
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
Cannot find ('pyi_rth_qt5', '/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/PyInstaller/loader/rthooks/pyi_rth_qt5.py', 1, 's')
Traceback (most recent call last):
File "/usr/local/bin/pyinstaller", line 11, in <module>
sys.exit(run())
File "/usr/local/lib/python3.5/site-packages/PyInstaller/__main__.py", line 90, in run
run_build(pyi_config, spec_file, **vars(args))
File "/usr/local/lib/python3.5/site-packages/PyInstaller/__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/usr/local/lib/python3.5/site-packages/PyInstaller/building/build_main.py", line 755, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
Started GET "/f/login" for 127.0.0.1 at 2016-06-08 16:51:49 +0200
Processing by SessionsController#new as HTML
Parameters: {"foodcoop"=>"f"}
RailsSettings::CachedSettings Load (0.1ms) SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = ? ORDER BY "settings"."id" ASC LIMIT 1 [["var", "foodcoop.f.ignore_browser_locale"]]
CACHE (0ms) SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = ? ORDER BY "settings"."id" ASC LIMIT 1 [["var", "foodcoop.f.ignore_browser_locale"]]
Set locale to en
RailsSettings::CachedSettings Load (0.1ms) SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = ? ORDER BY "settings"."id" ASC LIMIT 1 [["var", "foodcoop.f.time_zone"]]
RailsSettings::CachedSettings Load (0.1ms) SELECT "settings".* FROM "settings" WHERE (thing_type is NULL and thing_id is NULL) AND "settings"."var" = ? ORDER BY "settings"."id" AS
@Tamriel
Tamriel / sync_to_device.py
Last active December 2, 2016 13:00
Quod Libet Plugin to sync saved searches to a device
import os
import cPickle
from gi.repository import Gtk
from quodlibet import get_user_dir
from quodlibet import qltk
from quodlibet.plugins.events import EventPlugin
from quodlibet.qltk.ccb import ConfigCheckButton
from quodlibet.query import Query
from quodlibet.plugins import PluginConfigMixin
from quodlibet import config
import buffer.Buffer
import org.scalajs.dom
import dom.document
import eu.timepit.crjdt.circe.RegNodeConflictResolver.LWW
import eu.timepit.crjdt.circe.syntax._
import eu.timepit.crjdt.core.{Operation, Replica}
import eu.timepit.crjdt.core.syntax._
import upickle.default._
import scala.scalajs.js
Error during failsafe response: No config for this environment (f) available!
/home/foodcool/foodsoft-2017/lib/foodsoft_config.rb:212:in `set_config'
/home/foodcool/foodsoft-2017/lib/foodsoft_config.rb:79:in `select_foodcoop'
/home/foodcool/foodsoft-2017/lib/foodsoft_config.rb:85:in `select_default_foodcoop'
/home/foodcool/foodsoft-2017/app/controllers/errors_controller.rb:19:in `select_foodcoop'
/home/foodcool/foodsoft-2017/vendor/bundle/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:432:in `block in make_lambda'
/home/foodcool/foodsoft-2017/vendor/bundle/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:164:in `block in halting'
/home/foodcool/foodsoft-2017/vendor/bundle/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `block in call'
/home/foodcool/foodsoft-2017/vendor/bundle/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `each'
/home/foodcool/foodsoft-2017/vendor/bundle/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:504:in `