Skip to content

Instantly share code, notes, and snippets.

@curaloucura
curaloucura / default.nix
Last active April 9, 2016 06:34
python default.nix
with import <nixpkgs>{}; {
pyEnv = stdenv.mkDerivation {
name = "py";
buildInputs = [ python34 python34Packages.virtualenv python34Packages.flask ];
shellHook = ''
if [ ! -d venv ]
then
virtualenv --python=python3.4 venv
fi
export PATH=`pwd`/venv/bin:$PATH
2015-07-27 14:22:58.223 ERROR [rhodecode.controllers.api.base] Encountered unhandled exception
Traceback (most recent call last):
...
File "/nix/store/krqbqlq12v0vshcgd52wrkcmn6rngaci-python2.7-Pyro4-4.35/lib/python2.7/site-packages/Pyro4/core.py", line 168, in __call__
return self.__send(self.__name, args, kwargs)
File "/nix/store/krqbqlq12v0vshcgd52wrkcmn6rngaci-python2.7-Pyro4-4.35/lib/python2.7/site-packages/Pyro4/core.py", line 395, in _pyroInvoke
raise data
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0303' in position 2: ordinal not in range(128)
+--- This exception occured remotely (Pyro) - Remote traceback:
| Traceback (most recent call last):
# -*- coding: utf-8 -*-
import kivy
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.widget import Widget
from kivy.uix.gridlayout import GridLayout
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.relativelayout import RelativeLayout
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
fabfile for Django
------------------
see http://morethanseven.net/2009/07/27/fabric-django-git-apache-mod_wsgi-virtualenv-and-p/
modified for fabric 0.9/1.0 by Hraban (fiëé visuëlle)
several additions, corrections and customizations, too