Comments (6)
It seems like you're trying to programmatically create the Python Communicator agent? If you can share your model, it would help in troubleshooting.
from anylogic-pypeline.
Thank you for your quick reply.
The model I try to run is the Simple Hospital (AI Tested) from the exemples.
from anylogic-pypeline.
When I try to use python3, I get this error :
Error during model startup:
root.pyCom:
ModuleNotFoundError("No module named 'numpy'")java.lang.RuntimeException:
from anylogic-pypeline.
Ah right, I see what the problem is now. Macs have Python 2 installed by default, so if you initialize the PyCommunicator with the default python
, that's what it uses, and Pypeline does not support Python 2.
Your update fixes to use Python 3 but as the error suggests, you're missing the numpy library, so you'll need to install that (and any other dependencies mentioned by the model). The simplest way that usually works is doing the following in a terminal: python3 -m pip install <library>
(replacing "<library>" with the library name)
from anylogic-pypeline.
Thank you for your reply.
The thing is I already installed this package
(python3 -m pip install numpy
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (1.19.5)).
This is why I don't understand. Does it need a special env to run ?
from anylogic-pypeline.
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (1.19.5))
There might be a weird path issue happening related to you being on a Mac (I admittedly haven't extensively tested Pypeline on it).
Try creating a new model and following the instructions listed on the Wiki's Setup page but configure it to use the "python3" command. Make sure the path it shows is similar to the mentioned one. If it's not, let me know what it is
from anylogic-pypeline.
Related Issues (20)
- Reinforcement learning HOT 5
- fromJson for an int[][] HOT 2
- Agent population to json issue HOT 2
- Pycommunicator not dragging onto the experiment page in anylogic HOT 2
- Reinforcment Learning HOT 1
- Error with setting up python subprocess (Macbook) HOT 2
- Encoding error when trying to save a file on Windows HOT 1
- Python files missing HOT 1
- Issues with Python on Mac HOT 2
- "Run and Runresults are not defined" problem HOT 4
- Issue with reflectiveObjects HOT 2
- No able to open the model examples HOT 1
- Issue with AnyLogic 8.8.2 HOT 1
- Run Python scripts before each experiment run HOT 6
- jsonifier library error HOT 4
- Error during model creation in AnyLogic HOT 3
- Pypeline and AnyLogic Cloud HOT 3
- Unable to load a pickled object HOT 3
- Python and Anylogic Connection 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 anylogic-pypeline.