Lava入门
文档教程:Lava Software Framework — Lava documentation (lava-nc.org)
Github:https://github.com/lava-nc
Getting Started?
Cloning Lava and Running from Source?
Open a python 3 terminal and run based on the OS you are on:
cd $HOME pip install -U pip pip install "poetry>=1.1.13" git clone git@github.com:lava-nc/lava.git cd lava poetry config virtualenvs.in-project true poetry install source .venv/bin/activate pytest
## When running tests if you see 'OSError: [Errno 24] Too many open files'
## consider setting ulimit using `ulimit -n 4096`
## See FAQ for more info: https://github.com/lava-nc/lava/wiki/Frequently-Asked-Questions-(FAQ)#install
FAQ
- Why are unit tests failing with the error
OSError: [Errno 24] Too many open files
?
Lava multiprocessing is trying to open too many file handles and linux is configured to allow less than the file handles lava is trying to open. This can be worked around by setting the number of open file limits or 'ulimit' higher:ulimit -n 4096
- Why are unit tests failing with the error
"ModuleNotFoundError: No module named 'lava.magma'"
?
Please check that lava is installed, or python paths are setup correctly. One way of installing Lava is using pip:pip install .