start failure

28 views
Skip to first unread message

e-letter

unread,
Jan 28, 2014, 7:29:47 PM1/28/14
to brigh...@googlegroups.com
Readers,

Discovered that unable to use python27, so used brightway2 with
python26 via activepython web site. Received command terminal error
starting the file 'bw2-web.py':

$ ./bw2-web.py
/usr/local/activepython/lib/python2.7/site-packages/bw2data/_config.py:53:
UserWarning:
Your changes will not be saved!
Set a writeable directory!
Current data directory is:
...
u"\t%s" % self.dir, UserWarning
Traceback (most recent call last):
File "./bw2-web.py", line 18, in <module>
from bw2ui.web import bw2webapp
File "/usr/local/activepython/lib/python2.7/site-packages/bw2ui/__init__.py",
line 1, in <module>
from controller import Controller
File "/usr/local/activepython/lib/python2.7/site-packages/bw2ui/controller.py",
line 3, in <module>
from brightway2 import databases, methods, Database, config, reset_meta
File "/usr/local/activepython/lib/python2.7/site-packages/brightway2/__init__.py",
line 2, in <module>
from bw2data import *
File "/usr/local/activepython/lib/python2.7/site-packages/bw2data/__init__.py",
line 8, in <module>
from database import Database
File "/usr/local/activepython/lib/python2.7/site-packages/bw2data/database.py",
line 6, in <module>
from .utils import natural_sort, MAX_INT_32, TYPE_DICTIONARY
File "/usr/local/activepython/lib/python2.7/site-packages/bw2data/utils.py",
line 8, in <module>
import requests
ImportError: No module named requests

Christopher Mutel

unread,
Jan 29, 2014, 5:39:02 AM1/29/14
to brigh...@googlegroups.com
Can you post with a real name? This "e-letter" thing is getting flagged by my spam filter.

On Wednesday, January 29, 2014 1:29:47 AM UTC+1, e-letter wrote:
Readers,

Discovered that unable to use python27

You will have to explain this a bit more. Python 2.7 was released in 2010, and it is certainly installable on almost every computer and CPU made today. Brightway2 is not compatible with 2.6 (it uses 2.7 features).
This says that the package `requests` wasn't installed. How did you install Brightway2? Requests should be a requirement for Brightway2, and should be installed automatically. 

e-letter

unread,
Jan 29, 2014, 7:14:32 PM1/29/14
to brigh...@googlegroups.com
On 29/01/2014, brigh...@googlegroups.com <brigh...@googlegroups.com> wrote:
>
>> Discovered that unable to use python27
>
>
> You will have to explain this a bit more. Python 2.7 was released in 2010,
> and it is certainly installable on almost every computer and CPU made
> today. Brightway2 is not compatible with 2.6 (it uses 2.7 features).
>

It caused many conflicts with existing packages (gedit, gnumeric,
file-roller, etc.) and therefore had to force a removal and revert to
python26

>
>> line 8, in <module>
>> import requests
>> ImportError: No module named requests
>
> This says that the package `requests` wasn't installed. How did you install
>
> Brightway2? Requests should be a requirement for Brightway2, and should be
> installed automatically.
>

Used the instructions in the web site activepython, which showed a
version compatible with python26 ash installed 'requests'.
Reply all
Reply to author
Forward
0 new messages