Skip to content
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

baseline.py not executable for me #13

Open
xanderstevenson opened this issue Dec 25, 2022 · 1 comment
Open

baseline.py not executable for me #13

xanderstevenson opened this issue Dec 25, 2022 · 1 comment

Comments

@xanderstevenson
Copy link
Contributor

python3 baseline.py

Traceback (most recent call last):
File "/Users/alexstev/Documents/CiscoDevNet/code/aci-learning-labs-code-samples/apic_fabric_setup/baseline.py", line 11, in
import startup_script
File "/Users/alexstev/Documents/CiscoDevNet/code/aci-learning-labs-code-samples/apic_fabric_setup/startup_script.py", line 3, in
import cobra.mit.access
File "/Users/alexstev/Documents/CiscoDevNet/code/aci-learning-labs-code-samples/ven/lib/python3.9/site-packages/cobra/init.py", line 17, in
from cobra import io
File "/Users/alexstev/Documents/CiscoDevNet/code/aci-learning-labs-code-samples/ven/lib/python3.9/site-packages/cobra/io/init.py", line 4, in
from cobra.io.dict import model_from_dict, model_to_dict
File "/Users/alexstev/Documents/CiscoDevNet/code/aci-learning-labs-code-samples/ven/lib/python3.9/site-packages/cobra/io/dict.py", line 71, in
value: Union[str, np.float, np.bool, Set, Dict]
File "/Users/alexstev/Documents/CiscoDevNet/code/aci-learning-labs-code-samples/ven/lib/python3.9/site-packages/numpy/init.py", line 284, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'

I tried updating numpy but that didn't help

@caitube900610
Copy link

same for me
(ACI) ec2-user:~/environment/aci-learning-labs-code-samples/apic_fabric_setup (master) $ python baseline.py
Traceback (most recent call last):
File "/home/ec2-user/environment/aci-learning-labs-code-samples/apic_fabric_setup/baseline.py", line 11, in
import startup_script
File "/home/ec2-user/environment/aci-learning-labs-code-samples/apic_fabric_setup/startup_script.py", line 3, in
import cobra.mit.access
ModuleNotFoundError: No module named 'cobra'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants