You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Successful import of GROMACS trajectory file using tpr file as topology
Actual behavior
---------------------------------------------------------------------------NotImplementedErrorTraceback (mostrecentcalllast)
File~/gitrepos/mdanalysis/package/MDAnalysis/core/universe.py:113, in_topology_from_file_like(topology_file, topology_format, **kwargs)
112withparser(topology_file) asp:
-->113topology=p.parse(**kwargs)
114except (IOError, OSError) aserr:
115# There are 2 kinds of errors that might be raised here:116# one because the file isn't present117# or the permissions are bad, second when the parser failsFile~/gitrepos/mdanalysis/package/MDAnalysis/topology/TPRParser.py:212, inTPRParser.parse(self, tpr_resid_from_one, **kwargs)
211try:
-->212th=tpr_utils.read_tpxheader(data) # tpxheader213except (EOFError, ValueError):
File~/gitrepos/mdanalysis/package/MDAnalysis/topology/tpr/utils.py:233, inread_tpxheader(data)
232fileVersion=data.unpack_int() # version of tpx file-->233fileVersion_err(fileVersion)
235# This is for backward compatibility with development version 77-79 where236# the tag was, mistakenly, placed before the generation.237# These versions are development versions between the 4.5 and 4.6 series.File~/gitrepos/mdanalysis/package/MDAnalysis/topology/tpr/utils.py:208, infileVersion_err(fver)
207iffvernotinsetting.SUPPORTED_VERSIONS:
-->208raiseNotImplementedError(
209f"Your tpx version is {fver}, which this parser does not support, yet "210 )
NotImplementedError: Yourtpxversionis134, whichthisparserdoesnotsupport, yetDuringhandlingoftheaboveexception, anotherexceptionoccurred:
ValueErrorTraceback (mostrecentcalllast)
CellIn[2], line1---->1u=mda.Universe("md500.tpr","md500.xtc")
File~/gitrepos/mdanalysis/package/MDAnalysis/core/universe.py:417, inUniverse.__init__(self, topology, all_coordinates, format, topology_format, transformations, guess_bonds, vdwradii, fudge_factor, lower_bound, in_memory, context, to_guess, force_guess, in_memory_step, *coordinates, **kwargs)
415ifnotisinstance(topology, Topology) andnottopologyisNone:
416self.filename=_check_file_like(topology)
-->417topology=_topology_from_file_like(self.filename,
418topology_format=topology_format,
419**kwargs)
421iftopologyisnotNone:
422self._topology=topologyFile~/gitrepos/mdanalysis/package/MDAnalysis/core/universe.py:128, in_topology_from_file_like(topology_file, topology_format, **kwargs)
124raiseIOError("Failed to load from the topology file {0}"125" with parser {1}.\n"126"Error: {2}".format(topology_file, parser, err))
127except (ValueError, NotImplementedError) aserr:
-->128raiseValueError(
129"Failed to construct topology from file {0}"130" with parser {1}.\n"131"Error: {2}".format(topology_file, parser, err))
132returntopologyValueError: Failedtoconstructtopologyfromfilemd500.tprwithparser<class'MDAnalysis.topology.TPRParser.TPRParser'>.
Error: Yourtpxversionis134, whichthisparserdoesnotsupport, yet
Code to reproduce the behavior
Install development version of MDAnalysis as follows:
git clone https://github.com/MDAnalysis/mdanalysis
cd mdanalysis
pip install -e package/
Compile and install latest GROMACS build from source:
wget https://ftp.gromacs.org/gromacs/gromacs-2024.4.tar.gz
tar zxvf gromacs-2024.4.tar.gz
cd gromacs-2024.4
mkdir build &&cd build
cmake .. -DGMX_GPU=CUDA -DGMX_SIMD=AVX_512
export LD_LIBRARY_PATH=/usr/local/cuda/targets/x86_64-linux/lib:$LD_LIBRARY_PATH
make
sudo make install
Run a standard MD simulation and get top.tpr and traj.xtc files as output
Expected behavior
Successful import of GROMACS trajectory file using tpr file as topology
Actual behavior
Code to reproduce the behavior
Install development version of MDAnalysis as follows:
git clone https://github.com/MDAnalysis/mdanalysis cd mdanalysis pip install -e package/
Compile and install latest GROMACS build from source:
Run a standard MD simulation and get
top.tpr
andtraj.xtc
files as outputThen try to create an mda universe in python
Current version of MDAnalysis
Which version are you using? (run
python -c "import MDAnalysis as mda; print(mda.__version__)"
)-- 2.9.0-dev0
Which version of Python (
python -V
)?Which operating system?
-- Ubuntu 20.04.6 LTS, as well as Ubuntu 22.04.5 LTS
The text was updated successfully, but these errors were encountered: