dbbs-lab / bsb-core

The Brain Scaffold Builder
https://bsb.readthedocs.io
GNU General Public License v3.0
21 stars 16 forks source link

Cannot compile network on version `4.0.0b1` #783

Closed francesshei closed 9 months ago

francesshei commented 9 months ago

Running the compile command (even without flags) gives an error:

 > bsb compile

 Traceback (most recent call last):
  File "/home/ubuntu/.pyenv/versions/bsb-env/bin/bsb", line 8, in <module>
    sys.exit(handle_cli())
  File "/home/ubuntu/.pyenv/versions/3.10.8/envs/bsb-env/lib/python3.10/site-packages/bsb/cli/__init__.py", line 10, in handle_cli
    handle_command(sys.argv[1:], exit=True)
  File "/home/ubuntu/.pyenv/versions/3.10.8/envs/bsb-env/lib/python3.10/site-packages/bsb/cli/__init__.py", line 30, in handle_command
    namespace.handler(namespace, dryrun=dryrun)
  File "/home/ubuntu/.pyenv/versions/3.10.8/envs/bsb-env/lib/python3.10/site-packages/bsb/cli/commands/__init__.py", line 97, in execute_handler
    self.handler(context)
  File "/home/ubuntu/.pyenv/versions/3.10.8/envs/bsb-env/lib/python3.10/site-packages/bsb/cli/commands/_commands.py", line 137, in handler
    network.compile(
  File "/home/ubuntu/.pyenv/versions/3.10.8/envs/bsb-env/lib/python3.10/site-packages/bsb/profiling.py", line 157, in decorated
    return f(*args, **kwargs)
  File "/home/ubuntu/.pyenv/versions/3.10.8/envs/bsb-env/lib/python3.10/site-packages/bsb/core.py", line 354, in compile
    raise InputError(
bsb.exceptions.InputError: `clear`, `redo` and `append` are strictly boolean flags. Pass the strategies to run to the skip/only options instead.
Helveg commented 9 months ago

This has been fixed, I'll release a new version soon for you to try

francesshei commented 9 months ago

Is there a fix already out there, maybe in dev mode? I need to finish my scaffold connectivity before the winter break, so I cannot stay idle while the pip fix is out

Helveg commented 9 months ago

Yes, cloning bsb-core and pip install -e-ing it should do

francesshei commented 9 months ago

Should I uninstall the beta version first? Is bsb-core a self-contained package?

Helveg commented 9 months ago

Yes, bsb-core contains all the core framework code of the BSB. The package bsb is now a metadata-only package, which only installs a fixed set of plugins we think users will need.