Hello,
Brightway2 looks like a very interesting LCA software, but unfortunately, I have a lot of trouble setting it up.
I am using it on Windows 7 and Python(x,y) 2.7.9.
I managed to start the web UI (instructions to use pip behind a proxy are surprisingly difficult to find), and so I started the first Tutorial. But I get an error when running bw2setup(). Here is the output :
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
<ipython-input-7-f8943a64a1bd> in <module>()
1 print "Downloading some data..."
----> 2 bw2setup()
C:\Python27\lib\site-packages\bw2data\utils.pyc in bw2setup()
387 # config.is_temp_dir = False
388 download_biosphere()
--> 389 download_methods()
390
391
C:\Python27\lib\site-packages\bw2data\io\bw2package.pyc in download_methods()
212 logger.info("Downloading methods package: %.4g" % (time() - start))
213 start = time()
--> 214 BW2Package.import_file(filepath)
215 logger.info("Importing methods package: %.4g" % (time() - start))
C:\Python27\lib\site-packages\bw2data\io\bw2package.pyc in import_file(cls, filepath, whitelist)
191 retv = cls._create_obj(loaded)
192 else:
--> 193 retv = [cls._create_obj(o) for o in loaded]
194 config.p['use_cache'] = use_cache
195 return retv
C:\Python27\lib\site-packages\bw2data\io\bw2package.pyc in _create_obj(cls, data)
98 instance.register(**data['metadata'])
99 else:
--> 100 instance.backup()
101 instance.metadata[data['name']] = data['metadata']
102
C:\Python27\lib\site-packages\bw2data\data_store.pyc in backup(self)
126 """
127 from .io import BW2Package
--> 128 return BW2Package.export_obj(self)
129
130 def write(self, data):
C:\Python27\lib\site-packages\bw2data\io\bw2package.pyc in export_obj(cls, obj, filename, folder)
150 filename + u".bw2package"
151 )
--> 152 cls._write_file(filepath, cls._prepare_obj(obj))
153 return filepath
154
C:\Python27\lib\site-packages\bw2data\io\bw2package.pyc in _prepare_obj(cls, obj)
81 'name': obj.name,
82 'class': cls._get_class_metadata(obj),
---> 83 'data': obj.load()
84 }
85
C:\Python27\lib\site-packages\bw2data\data_store.pyc in load(self)
90 u"intermediate",
91 self.filename + u".pickle"
---> 92 ), "rb"))
93 except OSError:
94 raise MissingIntermediateData(u"Can't load intermediate data")
IOError: [Errno 2] No such file or directory: u'C:/bw2\\intermediate\\cumulative-exergy-demandwr.16ba0c8b1b68b570c5de6f273a6e606c.pickle'
And the following command block in Tutorial 1 output :
Installed databases: [u'biosphere']
Biosphere metadata: {u'from format': [u'Handmade', -1], u'version': 55, u'number': 5449, u'depends': [], u'filename': u'biosphere.57b2c55dba95bfa2b6ba74418898df60.50'}
A random 'key': (u'biosphere', u'6a1a400d5ae8a4bea54a5045dbe4a895')
And later on :
doesn't show any result...
So I cannot use Brightway2... Anything I can do to solve this ?