anyone here using <https://github.com/Kotlin/kotli...
# datascience
e
anyone here using kotlin-numpy? I'm trying to port some python to kotlin, specifically
Copy code
nr_expected_exponents = binom(m + n, n) // nr_expected_exponents: np.ndarray
but if I try
Copy code
binomial(m + n, doubleArrayOf(n.toDouble())
then I get
Cannot run program "python" (in directory "/tmp/nativeKtNumPy2138897567746194273"): error=2, No such file or directory
java.io.IOException: Cannot run program "python" (in directory "/tmp/nativeKtNumPy2138897567746194273"): error=2, No such file or directory
👀 2
i
Programs using kotlin-numpy can work only in environments where Python is available
e
I have
python3
i
Install it globally or run your app in venv
I have 
python3
Do you have an alias python -> python3?
e
no,
python
is unknown
i
You can add link to python3:
Copy code
ln -s /usr/bin/python3 /usr/bin/python
e
elect@5800x:~/Documents/minterpy/tests$ ln -s /usr/bin/python /usr/bin/python3
ln: failed to create symbolic link '/usr/bin/python3': File exists
i
Mistyped, sorry
e
I just saw also this on ubuntu
Copy code
sudo apt install python-is-python3
i
I haven't used this package, but it seems it does the same thing.
e
now I get
i
It seems it can't install ktnumpy because of lack of admin rights
e
is there a TODO list to follow to get ktnumpy up and running?
or is it enough to have the requirements?
i
Try
sudo python3 -m pip install -i <https://pypi.org/simple/> ktnumpy==0.1.5
e
i
It is bug in ktnumpy's
setup.py
I think
e
I'll open an issue then
thanks so far
e
I'll try, thanks
I just wonder if I shall get this way.. I'm trying to port a project from python to kotlin, and this is actually using numpy
can Apache math replaces more or less the whole numpy?
i
@Pavel Gorgulov please help
e
thanks
a
Commons math has quite different ideology (closer to the current KMath than to numpy). It has a wide variety of options, but it does not rely on NDStructures like numpy does
e
ok, then I should have math background as well, which is not what I'm interested in
anyway, issue opened