Problem Install Fava on Windows 10 (virtualenv)

172 views
Skip to first unread message

opti...@gmail.com

unread,
Oct 11, 2018, 6:16:41 PM10/11/18
to Beancount
Hello. I am attempting to install beancount and fava into a virtualenv on Windows 10.

I was able to successfully get beancount to work with the following:

1. Install python3.7 to C:\python37
2. Open PowerShell
3. mkdir D:\Environments
4. cd D:\Environments
5. virtualenv Finances
6. D:\Environments\Finances\Scripts\activate
7. pip install fava

When I run fava it just returns immediately.

Note:
 - I have tried fava, fava --help, fava --debug, and fava <file>
 - I initially installed beancount and fava from source into the virtualenv using 'pip install -e .' but that exhibited the same behavior as above so I don't think its a source problem.

I also tried
(Finances) D:\Environments\Finances> python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from fava.application import app

which just returns me to the command prompt.
$LASTEXITCODE in all cases is -1073741819

Here is what was installed.

(Finances) D:\Environments\Finances> pip list
Package                       Version
----------------------------- ---------
atomicwrites                  1.2.1
attrs                         18.2.0
Babel                         2.6.0
backports.functools-lru-cache 1.5
beancount                     2.1.3
beautifulsoup4                4.6.3
bottle                        0.12.13
cachetools                    2.1.0
certifi                       2018.8.24
chardet                       3.0.4
cheroot                       6.5.2
Click                         7.0
colorama                      0.4.0
fava                          1.9
Flask                         1.0.2
Flask-Babel                   0.11.2
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
Jinja2                        2.10
lxml                          4.2.5
markdown2                     2.3.6
MarkupSafe                    1.0
more-itertools                4.3.0
pip                           18.1
pluggy                        0.7.1
ply                           3.11
py                            1.6.0
pyasn1                        0.4.4
pyasn1-modules                0.2.2
pyreadline                    2.1
pytest                        3.8.2
python-dateutil               2.7.3
python-magic                  0.4.15
pytz                          2018.5
requests                      2.19.1
rsa                           4.0
setuptools                    40.4.3
simplejson                    3.16.0
six                           1.11.0
uritemplate                   3.0.0
urllib3                       1.23
Werkzeug                      0.14.1
wheel                         0.32.1

Any ideas? Thanks.

Júlio Maranhão

unread,
Oct 14, 2018, 6:34:01 PM10/14/18
to Beancount
On Thursday, 11 October 2018 19:16:41 UTC-3, opti...@gmail.com wrote:
> Hello. I am attempting to install beancount and fava into a virtualenv on Windows 10.

A different case: (Win7 or 10)+cygwin64+python3.6+venv

I tried "pip3 install fava" and "pip3 install --upgrade-strategy only-if-needed fava".

Success install for beancount and fava in any cases. Nevertheless, fava generates an exception when trying to localhost:5000.

Fava is buggy but I don't know if this is the right place for fava issues.

Martin Blais

unread,
Oct 14, 2018, 6:36:15 PM10/14/18
to Beancount
It is.
For all Beancount-related projects this is a perfectly fine venue.


 

--
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 beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/b4f6b48e-5ffa-41fc-ba96-6d54a59ec24c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

opti...@gmail.com

unread,
Dec 25, 2018, 10:48:21 PM12/25/18
to Beancount
I managed to get this to work today with the following steps (in case it helps anyone).

choco install hg -y
choco install git -y
choco install python -y

choco install microsoft-build-tools -y                      # One of these might not be necessary.
choco install microsoft-visual-cpp-build-tools -y

cp 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\rc.exe' 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\'
cp 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\rcdll.dll' 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\'

py -m pip install --upgrade pip setuptools
py -m pip install virtualenv

hg clone https://bitbucket.org/blais/beancount/ Sources\Beancount
git clone https://github.com/beancount/fava Sources\Fava

virtualenv ./.env
.\.env\Scripts\activate

cd Sources
cd Beancount
pip install python-libmagic
pip install python-magic-bin
pip install -e .

cd ..\Fava\
make
pip install -e .
Reply all
Reply to author
Forward
0 new messages