Today I started to use a fresh Beancount and Fava. I do not really "used" 
both before: it was only a couple of runs. As I remember, the versions was 
'git master' and 1.6, respectively.

But because of problems with pip3 install/upgrade messing global-packages, 
I decided to learn and use python3 venv. I did a detailed cleanup to remove 
all pip3 installed packages and reinstall all cygwin python3-* packages. 
Job done.

--- BEGIN BASH SESSION---
julio@julio-notebook ~/venv
$ python3 -m venv fava

julio@julio-notebook ~/venv
$ source fava/bin/activate
(fava)
julio@julio-notebook ~/venv
$ pip3 install fava
.
.
Installing collected packages: click, ply, backports.functools-lru-cache, 
six, more-itertools, cheroot, pytz, Babel, MarkupSafe, Jinja2, 
itsdangerous, Werkzeug, Flask, Flask-Babel, simplejson, beautifulsoup4, 
idna, chardet, urllib3, certifi, requests, lxml, python-dateutil, bottle, 
python-magic, uritemplate, httplib2, pyasn1, pyasn1-modules, rsa, 
cachetools, google-auth, google-auth-httplib2, google-api-python-client, 
beancount, markdown2, fava
  Running setup.py install for MarkupSafe ... done
  Running setup.py install for simplejson ... done
  Running setup.py install for lxml ... done
  Running setup.py install for httplib2 ... done
Successfully installed Babel-2.6.0 Flask-1.0.2 Flask-Babel-0.11.2 
Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 
backports.functools-lru-cache-1.5 beancount-2.1.2 beautifulsoup4-4.6.3 
bottle-0.12.13 cachetools-2.1.0 certifi-2018.8.13 chardet-3.0.4 
cheroot-6.4.0 click-6.7 fava-1.8 google-api-python-client-1.7.4 
google-auth-1.5.1 google-auth-httplib2-0.0.3 httplib2-0.11.3 idna-2.7 
itsdangerous-0.24 lxml-4.2.4 markdown2-2.3.5 more-itertools-4.3.0 ply-3.11 
pyasn1-0.4.4 pyasn1-modules-0.2.2 python-dateutil-2.7.3 python-magic-0.4.15 
pytz-2018.5 requests-2.19.1 rsa-3.4.2 simplejson-3.16.0 six-1.11.0 
uritemplate-3.0.0 urllib3-1.23
You are using pip version 9.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(fava)
julio@julio-notebook ~/venv
$ bean-check ~/ledgertest/julio.beancount
(fava)
julio@julio-notebook ~/venv
$ fava ~/ledgertest/julio.beancount
Running Fava on http://localhost:5000
--- END BASH SESSION---

In the browser, all I get is ERR_EMPTY_RESPONSE. In the CLI I get:

AttributeError("'BufferedWriter' object has no attribute '_write_lock'",)
Traceback (most recent call last):
  File 
"/home/julio/venv/fava/lib/python3.6/site-packages/cheroot/server.py", line 
1229, in communicate
    req.respond()
  File 
"/home/julio/venv/fava/lib/python3.6/site-packages/cheroot/server.py", line 
1033, in respond
    self.server.gateway(self).respond()
  File "/home/julio/venv/fava/lib/python3.6/site-packages/cheroot/wsgi.py", 
line 147, in respond
    self.write(chunk)
  File "/home/julio/venv/fava/lib/python3.6/site-packages/cheroot/wsgi.py", 
line 226, in write
    self.req.ensure_headers_sent()
  File 
"/home/julio/venv/fava/lib/python3.6/site-packages/cheroot/server.py", line 
1080, in ensure_headers_sent
    self.send_headers()
  File 
"/home/julio/venv/fava/lib/python3.6/site-packages/cheroot/server.py", line 
1165, in send_headers
    self.conn.wfile.write(EMPTY.join(buf))
  File 
"/home/julio/venv/fava/lib/python3.6/site-packages/cheroot/makefile.py", 
line 29, in write
    with self._write_lock:
AttributeError: 'BufferedWriter' object has no attribute '_write_lock'
Keyboard Interrupt: shutting down

Aborted!


I fell like I am missing something simple. Any ideas?

P.S.: I did the same cleanup procedure to ansible (another venv). It worked.

Júlio 

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/c11c7d82-2ab4-41f7-be5c-3ce2c3f2d921%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to