Comments (4)
Original comment by Chris Mutel (Bitbucket: cmutel, GitHub: cmutel).
There have been problems with multiprocessing in Windows before, and I thought that it defaulted to not using it on Windows, but I don't see this code anymore.
For the time being, you can do this:
#!python
from bw2io.extractors.ecospold2 import Ecospold2DataExtractor
class FixedExtractor:
@classmethod
def extract(cls, dirpath, db_name):
return Ecospold2DataExtractor.extract(dirpath, db_name, use_mp=False)
ei = SingleOutputEcospold2Importer(
"/Users/cmutel/Sync/3.5/cutoff/datasets",
"something",
extractor=FixedExtractor
)
from brightway2.
Original comment by Benjamin W. Portner (Bitbucket: pommespapst, GitHub: pommespapst).
That fixed it. Thank you very much!
from brightway2.
Original comment by Adrian Haas (Bitbucket: haasad, GitHub: haasad).
It did some quick checks and it appears that the problem is specific to PyCharm on Windows. From the console/ipython/jupyter windows uses multiprocessing successfully (all cores busy). PyCharm on linux also works fine.
from brightway2.
Original comment by Chris Mutel (Bitbucket: cmutel, GitHub: cmutel).
Should be fixed in https://bitbucket.org/cmutel/brightway2-io/commits/5ad0c27a9616eceeb9dceeb51afe1bfcbb027b1d. We can't stop PyCharm from running Python in a certain way, but we can catch the error and make it possible to turn multiprocessing off.
from brightway2.
Related Issues (20)
- Unable to clone repository due to invalid path (possibly forbidden character (?) in file name)
- Brightway tutorial not working on fresh install HOT 3
- Unable to create new project. "IntegrityError: NOT NULL constraint failed: projectdataset.full_hash" HOT 6
- numpy.bool is deprecated and is removed from numpy-1.24.x HOT 1
- Trying to create activity parameters through imports of databases
- Biosphere exchange in- and outputs wrong way around with ecoinvent 3.9.1? HOT 1
- Importing ILCD-EPDs from Ökobaudat
- Export inventory results from uncertainty analysis
- Top activities not working for upstream exploration of hotspots HOT 1
- LeastSquaresLCA throwing NonsquareTechnoSphere
- Wrong units for ReCiPe endpoint categories
- I cannot install brightway 2 with anaconda HOT 3
- how to use brightway 2 to import lcia file. {http://www.EcoInvent.org/EcoSpold02}impactIndicator raise ValueError ValueError
- cannot install the brightway 2 in anaconda
- Cannot import brightway2 in Jupyter notebook HOT 3
- ExcelImporter write_database issue
- Trace back error
- Import of cumulative LCIA results
- Importing Agri-footprint database HOT 1
- Failed due to unknown object issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brightway2.