Problem with GromacsVersionError: Gromacs version should be 5.1.2 or newer 0 detected

Hi,
I’m running the tutorial: Protein MD Setup tutorial using BioExcel Building Blocks (biobb).
At the cell:

Create system topology

Import module

from biobb_gromacs.gromacs.pdb2gmx import pdb2gmx

Create inputs/outputs

output_pdb2gmx_gro = pdbCode+‘_pdb2gmx.gro’
output_pdb2gmx_top_zip = pdbCode+‘_pdb2gmx_top.zip’

Create and launch bb

pdb2gmx(input_pdb_path=fixed_pdb,
output_gro_path=output_pdb2gmx_gro,
output_top_zip_path=output_pdb2gmx_top_zip)

I receive the following:
2023-09-25 12:31:20,113 [MainThread ] [INFO ] Executing biobb_gromacs.gromacs.pdb2gmx Version: 4.1.0
2023-09-25 12:31:20,115 [MainThread ] [INFO ] Copy: 1AKI_fixed.pdb to /home/xxxx/biobb_groamacs_tutorial/dummy/06b4bbf9-bdfc-475f-bc97-708bfe2e9a12

GromacsVersionError Traceback (most recent call last)
Cell In[7], line 10
7 output_pdb2gmx_top_zip = pdbCode+‘_pdb2gmx_top.zip’
9 # Create and launch bb
—> 10 pdb2gmx(input_pdb_path=fixed_pdb,
11 output_gro_path=output_pdb2gmx_gro,
12 output_top_zip_path=output_pdb2gmx_top_zip)

File ~/.local/lib/python3.10/site-packages/biobb_gromacs/gromacs/pdb2gmx.py:172, in pdb2gmx(input_pdb_path, output_gro_path, output_top_zip_path, properties, **kwargs)
165 def pdb2gmx(input_pdb_path: str, output_gro_path: str, output_top_zip_path: str,
166 properties: dict = None, **kwargs) → int:
167 “”“Create :class:Pdb2gmx <gromacs.pdb2gmx.Pdb2gmx> class and
168 execute the :meth:launch() <gromacs.pdb2gmx.Pdb2gmx.launch> method.”“”
170 return Pdb2gmx(input_pdb_path=input_pdb_path, output_gro_path=output_gro_path,
171 output_top_zip_path=output_top_zip_path, properties=properties,
→ 172 **kwargs).launch()

File ~/.local/lib/python3.10/site-packages/biobb_common/tools/file_utils.py:362, in launchlogger..wrapper_log(*args, **kwargs)
354 @functools.wraps(func)
355 def wrapper_log(*args, **kwargs):
356 args[0].out_log, args[0].err_log = get_logs(
357 path=args[0].path,
358 prefix=args[0].prefix,
359 step=args[0].step,
360 can_write_console=args[0].can_write_console_log,
361 )
→ 362 value = func(*args, **kwargs)
363 handlers = args[0].out_log.handlers[
364 :
365 ] # Create a copy [:] of the handler list to be able to modify it while we are iterating
366 for handler in handlers:

File ~/.local/lib/python3.10/site-packages/biobb_gromacs/gromacs/pdb2gmx.py:140, in Pdb2gmx.launch(self)
138 if not self.container_path:
139 if self.gmx_version < 512:
→ 140 raise GromacsVersionError(“Gromacs version should be 5.1.2 or newer %d detected” % self.gmx_version)
141 fu.log(“GROMACS %s %d version detected” % (self.class.name, self.gmx_version), self.out_log)
143 # Run Biobb block

GromacsVersionError: Gromacs version should be 5.1.2 or newer 0 detected

I use Ubuntu 22.04 and from the shell:
$ pip3 list | grep biobb
biobb-analysis 4.1.0
biobb-chemistry 4.1.0
biobb-common 4.1.0
biobb-gromacs 4.1.0
biobb-io 4.1.0
biobb-model 4.1.0
biobb-pmx 4.1.0
biobb-structure-checking 3.13.4
biobb-structure-utils 4.1.0
biobb-vs 4.1.1
pmx-biobb 4.1.3

$ which gmx
/usr/local/gromacs/bin/gmx

$ gmx
:slight_smile: GROMACS - gmx, 2023.2 (-:

Executable: /usr/local/gromacs/bin/gmx
Data prefix: /usr/local/gromacs
Working dir: /home/xxxx
Command line:
gmx

SYNOPSIS

gmx [-[no]h] [-[no]quiet] [-[no]version] [-[no]copyright] [-nice ]
[-[no]backup]

OPTIONS

Other options:

-[no]h (no)
Print help and quit
-[no]quiet (no)
Do not print common startup info or quotes
-[no]version (no)
Print extended version information and quit
-[no]copyright (no)
Print copyright information on startup
-nice (19)
Set the nicelevel (default depends on command)
-[no]backup (yes)
Write backups if output files exist

Additional help is available on the following topics:
commands List of available commands
selections Selection syntax and usage
To access the help, use ‘gmx help ’.
For help on a command, use ‘gmx help ’.

Where I’m wrong?

Thanks.
Saverio

Hi @xave ,

I see that you are using GROMACS 2023.2. Sometimes, GROMACS changes the way to show the version from one version to another and it gives this error in the BioBB’s. Besides, the biobb_gromacs has GROMACS 2022.2 as dependency, so I recommend to use this version.

It seems that you have installed the BioBB’s through pip. If the problem persists, please try to execute this workflow via conda (using the GROMACS installed in the environment) and tell us if it works.

Hi,
thanks for the reply.
The first day that I’ve installed GROMACS I have used the notebook many times
with different values for some options without any problems.
Then the reported problem in the following day.
Also if I collect the instructions of the notebook in a python3 script there is no error during its execution with the GROMACS 2023.2 version and the pip installation of the biobb-* packages.
It is something related to jupyter notebook execution?
If you want I can try the workflow via conda.

Thanks.

Saverio

Hi,
I just tried to run the notebook with jupyter lab instead of jupyter notebook.
I have problems with the cell using nglview ( Error displaying widget ) but
all is fine with the remaining cells.
The problem is related to the jupyter notebook execution?

Thanks.
Saverio

Hi,
Which OS and conda version are you using? We have noticed that with ubuntu and old versions of conda (ie 4.x), the ipywidgets version must be forced to a version lower than 8 (in our tests the exact version is 7.6.6). Usually, with this workaround, the problem with nglview is solved (in case you have ubuntu and an old version of conda).

As for the problem you had before, the BioBB workflows (jupyter notebook version) have been created and tested with conda environments. So I strongly recommend you to execute them through conda / miniconda / mamba.

Best.

Hi,
can you give me the link to the instructions to install with conda?

I have used the following but receiving error.

$ conda create --name biobb_gromacs
Collecting package metadata (current_repodata.json): done
Solving environment: done

Package Plan

environment location: /home/xxxx/miniconda3/envs/biobb_gromacs

Proceed ([y]/n)?

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

To activate this environment, use

$ conda activate biobb_gromacs

To deactivate an active environment, use

$ conda deactivate

$ conda activate biobb_gromacs
(biobb_gromacs) $ conda install -c bioconda “biobb_gromacs>=4.1.0”
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed

ResolvePackageNotFound:

  • gromacs==2022.2

Thanks.

Saverio

Sure:

git clone https://github.com/bioexcel/biobb_wf_md_setup.git
cd biobb_wf_md_setup
conda env create -f conda_env/environment.yml
conda activate biobb_GMX_MDsetup_tutorial
jupyter-notebook biobb_wf_md_setup/notebooks/biobb_MDsetup_tutorial.ipynb

Be sure to have a recent conda version installed in your computer.

Hi,
thanks for the reply.
For the last line I receive:

(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ jupyter-notebook biobb_wf_md_setup/notebooks/biobb_MDsetup_tutorial.ipynb
Traceback (most recent call last):
File “/home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial/bin/jupyter-notebook”, line 6, in
from notebook.app import main
ModuleNotFoundError: No module named ‘notebook.app’

What I can do?

~$ conda -V
conda 23.7.4

~$ uname -a && cat /etc/*release
Linux xxxx-X399-DESIGNARE-EX 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION=“Ubuntu 22.04.3 LTS”
PRETTY_NAME=“Ubuntu 22.04.3 LTS”
NAME=“Ubuntu”
VERSION_ID=“22.04”
VERSION=“22.04.3 LTS (Jammy Jellyfish)”
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL=“https://www.ubuntu.com/
SUPPORT_URL=“https://help.ubuntu.com/
BUG_REPORT_URL=“https://bugs.launchpad.net/ubuntu/
PRIVACY_POLICY_URL=“Data privacy | Ubuntu
UBUNTU_CODENAME=jammy

Thanks.

Saverio

Could you please paste the outputs of the following commands so that we can explore what is going on?

which jupyter-notebook

conda list

Thanks

Hi,
here the output:

(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ which jupyter-notebook
/home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial/bin/jupyter-notebook
(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ conda list
# packages in environment at /home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
alsa-lib 1.2.8 h166bdaf_0 conda-forge
ambertools 23.0 py310he275f01_1 conda-forge
amberutils 21.0 pypi_0 pypi
anyio 4.0.0 pyhd8ed1ab_0 conda-forge
argon2-cffi 23.1.0 pyhd8ed1ab_0 conda-forge
argon2-cffi-bindings 21.2.0 py310h2372a71_4 conda-forge
arpack 3.7.0 hdefa2d7_2 conda-forge
arrow 1.2.3 pyhd8ed1ab_0 conda-forge
asttokens 2.4.0 pyhd8ed1ab_0 conda-forge
async-lru 2.0.4 pyhd8ed1ab_0 conda-forge
attr 2.5.1 h166bdaf_1 conda-forge
attrs 23.1.0 pyh71513ae_1 conda-forge
babel 2.12.1 pyhd8ed1ab_1 conda-forge
backcall 0.2.0 pyh9f0ad1d_0 conda-forge
backports 1.0 pyhd8ed1ab_3 conda-forge
backports.functools_lru_cache 1.6.5 pyhd8ed1ab_0 conda-forge
beautifulsoup4 4.12.2 pyha770c72_0 conda-forge
biobb_analysis 4.1.0 pyhdfd78af_0 bioconda
biobb_common 4.1.0 pyhdfd78af_1 bioconda
biobb_gromacs 4.1.0 pyhdfd78af_0 bioconda
biobb_io 4.1.0 pyhdfd78af_0 bioconda
biobb_model 4.1.0 pyhdfd78af_0 bioconda
biobb_structure_checking 3.13.4 pyhca03a8a_0 bioconda
biopython 1.81 py310h1fa729e_0 conda-forge
bleach 6.0.0 pyhd8ed1ab_0 conda-forge
blosc 1.21.5 h0f2a231_0 conda-forge
boost-cpp 1.78.0 h6582d0a_3 conda-forge
brotli 1.1.0 hd590300_0 conda-forge
brotli-bin 1.1.0 hd590300_0 conda-forge
brotli-python 1.1.0 py310hc6cd4ac_0 conda-forge
bzip2 1.0.8 h7f98852_4 conda-forge
c-ares 1.19.1 hd590300_0 conda-forge
ca-certificates 2023.08.22 h06a4308_0
cached-property 1.5.2 hd8ed1ab_1 conda-forge
cached_property 1.5.2 pyha770c72_1 conda-forge
cairo 1.16.0 h35add3b_1015 conda-forge
certifi 2023.7.22 py310h06a4308_0
cffi 1.15.1 py310h2fee648_5 conda-forge
charset-normalizer 3.2.0 pyhd8ed1ab_0 conda-forge
comm 0.1.4 pyhd8ed1ab_0 conda-forge
contourpy 1.1.1 py310hd41b1e2_1 conda-forge
curl 8.1.2 h409715c_0 conda-forge
cycler 0.11.0 pyhd8ed1ab_0 conda-forge
cython 3.0.2 py310hc6cd4ac_2 conda-forge
dbus 1.13.6 h5008d03_3 conda-forge
debugpy 1.8.0 py310hc6cd4ac_1 conda-forge
decorator 5.1.1 pyhd8ed1ab_0 conda-forge
defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge
edgembar 0.2 pypi_0 pypi
entrypoints 0.4 pyhd8ed1ab_0 conda-forge
exceptiongroup 1.1.3 pyhd8ed1ab_0 conda-forge
executing 1.2.0 pyhd8ed1ab_0 conda-forge
expat 2.5.0 hcb278e6_1 conda-forge
fftw 3.3.10 nompi_hc118613_108 conda-forge
font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge
font-ttf-inconsolata 3.000 h77eed37_0 conda-forge
font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge
font-ttf-ubuntu 0.83 hab24e00_0 conda-forge
fontconfig 2.14.2 h14ed4e7_0 conda-forge
fonts-conda-ecosystem 1 0 conda-forge
fonts-conda-forge 1 0 conda-forge
fonttools 4.42.1 py310h2372a71_0 conda-forge
fqdn 1.5.1 pyhd8ed1ab_0 conda-forge
freetype 2.12.1 h267a509_2 conda-forge
gettext 0.21.1 h27087fc_0 conda-forge
glib 2.78.0 hfc55251_0 conda-forge
glib-tools 2.78.0 hfc55251_0 conda-forge
gmp 6.2.1 h58526e2_0 conda-forge
graphite2 1.3.13 h58526e2_1001 conda-forge
gromacs 2022.2 nompi_hca75aac_100 conda-forge
gst-plugins-base 1.22.0 h4243ec0_2 conda-forge
gstreamer 1.22.0 h25f0c4b_2 conda-forge
harfbuzz 7.3.0 hdb3a94d_0 conda-forge
hdf4 4.2.15 h501b40f_6 conda-forge
hdf5 1.14.0 nompi_hb72d44e_103 conda-forge
icu 72.1 hcb278e6_0 conda-forge
idna 3.4 pyhd8ed1ab_0 conda-forge
importlib-metadata 6.8.0 pyha770c72_0 conda-forge
importlib_metadata 6.8.0 hd8ed1ab_0 conda-forge
importlib_resources 6.1.0 pyhd8ed1ab_0 conda-forge
ipykernel 6.25.2 pyh2140261_0 conda-forge
ipython 8.15.0 pyh0d859eb_0 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
ipywidgets 8.1.1 pyhd8ed1ab_0 conda-forge
isoduration 20.11.0 pyhd8ed1ab_0 conda-forge
jedi 0.19.0 pyhd8ed1ab_0 conda-forge
jinja2 3.1.2 pyhd8ed1ab_1 conda-forge
joblib 1.3.2 pyhd8ed1ab_0 conda-forge
json5 0.9.14 pyhd8ed1ab_0 conda-forge
jsonpointer 2.4 py310hff52083_3 conda-forge
jsonschema 4.19.1 pyhd8ed1ab_0 conda-forge
jsonschema-specifications 2023.7.1 pyhd8ed1ab_0 conda-forge
jsonschema-with-format-nongpl 4.19.1 pyhd8ed1ab_0 conda-forge
jupyter 1.0.0 py310h06a4308_8
jupyter-lsp 2.2.0 pyhd8ed1ab_0 conda-forge
jupyter_client 8.3.1 pyhd8ed1ab_0 conda-forge
jupyter_console 6.6.3 pyhd8ed1ab_0 conda-forge
jupyter_core 5.3.2 py310hff52083_0 conda-forge
jupyter_events 0.7.0 pyhd8ed1ab_2 conda-forge
jupyter_server 2.7.3 pyhd8ed1ab_1 conda-forge
jupyter_server_terminals 0.4.4 pyhd8ed1ab_1 conda-forge
jupyterlab 4.0.6 pyhd8ed1ab_0 conda-forge
jupyterlab_pygments 0.2.2 pyhd8ed1ab_0 conda-forge
jupyterlab_server 2.25.0 pyhd8ed1ab_0 conda-forge
jupyterlab_widgets 3.0.9 pyhd8ed1ab_0 conda-forge
keyutils 1.6.1 h166bdaf_0 conda-forge
kiwisolver 1.4.5 py310hd41b1e2_1 conda-forge
krb5 1.20.1 h81ceb04_0 conda-forge
lame 3.100 h166bdaf_1003 conda-forge
lcms2 2.15 haa2dc70_1 conda-forge
ld_impl_linux-64 2.40 h41732ed_0 conda-forge
lerc 4.0.0 h27087fc_0 conda-forge
libaec 1.0.6 hcb278e6_1 conda-forge
libblas 3.9.0 18_linux64_openblas conda-forge
libbrotlicommon 1.1.0 hd590300_0 conda-forge
libbrotlidec 1.1.0 hd590300_0 conda-forge
libbrotlienc 1.1.0 hd590300_0 conda-forge
libcap 2.69 h0f662aa_0 conda-forge
libcblas 3.9.0 18_linux64_openblas conda-forge
libclang 16.0.3 default_h1cdf331_2 conda-forge
libclang13 16.0.3 default_h4d60ac6_2 conda-forge
libcups 2.3.3 h36d4200_3 conda-forge
libcurl 8.1.2 h409715c_0 conda-forge
libdeflate 1.18 h0b41bf4_0 conda-forge
libedit 3.1.20191231 he28a2e2_2 conda-forge
libev 4.33 h516909a_1 conda-forge
libevent 2.1.12 hf998b51_1 conda-forge
libexpat 2.5.0 hcb278e6_1 conda-forge
libffi 3.4.2 h7f98852_5 conda-forge
libflac 1.4.3 h59595ed_0 conda-forge
libgcc-ng 13.2.0 h807b86a_2 conda-forge
libgcrypt 1.10.1 h166bdaf_0 conda-forge
libgfortran-ng 13.2.0 h69a702a_2 conda-forge
libgfortran5 13.2.0 ha4646dd_2 conda-forge
libglib 2.78.0 hebfc3b9_0 conda-forge
libgomp 13.2.0 h807b86a_2 conda-forge
libgpg-error 1.47 h71f35ed_0 conda-forge
libhwloc 2.8.0 h32351e8_1 conda-forge
libiconv 1.17 h166bdaf_0 conda-forge
libjpeg-turbo 2.1.5.1 hd590300_1 conda-forge
liblapack 3.9.0 18_linux64_openblas conda-forge
libllvm16 16.0.3 hbf9e925_1 conda-forge
libnetcdf 4.9.2 nompi_hdf9a29f_104 conda-forge
libnghttp2 1.52.0 h61bc06f_0 conda-forge
libnsl 2.0.0 hd590300_1 conda-forge
libogg 1.3.4 h7f98852_1 conda-forge
libopenblas 0.3.24 pthreads_h413a1c8_0 conda-forge
libopus 1.3.1 h7f98852_1 conda-forge
libpng 1.6.39 h753d276_0 conda-forge
libpq 15.3 hbcd7760_1 conda-forge
libsndfile 1.2.2 hc60ed4a_1 conda-forge
libsodium 1.0.18 h36c2ea0_1 conda-forge
libsqlite 3.43.0 h2797004_0 conda-forge
libssh2 1.11.0 h0841786_0 conda-forge
libstdcxx-ng 13.2.0 h7e041cc_2 conda-forge
libsystemd0 254 h3516f8a_0 conda-forge
libtiff 4.5.1 h8b53f26_1 conda-forge
libuuid 2.38.1 h0b41bf4_0 conda-forge
libvorbis 1.3.7 h9c3ff4c_0 conda-forge
libwebp-base 1.3.2 hd590300_0 conda-forge
libxcb 1.13 h7f98852_1004 conda-forge
libxkbcommon 1.5.0 h79f4944_0 conda-forge
libxml2 2.10.4 hfdac1af_0 conda-forge
libzip 1.10.1 h2629f0a_3 conda-forge
libzlib 1.2.13 hd590300_5 conda-forge
lz4-c 1.9.4 hcb278e6_0 conda-forge
markupsafe 2.1.3 py310h2372a71_1 conda-forge
matplotlib-base 3.8.0 py310h62c0568_1 conda-forge
matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge
mistune 3.0.1 pyhd8ed1ab_0 conda-forge
mmpbsa-py 16.0 pypi_0 pypi
mpg123 1.32.1 h59595ed_0 conda-forge
munkres 1.1.4 pyh9f0ad1d_0 conda-forge
mysql-common 8.0.33 hf1915f5_4 conda-forge
mysql-libs 8.0.33 hca2cd23_4 conda-forge
nbclient 0.8.0 pyhd8ed1ab_0 conda-forge
nbconvert 7.8.0 pyhd8ed1ab_0 conda-forge
nbconvert-core 7.8.0 pyhd8ed1ab_0 conda-forge
nbconvert-pandoc 7.8.0 pyhd8ed1ab_0 conda-forge
nbformat 5.9.2 pyhd8ed1ab_0 conda-forge
ncurses 6.4 hcb278e6_0 conda-forge
nest-asyncio 1.5.6 pyhd8ed1ab_0 conda-forge
netcdf-fortran 4.6.1 nompi_h4f3791c_100 conda-forge
nglview 3.0.8 pyh1da8cd4_0 conda-forge
notebook 7.0.4 pyhd8ed1ab_0 conda-forge
notebook-shim 0.2.3 pyhd8ed1ab_0 conda-forge
nspr 4.35 h27087fc_0 conda-forge
nss 3.92 h1d7d5a4_0 conda-forge
numpy 1.26.0 py310hb13e2d6_0 conda-forge
ocl-icd 2.3.1 h7f98852_0 conda-forge
openjpeg 2.5.0 hfec8fc6_2 conda-forge
openssl 3.1.3 hd590300_0 conda-forge
overrides 7.4.0 pyhd8ed1ab_0 conda-forge
packaging 23.1 pyhd8ed1ab_0 conda-forge
packmol 20.010 h86c2bf4_0 conda-forge
packmol-memgen 2023.2.24 pypi_0 pypi
pandas 2.1.1 py310hcc13569_0 conda-forge
pandoc 3.1.3 h32600fe_0 conda-forge
pandocfilters 1.5.0 pyhd8ed1ab_0 conda-forge
parmed 4.1.0 py310heca2aa9_0 conda-forge
parso 0.8.3 pyhd8ed1ab_0 conda-forge
pcre2 10.40 hc3806b6_0 conda-forge
pdb4amber 22.0 pypi_0 pypi
perl 5.32.1 4_hd590300_perl5 conda-forge
pexpect 4.8.0 pyh1a96a4e_2 conda-forge
pickleshare 0.7.5 py_1003 conda-forge
pillow 9.5.0 py310h065c6d2_0 conda-forge
pip 23.2.1 pyhd8ed1ab_0 conda-forge
pixman 0.42.2 h59595ed_0 conda-forge
pkgutil-resolve-name 1.3.10 pyhd8ed1ab_1 conda-forge
platformdirs 3.10.0 pyhd8ed1ab_0 conda-forge
plotly 5.17.0 pyhd8ed1ab_0 conda-forge
ply 3.11 py_1 conda-forge
prometheus_client 0.17.1 pyhd8ed1ab_0 conda-forge
prompt-toolkit 3.0.39 pyha770c72_0 conda-forge
prompt_toolkit 3.0.39 hd8ed1ab_0 conda-forge
psutil 5.9.5 py310h2372a71_1 conda-forge
pthread-stubs 0.4 h36c2ea0_1001 conda-forge
ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge
pulseaudio-client 16.1 hb77b528_5 conda-forge
pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge
pycparser 2.21 pyhd8ed1ab_0 conda-forge
pygments 2.16.1 pyhd8ed1ab_0 conda-forge
pymsmt 22.0 pypi_0 pypi
pyparsing 3.1.1 pyhd8ed1ab_0 conda-forge
pyqt 5.15.9 py310h04931ad_5 conda-forge
pyqt5-sip 12.12.2 py310hc6cd4ac_5 conda-forge
pysocks 1.7.1 pyha2e5f31_6 conda-forge
python 3.10.12 hd12c33a_0_cpython conda-forge
python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge
python-fastjsonschema 2.18.0 pyhd8ed1ab_0 conda-forge
python-json-logger 2.0.7 pyhd8ed1ab_0 conda-forge
python-tzdata 2023.3 pyhd8ed1ab_0 conda-forge
python_abi 3.10 4_cp310 conda-forge
pytraj 2.0.6 pypi_0 pypi
pytz 2023.3.post1 pyhd8ed1ab_0 conda-forge
pyyaml 6.0.1 py310h2372a71_1 conda-forge
pyzmq 25.1.1 py310h5bbb5d0_1 conda-forge
qt-main 5.15.8 haa3a1c2_11 conda-forge
qtconsole 5.4.4 pyhd8ed1ab_0 conda-forge
qtconsole-base 5.4.4 pyha770c72_0 conda-forge
qtpy 2.4.0 pyhd8ed1ab_0 conda-forge
readline 8.2 h8228510_1 conda-forge
referencing 0.30.2 pyhd8ed1ab_0 conda-forge
requests 2.31.0 pyhd8ed1ab_0 conda-forge
rfc3339-validator 0.1.4 pyhd8ed1ab_0 conda-forge
rfc3986-validator 0.1.1 pyh9f0ad1d_0 conda-forge
rpds-py 0.10.3 py310hcb5633a_0 conda-forge
sander 22.0 pypi_0 pypi
scipy 1.11.2 py310hb13e2d6_1 conda-forge
send2trash 1.8.2 pyh41d4057_0 conda-forge
setuptools 68.2.2 pyhd8ed1ab_0 conda-forge
simpletraj 0.5 py310h1f7b6fc_1008 conda-forge
sip 6.7.11 py310hc6cd4ac_1 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
snappy 1.1.10 h9fff704_0 conda-forge
sniffio 1.3.0 pyhd8ed1ab_0 conda-forge
soupsieve 2.5 pyhd8ed1ab_1 conda-forge
stack_data 0.6.2 pyhd8ed1ab_0 conda-forge
tenacity 8.2.3 pyhd8ed1ab_0 conda-forge
terminado 0.17.1 pyh41d4057_0 conda-forge
tinycss2 1.2.1 pyhd8ed1ab_0 conda-forge
tk 8.6.13 h2797004_0 conda-forge
toml 0.10.2 pyhd8ed1ab_0 conda-forge
tomli 2.0.1 pyhd8ed1ab_0 conda-forge
tornado 6.3.3 py310h2372a71_1 conda-forge
traitlets 5.10.1 pyhd8ed1ab_0 conda-forge
typing-extensions 4.8.0 hd8ed1ab_0 conda-forge
typing_extensions 4.8.0 pyha770c72_0 conda-forge
typing_utils 0.1.0 pyhd8ed1ab_0 conda-forge
tzdata 2023c h71feb2d_0 conda-forge
unicodedata2 15.1.0 py310h2372a71_0 conda-forge
uri-template 1.3.0 pyhd8ed1ab_0 conda-forge
urllib3 2.0.5 pyhd8ed1ab_0 conda-forge
wcwidth 0.2.6 pyhd8ed1ab_0 conda-forge
webcolors 1.13 pyhd8ed1ab_0 conda-forge
webencodings 0.5.1 pyhd8ed1ab_2 conda-forge
websocket-client 1.6.3 pyhd8ed1ab_0 conda-forge
wheel 0.41.2 pyhd8ed1ab_0 conda-forge
widgetsnbextension 4.0.9 pyhd8ed1ab_0 conda-forge
xcb-util 0.4.0 h166bdaf_0 conda-forge
xcb-util-image 0.4.0 h166bdaf_0 conda-forge
xcb-util-keysyms 0.4.0 h166bdaf_0 conda-forge
xcb-util-renderutil 0.3.9 h166bdaf_0 conda-forge
xcb-util-wm 0.4.1 h166bdaf_0 conda-forge
xmltodict 0.13.0 pyhd8ed1ab_0 conda-forge
xorg-kbproto 1.0.7 h7f98852_1002 conda-forge
xorg-libice 1.0.10 h7f98852_0 conda-forge
xorg-libsm 1.2.3 hd9c2040_1000 conda-forge
xorg-libx11 1.8.4 h0b41bf4_0 conda-forge
xorg-libxau 1.0.11 hd590300_0 conda-forge
xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge
xorg-libxext 1.3.4 h0b41bf4_2 conda-forge
xorg-libxrender 0.9.10 h7f98852_1003 conda-forge
xorg-libxt 1.3.0 hd590300_0 conda-forge
xorg-renderproto 0.11.1 h7f98852_1002 conda-forge
xorg-xextproto 7.3.0 h0b41bf4_1003 conda-forge
xorg-xf86vidmodeproto 2.3.1 h7f98852_1002 conda-forge
xorg-xproto 7.0.31 h7f98852_1007 conda-forge
xz 5.2.6 h166bdaf_0 conda-forge
yaml 0.2.5 h7f98852_2 conda-forge
zeromq 4.3.4 h9c3ff4c_1 conda-forge
zipp 3.17.0 pyhd8ed1ab_0 conda-forge
zlib 1.2.13 hd590300_5 conda-forge
zstd 1.5.5 hfc55251_0 conda-forge

Thanks.

Saverio

PS: The command conda env create -f conda_env/environment.yml needs about two hours and half
to complete.

Hi,
after having seen the error I have used the following command:

(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ conda install jupyter
Retrieving notices: …working… done
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

environment location: /home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial

added / updated specs:
- jupyter

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
certifi-2023.7.22          |  py310h06a4308_0         153 KB
jupyter-1.0.0              |  py310h06a4308_8           8 KB
------------------------------------------------------------
                                       Total:         161 KB

The following packages will be UPDATED:

ca-certificates conda-forge::ca-certificates-2023.7.2~ → pkgs/main::ca-certificates-2023.08.22-h06a4308_0

The following packages will be SUPERSEDED by a higher-priority channel:

certifi conda-forge/noarch::certifi-2023.7.22~ → pkgs/main/linux-64::certifi-2023.7.22-py310h06a4308_0
jupyter conda-forge::jupyter-1.0.0-py310hff52~ → pkgs/main::jupyter-1.0.0-py310h06a4308_8

Proceed ([y]/n)? y

Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
WARNING: No ICDs were found. Either,

  • Install a conda package providing a OpenCL implementation (pocl, oclgrind, intel-compute-runtime, beignet) or
  • Make your system-wide implementation visible by installing ocl-icd-system conda package.

and then again:

(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ jupyter-notebook biobb_wf_md_setup/notebooks/biobb_MDsetup_tutorial.ipynb
Traceback (most recent call last):
File “/home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial/bin/jupyter-notebook”, line 6, in
from notebook.app import main
ModuleNotFoundError: No module named ‘notebook.app’

Thanks.
Saverio

Hi,

Honestly we don’t understand what’s happening, you are doing everything ok, the conda list is (pretty nearly) equal as ours. Even we are testing the workflows in an ubuntu 22.04… But, for reasons that escape me, this notebook module is not loading properly.

Everything was ok during the installation? No warnings / errors? The other environments in your conda installation are working properly?

Try to avoid loading many environments one after the other in the same terminal, this can lead to errors in the different versions of some packages. Or, better, activate the environment in a new terminal window.

Please try (inside the environment):

python -V
which python
ipython -V
which ipython
python -c "import notebook; print(notebook.__file__)"

or (it’s the same of above) try to execute a notebook via command line:

ipython

And type:

$ ipython
Python 3.11.5 | packaged by conda-forge | (main, Aug 27 2023, 03:35:23) [Clang 15.0.7 ]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.15.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import notebook

In [2]: print(notebook.__file__)
/XXX/miniconda3/envs/biobb_GMX_MDsetup_tutorial/lib/python3.11/site-packages/notebook/__init__.py

In [3]: exit()

Hi,
thanks for the time spent.

“Everything was ok during the installation? No warnings / errors? The other environments in your conda installation are working properly?”

No warning/error.
I have only two other envs never used.

“Try to avoid loading many environments one after the other in the same terminal, this can lead to errors in the different versions of some packages. Or, better, activate the environment in a new terminal window.”

Only your env in a new env.

“Please try (inside the environment):”

(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ python -V
Python 3.10.12
(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ ipython -V
8.15.0
(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ which python
/home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial/bin/python
(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ which ipython
/home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial/bin/ipython
(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ python -c “import notebook; print(notebook.file)”
/home/xxxx/.local/lib/python3.10/site-packages/notebook/init.py
(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ ipython
Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0]
Type ‘copyright’, ‘credits’ or ‘license’ for more information
IPython 8.15.0 – An enhanced Interactive Python. Type ‘?’ for help.

In [1]: import notebook

In [2]: print(notebook.file)
/home/xxxx/.local/lib/python3.10/site-packages/notebook/init.py

In [3]: exit()

As I’m interested only in your env, the other two are useless for me , I’ll use a beautiful
$ rm -rf miniconda3
and then I’ll make a fresh new installation of miniconda and your env to check if it works.

Thanks.

Saverio

Hi,

This:

python -c "import notebook; print(notebook.__file__)"

Should return a path to the environment. In my computer:

/XXXX/miniconda3/envs/biobb_GMX_MDsetup_tutorial/lib/python3.11/site-packages/notebook/__init__.py

But on your case it’s returning a path somewhere out of miniconda3:

/home/xxxx/.local/lib/python3.10/site-packages/notebook/__init__.py

It seems that something happened with your conda installation. Maybe you can try to reinstall notebook (though it seems properly installed in your conda list) again in the environment:

conda install -c conda-forge notebook

Best.

Hi,
sorry I’m installing a fresh new miniconda.

Thanks.

Saverio

Hi,
with a fresh new installation of miniconda I repeat the previous steps:

~/Downloads$ conda config --set auto_activate_base false
xxxx@xxxx-X399-DESIGNARE-EX:~/Downloads$ cd …/sources/
xxxx@xxxx-X399-DESIGNARE-EX:~/sources$ git clone GitHub - bioexcel/biobb_wf_md_setup: This tutorial aims to illustrate the process of setting up a simulation system containing a protein, step by step, using the BioExcel Building Blocks library (biobb).
Cloning into ‘biobb_wf_md_setup’…
remote: Enumerating objects: 625, done.
remote: Counting objects: 100% (210/210), done.
remote: Compressing objects: 100% (130/130), done.
remote: Total 625 (delta 111), reused 168 (delta 70), pack-reused 415
Receiving objects: 100% (625/625), 19.94 MiB | 1.69 MiB/s, done.
Resolving deltas: 100% (331/331), done.
xxxx@xxxx-X399-DESIGNARE-EX:~/sources$ cd biobb_wf_md_setup
xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ conda env create -f conda_env/environment.yml
Collecting package metadata (repodata.json): done
Solving environment: done

==> WARNING: A newer version of conda exists. <==
current version: 23.5.2
latest version: 23.7.4

Please update conda by running

$ conda update -n base -c defaults conda

Or to minimize the number of packages updated during conda update use

 conda install conda=23.7.4

Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate biobb_GMX_MDsetup_tutorial
#
# To deactivate an active environment, use
#
# $ conda deactivate

xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ conda install conda=23.7.4
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

environment location: /home/xxxx/miniconda3

added / updated specs:
- conda=23.7.4

The following packages will be downloaded:

package                    |            build                                                             
---------------------------|-----------------                                                             
ca-certificates-2023.08.22 |       h06a4308_0         123 KB                                              
certifi-2023.7.22          |  py311h06a4308_0         154 KB                                              
conda-23.7.4               |  py311h06a4308_0         1.3 MB                                              
openssl-3.0.11             |       h7f8727e_2         5.2 MB                                              
------------------------------------------------------------                                              
                                       Total:         6.8 MB                                              

The following packages will be UPDATED:

ca-certificates 2023.05.30-h06a4308_0 → 2023.08.22-h06a4308_0
certifi 2023.5.7-py311h06a4308_0 → 2023.7.22-py311h06a4308_0
conda 23.5.2-py311h06a4308_0 → 23.7.4-py311h06a4308_0
openssl 3.0.9-h7f8727e_0 → 3.0.11-h7f8727e_2

Proceed ([y]/n)? y

Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ conda activate biobb_GMX_MDsetup_tutorial
WARNING: No ICDs were found. Either,
- Install a conda package providing a OpenCL implementation (pocl, oclgrind, intel-compute-runtime, beignet) or
- Make your system-wide implementation visible by installing ocl-icd-system conda package.
(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ jupyter-notebook biobb_wf_md_setup/notebooks/biobb_MDsetup_tutorial.ipynb
Traceback (most recent call last):
File “/home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial/bin/jupyter-notebook”, line 6, in
from notebook.app import main
ModuleNotFoundError: No module named ‘notebook.app’

Executing what you have suggested:
conda install -c conda-forge notebook

xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ conda activate biobb_GMX_MDsetup_tutorial
WARNING: No ICDs were found. Either,
- Install a conda package providing a OpenCL implementation (pocl, oclgrind, intel-compute-runtime, beignet) or
- Make your system-wide implementation visible by installing ocl-icd-system conda package.
(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ jupyter-notebook biobb_wf_md_setup/notebooks/biobb_MDsetup_tutorial.ipynb
Traceback (most recent call last):
File “/home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial/bin/jupyter-notebook”, line 6, in
from notebook.app import main
ModuleNotFoundError: No module named ‘notebook.app’

Then again:

(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~/sources/biobb_wf_md_setup$ jupyter-notebook biobb_wf_md_setup/notebooks/biobb_MDsetup_tutorial.ipynb
Traceback (most recent call last):
File “/home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial/bin/jupyter-notebook”, line 6, in
from notebook.app import main
ModuleNotFoundError: No module named ‘notebook.app’

Thanks.

Saverio

Hi,

And after executing this:

python -c "import notebook; print(notebook.__file__)"

It gives you a path out of miniconda3? In this case probably there’s something wrong in your computer. I’m sorry. Maybe there is a way to hardcode some configuration to force jupyter to get into the correct notebook path instead of this other.

I assume that before your fresh conda installation you totally removed all the previous one (maybe there is some old configuration file?).

Best.

Hi,
for the fresh installation I have used
rm -rf minicond3
where miniconda3 is the directory in which miniconda3 was installed.
Therefore I guess that no old configuration file is with the new installation is present.
There are other places where to search the configuration file giving problems?

For the command you suggested:

$ conda activate biobb_GMX_MDsetup_tutorial
WARNING: No ICDs were found. Either,

  • Install a conda package providing a OpenCL implementation (pocl, oclgrind, intel-compute-runtime, beignet) or
  • Make your system-wide implementation visible by installing ocl-icd-system conda package.
    (biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~$ python -c “import notebook; print(notebook.file)”
    /home/xxxx/.local/lib/python3.10/site-packages/notebook/init.py

Thanks.
Saverio

Hi, try that:

$ python3
Python 3.11.5 | packaged by conda-forge | (main, Aug 27 2023, 03:35:23) [Clang 15.0.7 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.path)

And please give me the paths it returns.

Hi,
the output:

(biobb_GMX_MDsetup_tutorial) xxxx@xxxx-X399-DESIGNARE-EX:~$ python3
Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import sys
print( sys.path )
[‘’, ‘/home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial/lib/python310.zip’, ‘/home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial/lib/python3.10’, ‘/home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial/lib/python3.10/lib-dynload’, ‘/home/xxxx/.local/lib/python3.10/site-packages’, ‘/home/xxxx/miniconda3/envs/biobb_GMX_MDsetup_tutorial/lib/python3.10/site-packages’]

Thanks.
Saverio