Description of problem
Hi everyone,
I am trying to use brian2cuda to speed up computations in my project in which I am also using Dendrify (Dendrify 2.1.2). The problem is that Dendrify seems to require version brian2==2.5.4, but brian2cuda requires version brian2==2.6.0. Is there a way to install brian2cuda so that it is compatible with brian2 version 2.5.4?
What you have already tried
I tried to install brian2 after installing brian2cuda (first installed brian2cuda with pip install brian2cuda, then uninstalled brian2 with pip and then did pip install brian2==2.5.4)
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
brian2cuda 1.0a4 requires brian2==2.6.0, but you have brian2 2.5.4 which is incompatible.
When I install Dendrify (pip install dendrify --no-deps) and then install brian2cuda using ‘python -m pip install brian2cuda’, I get the following error:
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
dendrify 2.1.2 requires brian2==2.5.4, but you have brian2 2.6.0 which is incompatible.
I also tried the following:
- installed Dendrify with no dependencies pip install dendrify --no-deps
- installed Brian2 version: pip install brian2==2.5.4
- then installed brian2cuda with no dependencies with ‘pip install --no-deps brian2cuda’
but when I run brian2cuda.example_run(), I get:
Traceback (most recent call last):
File “”, line 1, in
File “/home/rad216/miniconda3/envs/test_brian2cuda/lib/python3.12/site-packages/brian2cuda/init.py”, line 72, in example_run
run(1 * ms)
File “/home/rad216/miniconda3/envs/test_brian2cuda/lib/python3.12/site-packages/brian2/units/fundamentalunits.py”, line 2780, in new_f
result = f(*args, **kwds)
^^^^^^^^^^^^^^^^
File “/home/rad216/miniconda3/envs/test_brian2cuda/lib/python3.12/site-packages/brian2/core/magic.py”, line 407, in run
return magic_network.run(
^^^^^^^^^^^^^^^^^^
File “/home/rad216/miniconda3/envs/test_brian2cuda/lib/python3.12/site-packages/brian2/core/magic.py”, line 248, in run
Network.run(
File “/home/rad216/miniconda3/envs/test_brian2cuda/lib/python3.12/site-packages/brian2/core/base.py”, line 333, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/rad216/miniconda3/envs/test_brian2cuda/lib/python3.12/site-packages/brian2cuda/device.py”, line 1704, in network_run
if not self.run_args_applied:
^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘CUDAStandaloneDevice’ object has no attribute ‘run_args_applied’
which tells me that the brian2 version is not compatible with the brian2cuda version.
Any idea how I can resolve this conflict and use brian2cuda with Brian2 version 2.5.4?
Thank you in advance!