Hi Dr. Eastman,
I'm trying to compile the latest github version of OpenMM on a linux cluster and getting the following error on executing make
[ 97%] Creating OpenMM Python swig input files...
Traceback (most recent call last):
File "/home/sbelsare/software/OpenMM/build_openmm/python/src/swig_doxygen/swigInputBuilder.py", line 719, in <module>
main()
File "/home/sbelsare/software/OpenMM/build_openmm/python/src/swig_doxygen/swigInputBuilder.py", line 693, in main
sBuilder.writeSwigFile()
File "/home/sbelsare/software/OpenMM/build_openmm/python/src/swig_doxygen/swigInputBuilder.py", line 654, in writeSwigFile
self.writeClassDeclarations()
File "/home/sbelsare/software/OpenMM/build_openmm/python/src/swig_doxygen/swigInputBuilder.py", line 338, in writeClassDeclarations
docstring = striphtmltags(docstring)
File "/home/sbelsare/software/OpenMM/build_openmm/python/src/swig_doxygen/swigInputBuilder.py", line 52, in striphtmltags
s = re.sub('\s*(<ul>.*?</ul>\s*)', replace_ul_tags, s, flags=re.MULTILINE | re.DOTALL)
TypeError: sub() got an unexpected keyword argument 'flags'
make[2]: *** [python/src/swig_doxygen/swig_lib/python/pythonprepend.i] Error 1
make[1]: *** [wrappers/python/CMakeFiles/BuildModule.dir/all] Error 2
make: *** [all] Error 2
I've recompiled the latest doxygen, but am still seeing this error. What might be the fix for this?
Thank you.
Error compiling github version of OpenMM
- Saurabh Belsare
- Posts: 32
- Joined: Sat Aug 14, 2010 8:43 am
- Peter Eastman
- Posts: 2611
- Joined: Thu Aug 09, 2007 1:25 pm
Re: Error compiling github version of OpenMM
What version of Python are you using? The flags argument has been there since 2.7.
Peter
Peter
- Saurabh Belsare
- Posts: 32
- Joined: Sat Aug 14, 2010 8:43 am
Re: Error compiling github version of OpenMM
Hi Dr. Eastman,
You're right. The problem was because I was running with python 2.6.6. I changed to python 2.7.9 and the make completed successfully.
Thank you.
You're right. The problem was because I was running with python 2.6.6. I changed to python 2.7.9 and the make completed successfully.
Thank you.