Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-05-2024, 08:15 AM
|
#31
|
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,923
|
As a start, insert the latest version of your program. (You might want to remove everything that is not necessary to demonstrate the problem.)
|
|
|
07-05-2024, 10:12 AM
|
#32
|
Member
Registered: Jan 2017
Location: London, UK
Distribution: Ubuntu
Posts: 47
Original Poster
Rep:
|
Code:
Python 3.12.3 (main, Apr 10 2024, 05:33:47) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license()" for more information.
= RESTART: /home/peter/python/ai_neural_brain_2/engine_brain_2_11_neurons_group_and_synapses_talking.py
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "<string>", line 1, in <module>
File "/usr/lib/python3.12/idlelib/run.py", line 165, in main
ret = method(*args, **kwargs)
File "/usr/lib/python3.12/idlelib/run.py", line 580, in runcode
exec(code, self.locals)
File "/home/peter/python/ai_neural_brain_2/engine_brain_2_11_neurons_group_and_synapses_talking.py", line 1, in <module>
import brian2 as b2
File "/usr/lib/python3/dist-packages/brian2/__init__.py", line 42, in <module>
from pylab import *
File "/usr/lib/python3/dist-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 113, in <module>
from . import _api, _version, cbook, _docstring, rcsetup
File "/usr/lib/python3/dist-packages/matplotlib/rcsetup.py", line 27, in <module>
from matplotlib.colors import Colormap, is_color_like
File "/usr/lib/python3/dist-packages/matplotlib/colors.py", line 56, in <module>
from matplotlib import _api, _cm, cbook, scale
File "/usr/lib/python3/dist-packages/matplotlib/scale.py", line 22, in <module>
from matplotlib.ticker import (
File "/usr/lib/python3/dist-packages/matplotlib/ticker.py", line 138, in <module>
from matplotlib import transforms as mtransforms
File "/usr/lib/python3/dist-packages/matplotlib/transforms.py", line 49, in <module>
from matplotlib._path import (
Traceback (most recent call last):
File "/home/peter/.local/lib/python3.12/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__
raise ImportError(msg)
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last):
File "/usr/lib/python3.12/idlelib/run.py", line 580, in runcode
exec(code, self.locals)
File "/home/peter/python/ai_neural_brain_2/engine_brain_2_11_neurons_group_and_synapses_talking.py", line 1, in <module>
import brian2 as b2
File "/usr/lib/python3/dist-packages/brian2/__init__.py", line 56, in <module>
import brian2.numpy_ as numpy
File "/usr/lib/python3/dist-packages/brian2/numpy_.py", line 12, in <module>
from brian2.units.unitsafefunctions import *
File "/usr/lib/python3/dist-packages/brian2/units/__init__.py", line 7, in <module>
from .allunits import (
File "/usr/lib/python3/dist-packages/brian2/units/allunits.py", line 13, in <module>
from .fundamentalunits import (
File "/usr/lib/python3/dist-packages/brian2/units/fundamentalunits.py", line 26, in <module>
from numpy import VisibleDeprecationWarning
ImportError: cannot import name 'VisibleDeprecationWarning' from 'numpy' (/home/peter/.local/lib/python3.12/site-packages/numpy/__init__.py)
|
|
|
07-06-2024, 04:32 AM
|
#33
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,636
|
it is the case when the issue is explained and without details we cannot say anything else, just repeat it.
Would be nice use use a consistent setup, what you currently have is useless. I would suggest you to create your own venv and use the official method to install brian: python -m pip install brian2
https://brian2.readthedocs.io/en/sta...n/install.html
|
|
2 members found this post helpful.
|
All times are GMT -5. The time now is 01:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|