Comments (6)
Hi Shuwan, I have never seen such an error before. What system are you using (e.g., Python version, TensorFlow version, etc) and did you install bayesflow via pip?
--Stefan
from bayesflow.
Hi,
I am using the latest Python (3.11.5) and I never installed TensorFlow before installing Bayesflow. Yes, I installed the bayesflow via pip in the terminal.
Thanks!
Shuwan
from bayesflow.
It should have automatically been installed as part of the dependencies. Can you try with Python 3.10 following these instructions:
https://github.com/stefanradev93/BayesFlow/blob/master/INSTALL.rst
?
Also, do you have Windows or Linux/Mac?
from bayesflow.
Yes, I can reinstall Python 3.10, and I have Windows.
from bayesflow.
Let me know how this goes.
from bayesflow.
Hi,
I installed bayesflow via pip in Python 3.10.1, and it really seems downloaded all the packages and dependencies.
However, when I import bayesflow at the editor, it generates the following error:
C:\Users\swtyb\PycharmProjects\pythonProject4\venv\Scripts\python.exe C:\Users\swtyb\PycharmProjects\pythonProject\draft\example.py
Traceback (most recent call last):
File "C:\Users\swtyb\PycharmProjects\pythonProject\draft\example.py", line 2, in
import bayesflow as bf
File "C:\Users\swtyb\PycharmProjects\pythonProject4\venv\lib\site-packages\bayesflow_init_.py", line 25, in
from bayesflow import amortizers, default_settings, diagnostics, losses, networks, trainers, sensitivity
File "C:\Users\swtyb\PycharmProjects\pythonProject4\venv\lib\site-packages\bayesflow\amortizers.py", line 30, in
import tensorflow_probability as tfp
File "C:\Users\swtyb\PycharmProjects\pythonProject4\venv\lib\site-packages\tensorflow_probability_init_.py", line 20, in
from tensorflow_probability import substrates
File "C:\Users\swtyb\PycharmProjects\pythonProject4\venv\lib\site-packages\tensorflow_probability\substrates_init_.py", line 17, in
from tensorflow_probability.python.internal import all_util
File "C:\Users\swtyb\PycharmProjects\pythonProject4\venv\lib\site-packages\tensorflow_probability\python_init_.py", line 138, in
dir(globals()[pkg_name]) # Forces loading the package from its lazy loader.
File "C:\Users\swtyb\PycharmProjects\pythonProject4\venv\lib\site-packages\tensorflow_probability\python\internal\lazy_loader.py", line 57, in dir
module = self.load()
File "C:\Users\swtyb\PycharmProjects\pythonProject4\venv\lib\site-packages\tensorflow_probability\python\internal\lazy_loader.py", line 40, in load
module = importlib.import_module(self.name)
File "C:\Users\swtyb\AppData\Local\Programs\Python\Python310\lib\importlib_init.py", line 126, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\swtyb\PycharmProjects\pythonProject4\venv\lib\site-packages\tensorflow_probability\python\experimental_init.py", line 31, in
from tensorflow_probability.python.experimental import bayesopt
File "C:\Users\swtyb\PycharmProjects\pythonProject4\venv\lib\site-packages\tensorflow_probability\python\experimental\bayesopt_init.py", line 17, in
from tensorflow_probability.python.experimental.bayesopt import acquisition
File "C:\Users\swtyb\PycharmProjects\pythonProject4\venv\lib\site-packages\tensorflow_probability\python\experimental\bayesopt\acquisition_init.py", line 17, in
from tensorflow_probability.python.experimental.bayesopt.acquisition.acquisition_function import AcquisitionFunction
File "C:\Users\swtyb\PycharmProjects\pythonProject4\venv\lib\site-packages\tensorflow_probability\python\experimental\bayesopt\acquisition\acquisition_function.py", line 22, in
from tensorflow_probability.python.internal import prefer_static as ps
File "C:\Users\swtyb\PycharmProjects\pythonProject4\venv\lib\site-packages\tensorflow_probability\python\internal\prefer_static.py", line 361, in
ones_like = _copy_docstring(tf.ones_like, _ones_like)
File "C:\Users\swtyb\PycharmProjects\pythonProject4\venv\lib\site-packages\tensorflow_probability\python\internal\prefer_static.py", line 84, in _copy_docstring
raise ValueError(
ValueError: Arg specs do not match: original=FullArgSpec(args=['input', 'dtype', 'name', 'layout'], varargs=None, varkw=None, defaults=(None, None, None), kwonlyargs=[], kwonlydefaults=None, annotations={}), new=FullArgSpec(args=['input', 'dtype', 'name'], varargs=None, varkw=None, defaults=(None, None), kwonlyargs=[], kwonlydefaults=None, annotations={}), fn=<function ones_like_v2 at 0x000002571FA51CF0>
Process finished with exit code 1
I really don't know what happened here, could you take a look?
Thank you so much!
Best,
Shuwan
from bayesflow.
Related Issues (20)
- Change Support / Acknowledgements HOT 1
- Publish as conda installable package
- Parallelize Test Workflows HOT 2
- `test_time_series_transformer` occasionally fails
- Make heavier use of `pytest.fixture`
- Diagnostic plots do not do so well with simple (one-parameter) models HOT 2
- Remove code duplication from diagnostics module HOT 1
- Add tests for model comparison
- Links in the table of contents of the example notebooks do not work
- Dependency problems HOT 1
- Backport dependency fixes to releases/master HOT 1
- pip install v1.1.5 fails on Mac (M1) HOT 1
- OOM after ~ 50 epochs HOT 10
- bayesflow breaks existing tensorflow installation HOT 5
- Affine coupling flows underperforming with current settings on streamlined-backend
- OfflineDataset should not require both batch_size and batches_per_epoch
- Loss not shown in keras output HOT 4
- streamlined-backend DeepSet
- Implement LSTMNet for time series embedding
- InvertibleNetwork error (Input 0 of layer "dense" is incompatible with the layer) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bayesflow.