For:
./src/bin/lfortran
I am getting:
-bash: ./src/bin/lfortran: No such file or directory
That I believe, the reason is that at the first step, I installed LFORTRAN from a (Source Tarball)
and then I used this command in the LFORTRAN-0.14.0 directory:
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DWITH_LLVM=yes \
-DWITH_XEUS=yes \
-DCMAKE_PREFIX_PATH="$CONDA_PREFIX" \
-DCMAKE_INSTALL_PREFIX="$CONDA_PREFIX" \
.
cmake --build . -j4 --target install
So now, if I run conda_list_command I get:
(base) rg@JR9I:/mnt/c/Users/RG$ conda list
# packages in environment at /home/rg/miniconda3:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 1_llvm conda-forge
argon2-cffi 21.1.0 py39h3811e60_2 conda-forge
async_generator 1.10 py_0 conda-forge
attrs 21.2.0 pyhd8ed1ab_0 conda-forge
backcall 0.2.0 pyh9f0ad1d_0 conda-forge
backports 1.0 py_2 conda-forge
backports.functools_lru_cache 1.6.4 pyhd8ed1ab_0 conda-forge
blas 1.0 mkl
bleach 4.1.0 pyhd8ed1ab_0 conda-forge
brotlipy 0.7.0 py39h27cfd23_1003
bzip2 1.0.8 h7b6447c_0
c-ares 1.17.1 h27cfd23_0
ca-certificates 2021.10.26 h06a4308_2
certifi 2021.10.8 py39h06a4308_0
cffi 1.14.6 py39h400218f_0
charset-normalizer 2.0.4 pyhd3eb1b0_0
conda 4.11.0 py39h06a4308_0
conda-package-handling 1.7.3 py39h27cfd23_1
cppzmq 4.7.1 hf7cf922_2 conda-forge
cryptography 36.0.0 py39h9ce1e76_0
dbus 1.13.6 he372182_0 conda-forge
debugpy 1.5.1 py39he80948d_0 conda-forge
decorator 5.1.0 pyhd8ed1ab_0 conda-forge
defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge
entrypoints 0.3 pyhd8ed1ab_1003 conda-forge
expat 2.4.2 h9c3ff4c_0 conda-forge
fontconfig 2.13.1 hba837de_1005 conda-forge
freetype 2.10.4 h0708190_1 conda-forge
glib 2.69.1 h5202010_0
gst-plugins-base 1.14.0 hbbd80ab_1
gstreamer 1.14.0 h28cd5cc_2
icu 58.2 he6710b0_3
idna 3.3 pyhd3eb1b0_0
importlib-metadata 4.10.0 py39hf3d152e_0 conda-forge
importlib_resources 5.4.0 pyhd8ed1ab_0 conda-forge
intel-openmp 2021.4.0 h06a4308_3561
ipykernel 6.6.0 py39hef51801_0 conda-forge
ipython 7.30.1 py39hf3d152e_0 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
ipywidgets 7.6.5 pyhd8ed1ab_0 conda-forge
jdatetime 3.7.0 pyhd8ed1ab_0 conda-forge
jedi 0.18.1 py39hf3d152e_0 conda-forge
jinja2 3.0.3 pyhd8ed1ab_0 conda-forge
jpeg 9d h36c2ea0_0 conda-forge
jsonschema 4.3.2 pyhd8ed1ab_0 conda-forge
jupyter 1.0.0 py39hf3d152e_7 conda-forge
jupyter_client 7.1.0 pyhd8ed1ab_0 conda-forge
jupyter_console 6.4.0 pyhd8ed1ab_0 conda-forge
jupyter_core 4.9.1 py39hf3d152e_1 conda-forge
jupyterlab_pygments 0.1.2 pyh9f0ad1d_0 conda-forge
jupyterlab_widgets 1.0.2 pyhd8ed1ab_0 conda-forge
krb5 1.19.2 hac12032_0
ld_impl_linux-64 2.35.1 h7274673_9
libarchive 3.5.2 hccf745f_1 conda-forge
libcurl 7.80.0 h0b77cf5_0
libedit 3.1.20210910 h7f8727e_0
libev 4.33 h7f8727e_1
libffi 3.3 he6710b0_2
libgcc-ng 11.2.0 h1d223b6_11 conda-forge
libiconv 1.16 h516909a_0 conda-forge
libllvm11 11.1.0 h3826bc1_0
libmamba 0.19.1 h3985d26_0 conda-forge
libmambapy 0.19.1 py39h8bfa403_0 conda-forge
libnghttp2 1.46.0 hce63b2e_0
libpng 1.6.37 h21135ba_2 conda-forge
libsodium 1.0.18 h7b6447c_0
libsolv 0.7.19 h780b84a_5 conda-forge
libssh2 1.9.0 h1ba5d50_1
libstdcxx-ng 11.2.0 he4da1e4_11 conda-forge
libuuid 2.32.1 h7f98852_1000 conda-forge
libxcb 1.13 h7f98852_1004 conda-forge
libxml2 2.9.12 h03d6c58_0
llvm 11.1.0 h06a4308_0
llvm-openmp 12.0.1 h4bd325d_1 conda-forge
lz4-c 1.9.3 h295c915_1
lzo 2.10 h7b6447c_2
mamba 0.19.1 py39hfa8f2c8_0 conda-forge
markupsafe 2.0.1 py39h3811e60_1 conda-forge
matplotlib-inline 0.1.3 pyhd8ed1ab_0 conda-forge
mistune 0.8.4 py39h3811e60_1005 conda-forge
mkl 2021.4.0 h06a4308_640
mkl-service 2.4.0 py39h7f8727e_0
mkl_fft 1.3.1 py39hd3c417c_0
mkl_random 1.2.2 py39h51133e4_0
nbclient 0.5.9 pyhd8ed1ab_0 conda-forge
nbconvert 6.3.0 py39hf3d152e_1 conda-forge
nbformat 5.1.3 pyhd8ed1ab_0 conda-forge
ncurses 6.3 h7f8727e_2
nest-asyncio 1.5.4 pyhd8ed1ab_0 conda-forge
nlohmann_json 3.9.1 h9c3ff4c_1 conda-forge
notebook 6.4.6 pyha770c72_0 conda-forge
numpy 1.21.2 py39h20f2e39_0
numpy-base 1.21.2 py39h79a1101_0
openssl 1.1.1l h7f8727e_0
packaging 21.3 pyhd8ed1ab_0 conda-forge
pandoc 2.16.2 h7f98852_0 conda-forge
pandocfilters 1.5.0 pyhd8ed1ab_0 conda-forge
parso 0.8.3 pyhd8ed1ab_0 conda-forge
pcre 8.45 h9c3ff4c_0 conda-forge
pexpect 4.8.0 pyh9f0ad1d_2 conda-forge
pickleshare 0.7.5 py_1003 conda-forge
pip 21.2.4 py39h06a4308_0
pip-autoremove 0.10.0 pypi_0 pypi
prometheus_client 0.12.0 pyhd8ed1ab_0 conda-forge
prompt-toolkit 3.0.24 pyha770c72_0 conda-forge
prompt_toolkit 3.0.24 hd8ed1ab_0 conda-forge
pthread-stubs 0.4 h36c2ea0_1001 conda-forge
ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge
pybind11-abi 4 hd8ed1ab_3 conda-forge
pycosat 0.6.3 py39h27cfd23_0
pycparser 2.21 pyhd3eb1b0_0
pygments 2.10.0 pyhd8ed1ab_0 conda-forge
pyopenssl 21.0.0 pyhd3eb1b0_1
pyparsing 3.0.6 pyhd8ed1ab_0 conda-forge
pyqt 5.9.2 py39h2531618_6
pyrsistent 0.18.0 py39h3811e60_0 conda-forge
pysocks 1.7.1 py39h06a4308_0
python 3.9.7 h12debd9_1
python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge
python_abi 3.9 2_cp39 conda-forge
pyzmq 22.3.0 py39h37b5a0c_1 conda-forge
qt 5.9.7 h5867ecd_1
qtconsole 5.2.2 pyhd8ed1ab_0 conda-forge
qtpy 2.0.0 pyhd8ed1ab_0 conda-forge
readline 8.1 h27cfd23_0
reproc 14.2.3 h7f98852_0 conda-forge
reproc-cpp 14.2.3 h9c3ff4c_0 conda-forge
requests 2.26.0 pyhd3eb1b0_0
ruamel_yaml 0.15.100 py39h27cfd23_0
send2trash 1.8.0 pyhd8ed1ab_0 conda-forge
setuptools 58.0.4 py39h06a4308_0
sip 4.19.13 py39h2531618_0
six 1.16.0 pyhd3eb1b0_0
sqlite 3.36.0 hc218d9a_0
terminado 0.12.1 py39hf3d152e_1 conda-forge
testpath 0.5.0 pyhd8ed1ab_0 conda-forge
tk 8.6.11 h1ccaba5_0
tornado 6.1 py39h3811e60_2 conda-forge
tqdm 4.62.3 pyhd3eb1b0_1
traitlets 5.1.1 pyhd8ed1ab_0 conda-forge
tzdata 2021e hda174b7_0
urllib3 1.26.7 pyhd3eb1b0_0
wcwidth 0.2.5 pyh9f0ad1d_2 conda-forge
webencodings 0.5.1 py_1 conda-forge
wheel 0.37.0 pyhd3eb1b0_1
widgetsnbextension 3.5.2 py39hf3d152e_1 conda-forge
xeus 1.0.1 h7d0c39e_2 conda-forge
xorg-libxau 1.0.9 h7f98852_0 conda-forge
xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge
xtl 0.7.4 h4bd325d_0 conda-forge
xz 5.2.5 h7b6447c_0
yaml 0.2.5 h7b6447c_0
yaml-cpp 0.6.3 he1b5a44_4 conda-forge
zeromq 4.3.4 h2531618_0
zipp 3.6.0 pyhd8ed1ab_0 conda-forge
zlib 1.2.11 h7f8727e_4
zstd 1.5.0 ha4553b6_1
and I can’t find LFORTRAN among packages. Meanwhile by running:
jupyter kernelspec list --json
I have:
{
"kernelspecs": {
"python3": {
"resource_dir": "/home/rg/.local/share/jupyter/kernels/python3",
"spec": {
"argv": [
"python",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"env": {},
"display_name": "Python 3 (ipykernel)",
"language": "python",
"interrupt_mode": "signal",
"metadata": {
"debugger": true
}
}
},
"fortran": {
"resource_dir": "/home/rg/miniconda3/share/jupyter/kernels/fortran",
"spec": {
"argv": [
"/home/rg/miniconda3/bin/lfortran",
"kernel",
"-f",
"{connection_file}"
],
"env": {},
"display_name": "Fortran",
"language": "fortran",
"interrupt_mode": "signal",
"metadata": {}
}
}
}
and by:
jupyter console --kernel=fortran
I have:
jupyter console --kernel=fortran
/home/rg/miniconda3/bin/lfortran: /home/rg/miniconda3/lib/libtinfo.so.6: no version information available (required by /home/rg/miniconda3/bin/lfortran)
Run with XEUS 1.0.1
Jupyter console 6.4.0
LFortran 0.14.0
Jupyter kernel for Fortran
In [1]:
and same error:
In [1]: print*,('reza'/home/rg/miniconda3/lib/python3.9/site-packages/jupyter_console/ptshell.py:852: RuntimeWarning: coroutine 'ZMQSocketChannel.msg_ready' was never awaited
while self.client.iopub_channel.msg_ready():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Unhandled exception in event loop:
File "/home/rg/miniconda3/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/home/rg/miniconda3/lib/python3.9/site-packages/prompt_toolkit/input/vt100.py", line 170, in callback_wrapper
callback()
File "/home/rg/miniconda3/lib/python3.9/site-packages/prompt_toolkit/application/application.py", line 690, in read_from_input
self.key_processor.process_keys()
File "/home/rg/miniconda3/lib/python3.9/site-packages/prompt_toolkit/key_binding/key_processor.py", line 271, in process_keys
self._process_coroutine.send(key_press)
File "/home/rg/miniconda3/lib/python3.9/site-packages/prompt_toolkit/key_binding/key_processor.py", line 186, in _process
self._call_handler(matches[-1], key_sequence=buffer[:])
File "/home/rg/miniconda3/lib/python3.9/site-packages/prompt_toolkit/key_binding/key_processor.py", line 321, in _call_handler
handler.call(event)
File "/home/rg/miniconda3/lib/python3.9/site-packages/prompt_toolkit/key_binding/key_bindings.py", line 124, in call
result = self.handler(event)
File "/home/rg/miniconda3/lib/python3.9/site-packages/jupyter_console/ptshell.py", line 475, in _
self.handle_iopub()
File "/home/rg/miniconda3/lib/python3.9/site-packages/jupyter_console/ptshell.py", line 854, in handle_iopub
msg_type = sub_msg['header']['msg_type']
Exception 'coroutine' object is not subscriptable
Press ENTER to continue...
and any command leads to a terminal crash.
So I think everything is corrupted now.