-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error when importing the bayesflow #104
Comments
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? |
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! |
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? |
Yes, I can reinstall Python 3.10, and I have Windows. |
Let me know how this goes. |
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 Process finished with exit code 1 I really don't know what happened here, could you take a look? Thank you so much! |
Hi Stefan et al.,
I am so impressed by the bayesflow work. However, when I try to implement it myself, I got an error when importing the bayesflow.
I have tried with Pycharm/Anaconda, they gave me the same error message:
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 0x000002D9E1F41A80>
Do you know what happened and how to solve this?
Thank you so much!
Best regards,
Shuwan
The text was updated successfully, but these errors were encountered: