Problem running local HADDOCK

Dear developper,

I installed HADDOCK locally on my computer, recompiled cns1.3 with the files from HADDOCK, and I currently use python2.7.10.
Yet, when typing haddock2.2 on the directory containing the new.html file created using the webpage http://www.bonvinlab.org/software/haddock2.2/start_new/ with my local paths, I get the following error message:

reading parameters from the file ./new.html
setting some variables:
Traceback (most recent call last):
File “/Applications/haddock2.2/Haddock/RunHaddock.py”, line 97, in
new[‘RUN_DIR’] = new[‘PROJECT_DIR’] + ‘/run’ + new[‘RUN_NUMBER’]
TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘str’

Any idea what could cause this error and how to fix it?
Thanks a lot for your help,
Lauriane

Could be an empty entry in your new.html file.

I would suggest to look at files in the examples directory and adapt one to your needs.

E.g. taken from the protein-protein example:

<head>
<title>HADDOCK - start</title>
</head>
<body bgcolor=#ffffff>
<h2>Parameters for the start:</h2>
<BR>
<h4><!-- HADDOCK -->
AMBIG_TBL=./e2a-hpr_air.tbl<BR>
DANI1_FILE=./dani.tbl<BR>
HADDOCK_DIR=../../<BR>
N_COMP=2<BR>
PDB_FILE1=./e2aP_1F3G.pdb<BR>
PDB_FILE2=./hpr/hpr_1.pdb<BR>
PDB_LIST2=./hpr-files.list<BR>
PROJECT_DIR=./<BR>
PROT_SEGID_1=A<BR>
PROT_SEGID_2=B<BR>
RUN_NUMBER=1<BR>
submit_save=Save updated parameters<BR>
</h4><!-- HADDOCK -->
</body>
</html>

Make sure of course to define the proper path to HADDOCK.

Thanks a lot for your answer.

I made some tests with different new.html files, and it appears that if I modify the file with TextEdit it creates some weird features which only appear when I open the file with other text editors. That’s why haddock could not find the paths to the input files.
It’s working now, thanks again !

TextEdit probably saved it as rtf and not ascii format.