# Error running build\_seq.py

**URL:** https://ask.bioexcel.eu/t/error-running-build-seq-py/4450
**Category:** HADDOCK
**Created:** [August 15, 2023, 3:35pm UTC](https://ask.bioexcel.eu/t/error-running-build-seq-py/4450 "2023-08-15T15:35:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://ask.bioexcel.eu/u/michael)
#### Post date: [August 15, 2023, 3:35pm UTC](https://ask.bioexcel.eu/t/error-running-build-seq-py/4450/1 "2023-08-15T15:35:59Z")

</div>

Hi  
I am not sure this is the right place to ask, if not please let me know who I can ask.  
I am trying to run a script that is used in HADDOCK papers (Information-Driven, Ensemble Flexible Peptide Docking Using HADDOCK) called “build\_seq.py” in pymol and I am encountering the following error:

PyMOL\>run build\_seq.py  
PyMOL\>build\_seq peptide, QGAADLESLGQ, phi=-60, psi=-40  
Building sequence: QGAADLESLGQ  
Error: Selection 0: Invalid selection name “\_tmp\_editor”.  
( \_tmp\_editor and name N )\<–  
and only the first 4 amino acids are built.

I changed the code to work with Python 3 since I have a newer version of Pymol (changed the print and except syntax)  
I’ll really appreciate your help.  
Best,  
Miriam

---

<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: [August 22, 2023, 12:27pm UTC](https://ask.bioexcel.eu/t/error-running-build-seq-py/4450/2 "2023-08-22T12:27:13Z")

</div>

It is a python version problem I am afraid…

Last time we used it on the nmrbox VMs and it worked fine.

---

<div class="post-metadata">

### Author: ![marco.giulini](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/marco.giulini/32/961_2.png) [@marco.giulini](https://ask.bioexcel.eu/u/marco.giulini)
#### Post date: [August 22, 2023, 5:39pm UTC](https://ask.bioexcel.eu/t/error-running-build-seq-py/4450/3 "2023-08-22T17:39:24Z")

</div>

hi,

I tried to convert the script to a python3-compatible version, it is working on my machine (pymol 2.5.5, macbook air M1), check it out [build\_seq\_3.py.txt](https://ask.bioexcel.eu/uploads/short-url/uHjUGnFUYQGjgLBgH5KnD8xmJJv.txt) (6.8 KB) and let me know if it works!

you’ll have to rename it to build\_seq\_3.py first

Best,  
Marco

---

<div class="post-metadata">

### Author: ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://ask.bioexcel.eu/u/michael)
#### Post date: [August 24, 2023, 5:18pm UTC](https://ask.bioexcel.eu/t/error-running-build-seq-py/4450/4 "2023-08-24T17:18:30Z")

</div>

Thank you!  
Unfortunately, it does not work on my laptop (Windows) Pymol version 2.5.5. It builds only part of the peptide.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/bioexcel/original/1X/9e217f71fde99899ef7dc35497b4bc45f74f44f3.png)
