Replies: 1 comment 1 reply
-
Hi, This is caused by breaking changes in numpy 1.26 that is incompatible with the Pytensor codebase. You can downgrade numpy by Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm a beginner to python and I was trying to follow the main tutorial on pycharm and it all seemed fine until I reached this stage
**# Basics
import os
import sys
import time
from matplotlib import pyplot as plt
import arviz as az # Visualization
import pytensor # Graph-based tensor library
import hssm
import hddm_wfpt
import bambi as bmb
pytensor.config.floatX = "float32"
from jax.config import config
config.update("jax_enable_x64", False)**
I got this error
Traceback (most recent call last):
File "C:\Users\minsu\anaconda3\envs\Conda11\Lib\site-packages\pytensor\configparser.py", line 201, in fetch_val_for_key
return self._pytensor_cfg.get(section, option)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\minsu\anaconda3\envs\Conda11\Lib\configparser.py", line 797, in get
d = self._unify_values(section, vars)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\minsu\anaconda3\envs\Conda11\Lib\configparser.py", line 1168, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'blas'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\minsu\anaconda3\envs\Conda11\Lib\site-packages\pytensor\configparser.py", line 317, in get
val_str = cls.fetch_val_for_key(self.name, delete_key=delete_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\minsu\anaconda3\envs\Conda11\Lib\site-packages\pytensor\configparser.py", line 205, in fetch_val_for_key
raise KeyError(key)
KeyError: 'blas__ldflags'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\minsu\PycharmProjects\hssm\main.py", line 31, in
import pytensor # Graph-based tensor library
^^^^^^^^^^^^^^^
File "C:\Users\minsu\anaconda3\envs\Conda11\Lib\site-packages\pytensor_init_.py", line 119, in
from pytensor import scalar, tensor
File "C:\Users\minsu\anaconda3\envs\Conda11\Lib\site-packages\pytensor\tensor_init_.py", line 106, in
from pytensor.tensor import ( # noqa
File "C:\Users\minsu\anaconda3\envs\Conda11\Lib\site-packages\pytensor\tensor\blas.py", line 102, in
from pytensor.tensor.blas_headers import blas_header_text, blas_header_version
File "C:\Users\minsu\anaconda3\envs\Conda11\Lib\site-packages\pytensor\tensor\blas_headers.py", line 1015, in
if not config.blas__ldflags:
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\minsu\anaconda3\envs\Conda11\Lib\site-packages\pytensor\configparser.py", line 321, in get
val_str = self.default()
^^^^^^^^^^^^^^
File "C:\Users\minsu\anaconda3\envs\Conda11\Lib\site-packages\pytensor\link\c\cmodule.py", line 2720, in default_blas_ldflags
blas_info = np.config.get_info("blas_opt")
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'numpy.config' has no attribute 'get_info'
Process finished with exit code 1
Could you please help? Thank you and apologies in advance!
Beta Was this translation helpful? Give feedback.
All reactions