# Problem with Haddock 2.4 local installation

**URL:** <https://ask.bioexcel.eu/t/problem-with-haddock-2-4-local-installation/2298>\
**Category:** HADDOCK\
**Created:** [July 2, 2020, 1:13pm UTC](https://ask.bioexcel.eu/t/problem-with-haddock-2-4-local-installation/2298 "2020-07-02T13:13:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmusiani](https://avatars.discourse-cdn.com/v4/letter/f/97f17d/32.png) [@fmusiani](https://ask.bioexcel.eu/u/fmusiani)\
**Post date:** [July 2, 2020, 1:13pm UTC](https://ask.bioexcel.eu/t/problem-with-haddock-2-4-local-installation/2298/1 "2020-07-02T13:13:50Z")

</div>

Dear users and developpers,  
I am trying to install the version 2.4 but I have the following error:

* * *

HADDOCK version: 2.4 - June 2020 release  
Python version: 2.7.17 (default, Apr 15 2020, 17:20:14)  
[GCC 7.5.0]  
PYTHONPATH system variable contains:  
[’/work/programs/HADDOCK2.4/Haddock’, ‘/work/programs/amber18/lib/python2.7/site-packages’, ‘/work/programs/HADDOCK2.2’, ‘/work/programs/HADDOCK2.4’, ‘/work/programs/amber18/lib/python2.7/site-packages/ParmEd-3.2.0-py2.7-linux-x86\_64.egg’, ‘/work/programs/amber18/lib/python2.7/site-packages/pytraj-2.0.5-py2.7-linux-x86\_64.egg’, ‘/work/programs/amber18/lib/python2.7/site-packages/pdb4amber-1.7.dev0-py2.7.egg’, ‘/usr/lib/python2.7’, ‘/usr/lib/python2.7/plat-x86\_64-linux-gnu’, ‘/usr/lib/python2.7/lib-tk’, ‘/usr/lib/python2.7/lib-old’, ‘/usr/lib/python2.7/lib-dynload’, ‘/home/muso/.local/lib/python2.7/site-packages’, ‘/usr/local/lib/python2.7/dist-packages’, ‘/usr/lib/python2.7/dist-packages’, ‘/usr/lib/python2.7/dist-packages/gtk-2.0’, ‘/usr/lib/python2.7/dist-packages/wx-3.0-gtk3’]  
Traceback (most recent call last):  
File “/work/programs/HADDOCK2.4/Haddock/RunHaddock.py”, line 100, in   
newparsed = InputFileParser.ParseRunParam()  
AttributeError: ‘module’ object has no attribute ‘ParseRunParam’

* * *

Any suggestion?

---

<div class="post-metadata">

**Author:** ![amjjbonvin](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/amjjbonvin/32/23_2.png) [@amjjbonvin](https://ask.bioexcel.eu/u/amjjbonvin)\
**Post date:** [July 2, 2020, 1:30pm UTC](https://ask.bioexcel.eu/t/problem-with-haddock-2-4-local-installation/2298/2 "2020-07-02T13:30:51Z")

</div>

Which command gave that error?

Did you create run.param?

Check the provided examples

---

<div class="post-metadata">

**Author:** ![fmusiani](https://avatars.discourse-cdn.com/v4/letter/f/97f17d/32.png) [@fmusiani](https://ask.bioexcel.eu/u/fmusiani)\
**Post date:** [July 2, 2020, 1:50pm UTC](https://ask.bioexcel.eu/t/problem-with-haddock-2-4-local-installation/2298/3 "2020-07-02T13:50:18Z")

</div>

The command was just “haddock2.4”  
I was trying the classical “protein-protein” example  
This is the run.param file:

* * *

AMBIG\_TBL=./e2a-hpr\_air.tbl  
HADDOCK\_DIR=/work/programs/HADDOCK2.4  
N\_COMP=2  
PDB\_FILE1=./e2aP\_1F3G.pdb  
PDB\_FILE2=./hpr/hpr\_1.pdb  
PDB\_LIST2=./hpr-files.list  
PROJECT\_DIR=./  
PROT\_SEGID\_1=A  
PROT\_SEGID\_2=B  
RUN\_NUMBER=1

* * *

---

<div class="post-metadata">

**Author:** ![honoratorv](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/honoratorv/32/672_2.png) [@honoratorv](https://ask.bioexcel.eu/u/honoratorv)\
**Post date:** [July 2, 2020, 2:19pm UTC](https://ask.bioexcel.eu/t/problem-with-haddock-2-4-local-installation/2298/4 "2020-07-02T14:19:23Z")

</div>

Did you source the `haddock_configure.sh` before running the command? Could you check if all the paths are correct?

Also, please share the output of the following commands:

```bash
$ which python
$ echo $PYTHONPATH

```

---

<div class="post-metadata">

**Author:** ![fmusiani](https://avatars.discourse-cdn.com/v4/letter/f/97f17d/32.png) [@fmusiani](https://ask.bioexcel.eu/u/fmusiani)\
**Post date:** [July 2, 2020, 2:42pm UTC](https://ask.bioexcel.eu/t/problem-with-haddock-2-4-local-installation/2298/5 "2020-07-02T14:42:49Z")

</div>

> [@honoratorv](#):
>
> Did you source the `haddock_configure.sh` before running the command? Could you check if all the paths are correct?

Yes, I sourced the ‘haddock\_configure.csh’ and all the paths are correct.

The output of ‘which python’ is:  
/usr/bin/python

The output of ‘echo $PYTHONPATH’ is:  
/work/programs/amber18/lib/python2.7/site-packages:/work/programs/HADDOCK2.2:/work/programs/HADDOCK2.4:/work/programs/HADDOCK2.4:/work/programs/HADDOCK2.4

---

<div class="post-metadata">

**Author:** ![fmusiani](https://avatars.discourse-cdn.com/v4/letter/f/97f17d/32.png) [@fmusiani](https://ask.bioexcel.eu/u/fmusiani)\
**Post date:** [July 2, 2020, 2:45pm UTC](https://ask.bioexcel.eu/t/problem-with-haddock-2-4-local-installation/2298/6 "2020-07-02T14:45:00Z")

</div>

**Solved** : I remove the python path for Haddock 2.2 and now it works. Thanks for your help.

---

<div class="post-metadata">

**Author:** ![honoratorv](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/honoratorv/32/672_2.png) [@honoratorv](https://ask.bioexcel.eu/u/honoratorv)\
**Post date:** [July 2, 2020, 5:30pm UTC](https://ask.bioexcel.eu/t/problem-with-haddock-2-4-local-installation/2298/7 "2020-07-02T17:30:02Z")

</div>

Thanks for sharing the solution! 🙂

---

<div class="post-metadata">

**Author:** ![yang1](https://avatars.discourse-cdn.com/v4/letter/y/bc8723/32.png) [@yang1](https://ask.bioexcel.eu/u/yang1)\
**Post date:** [October 6, 2021, 3:21am UTC](https://ask.bioexcel.eu/t/problem-with-haddock-2-4-local-installation/2298/8 "2021-10-06T03:21:03Z")

</div>

hello , honoratorv , I have the same difficuties with haddock . I have output the commands and this is the run.param file

HADDOCK version: 2.4 - May 2021 release  
Python version: 2.7.17 (default, Feb 27 2021, 15:10:58)  
[GCC 7.5.0]  
reading parameters from the file ./run.param  
setting some variables:  
N\_COMP set to: 2  
RUN\_NUMBER set to: 1  
HADDOCK\_DIR set to: ../..  
PROT\_SEGID\_2 set to: E  
PROT\_SEGID\_1 set to: B  
PDB\_FILE1 set to: ./anas\_platyrhynchos\_B\_.pdb  
PDB\_FILE2 set to: ./anas\_platyrhynchos\_E\_.pdb  
PROJECT\_DIR set to: ./run1  
Traceback (most recent call last):  
File “/home/yjx/software/haddock2.4-2021-05/Haddock/RunHaddock.py”, line 95, in   
newparsed = {InputFileParser.ParseRunParam()}  
TypeError: unhashable type: ‘dict’

# which python

/usr/bin/python

# echo $PATHONPATH

PATHONPATH: Undefined variable.

# 

what should I do to deal with the problem ?

---

<div class="post-metadata">

**Author:** ![yang1](https://avatars.discourse-cdn.com/v4/letter/y/bc8723/32.png) [@yang1](https://ask.bioexcel.eu/u/yang1)\
**Post date:** [October 6, 2021, 7:52am UTC](https://ask.bioexcel.eu/t/problem-with-haddock-2-4-local-installation/2298/9 "2021-10-06T07:52:43Z")

</div>

I have deal with the problem ,
