Question
Asked 27 December 2023

Zerodivisionerror error in autodock?

Hi, I used material studio and biuld selnium nanoparticle. I used autodock and dock nanoparticle with hsa . when input ligand I recieved this error.
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************
IDLE 1.2.2 ==== No Subprocess ====
>>> adding gasteiger charges to receptor
NanoSe3: :MOL2:Se and NanoSe3: :MOL2:Se have the same coordinates
ERROR *********************************************
Traceback (most recent call last):
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\ViewerFramework\VF.py", line 898, in tryto
result = command( *args, **kw )
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\AutoDockTools\autotorsCommands.py", line 1008, in doit
initLPO4(mol, cleanup=cleanup)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\AutoDockTools\autotorsCommands.py", line 292, in initLPO4
root=root, outputfilename=outputfilename, cleanup=cleanup)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\AutoDockTools\MoleculePreparation.py", line 1019, in __init__
detect_bonds_between_cycles=detect_bonds_between_cycles)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\AutoDockTools\MoleculePreparation.py", line 768, in __init__
delete_single_nonstd_residues=False)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\AutoDockTools\MoleculePreparation.py", line 143, in __init__
self.addCharges(mol, charges_to_add)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\AutoDockTools\MoleculePreparation.py", line 229, in addCharges
chargeCalculator.addCharges(mol.allAtoms)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\MolKit\chargeCalculator.py", line 80, in addCharges
babel.assignHybridization(atoms)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\PyBabel\atomTypes.py", line 137, in assignHybridization
self.valence_two()
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\PyBabel\atomTypes.py", line 266, in valence_two
angle1 = bond_angle(k.coords, a.coords, l.coords)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\PyBabel\util.py", line 47, in bond_angle
raise ZeroDivisionError("Input used:", a, b, c)
ZeroDivisionError: ('Input used:', [-3.7719999999999998, -9.9429999999999996, -5.774], [-3.7719999999999998, -9.9429999999999996, -5.774], [-3.7719999999999998, -9.9429999999999996, -5.774])

All Answers (2)

Salvatore Galati
University of Pisa
Hello,
It appears that there are two selenium atoms that have the same coordinates. This is a problem for the preparation script as it is not possible to determine the hybridization of these two atoms. I recommend that you check the structure of your input files to make sure there are no errors.
Elahe Siadati
Tarbiat Modares University
Hi tanks a lot. I appreciate that.

Similar questions and discussions

MGLTools 1.5.7 (AutodockTools) on Windows 10 throwing a python stack trace. Why?
Question
7 answers
  • Anthony NashAnthony Nash
First, I've had MGLTools on Windows 10 working fine up until today. Unfortunately, it was about 4 months ago since I last opened it and I forgot the *hack* that was required.
Here is the problem. I've installed AutodockTools (MGLTools - or which order it comes in) and despite it working once before I can't get it to open. This is the error:
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
==== No Subprocess ====
>>> Traceback (most recent call last):
File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\AutoDockTools\__init__.py", line 433, in runADT
title=title, withShell= not interactive, verbose=False, gui=gui)
trapExceptions=trapExceptions)
File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\ViewerFramework\VF.py", line 523, in __init__
self.userpref.loadSettings()
File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\mglutil\preferences.py", line 138, in loadSettings
self.set(key, value)
File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\mglutil\preferences.py", line 107, in set
cb(name,oldValue, value)
File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\ViewerFramework\VF.py", line 760, in startupDirPref_cb
root = self.setUserPreference.form.root
AttributeError: SetUserPreference instance has no attribute 'form'
hit enter to continue
Any idea what on earth is going on? A few things to note.
This seems to be trying to launch Python 2.7. The software is also packaged with that version of Python itself (wow, that strikes me as very strange). I tried using Python 3.8, and predictably it did nothing.
Working solutions welcome.
"prot:A:MET1:HN1 and prot:A:MET1:HN1 have the same coordinates" Error While Performing Flexible Docking?
Question
1 answer
  • Anusha MajumderAnusha Majumder
After selecting the residues of the protein for flexible docking, when I click on "Choose Torsions In Currently Selected Residues", under the " Flexible Residues" tab, I get this error:
prot:A:MET1:HN1 and prot:A:MET1:HN1 have the same coordinates
ERROR *********************************************
Traceback (most recent call last):
result = command( *args, **kw )
File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\AutoDockTools\autoflexCommands.py", line 369, in doit
map(self.setAutoFlexFields, flex_residues)
File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\AutoDockTools\autoflexCommands.py", line 414, in setAutoFlexFields
rotatables = rbs.select(bondlist)
File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\MolKit\bondSelector.py", line 534, in select
rotatable = BondOrderBondSelector().select(bnds,1)
File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\MolKit\bondSelector.py", line 507, in select
atype.assignHybridization(allAts)
File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\PyBabel\atomTypes.py", line 137, in assignHybridization
self.valence_two()
File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\PyBabel\atomTypes.py", line 266, in valence_two
angle1 = bond_angle(k.coords, a.coords, l.coords)
File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\PyBabel\util.py", line 47, in bond_angle
raise ZeroDivisionError("Input used:", a, b, c)
ZeroDivisionError: ('Input used:', [2.015, -1.769, 0.66], [2.015, -1.769, 0.66], [2.015, -1.769, 0.66])
Is there a way to solve this problem?
AutoDock Running Error?
Question
10 answers
  • Susantha K GanegamageSusantha K Ganegamage
I have tried to run Autodock by following youtube video ( https://www.youtube.com/watch?v=llaVCIfH0sA ) but when I run AutoDock the error message comes. I have pasted the error message below please help me to fix this.
............................................................................................................................................
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************
IDLE 1.2.2 ==== No Subprocess ====
>>> adding gasteiger charges to 3ec5
3ec5 already has gasteiger charges
3ec5 already has gasteiger charges
ERROR *********************************************
Traceback (most recent call last):
File "C:\Program Files\MGLTools-1.5.6\lib\site-packages\ViewerFramework\VF.py", line 898, in tryto
result = command( *args, **kw )
File "C:\Program Files\MGLTools-1.5.6\lib\site-packages\AutoDockTools\autostartCommands.py", line 964, in doit
ps = subprocess.Popen(args)
File "C:\Program Files\MGLTools-1.5.6\lib\subprocess.py", line 594, in __init__
errread, errwrite)
File "C:\Program Files\MGLTools-1.5.6\lib\subprocess.py", line 816, in _execute_child
startupinfo)
WindowsError: [Error 740] The requested operation requires elevation

Related Publications

Article
This paper introduces the implementation of steganography method called StegIbiza, which uses tempo modulation as hidden message carrier. With the use of Python scripting language, a bit string was encoded and decoded using WAV and MP3 files. Once the message was hidden into a music files, an internet radio was created to evaluate broadcast possibi...
Chapter
Python has some built-in functions for dealing with files. You can open a file and read what is inside. You can write a file. That file could be a text file or a picture.
Got a technical question?
Get high-quality answers from experts.