This is a quite nice project! A significant chalenge for testing it is that the current installation instructions are not very standard for the Python ecosystem and require to compile a number of dependencies.
As far as I could tell, all the dependencies could be installed with conda (into a separate virtual environement) using,
conda config --append channels conda-forge # just once
conda create -n pyjet-env armadillo clangdev numpy networkx graphviz python=2.7
source activate pyjet-env
conda install python-graphviz # for some reason adding this package during the virtualenv
# creation pulls python 3.6 instead of 2.7
cd pyjet/
python setup.py develop
which should work on Linux and MacOS. Maybe these would be simpler?
The first code snippet in the readme is not runnable since it requires the non included simulation_model package..
Then I tried to run the decorator example (it should be from jet.jit import jit BTW) but the compilation failed,
In [2]: from jet.jit import jit
...: import numpy as np
...:
...: @jit((2,), ()) # or @jit, @jit()
...: def calc(a, b):
...: c = a + b
...: return c
...:
...: print(calc(np.array([1, 2]), 2))
...:
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
/tmp/tmpRbEBuV/_ipython_input_2_5e1a62156496___module__calc.cpp:5:21: fatal error: armadillo: No such file or directory
compilation terminated.
An exception has occurred, use %tb to see the full traceback.
SystemExit: error: command 'gcc' failed with exit status 1
/home/rth/.miniconda3/envs/pyjet-env/lib/python2.7/site-packages/IPython/core/interactiveshell.py:2889: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)
I imagine it's not able to find the armadillo headers, which in this case should be in
${HOME}/miniconda3/pkgs/armadillo-7.800.1-blas_openblas_200/ (or some similar folder)?
This is a quite nice project! A significant chalenge for testing it is that the current installation instructions are not very standard for the Python ecosystem and require to compile a number of dependencies.
As far as I could tell, all the dependencies could be installed with conda (into a separate virtual environement) using,
which should work on Linux and MacOS. Maybe these would be simpler?
The first code snippet in the readme is not runnable since it requires the non included
simulation_modelpackage..Then I tried to run the decorator example (it should be
from jet.jit import jitBTW) but the compilation failed,I imagine it's not able to find the armadillo headers, which in this case should be in
${HOME}/miniconda3/pkgs/armadillo-7.800.1-blas_openblas_200/(or some similar folder)?