Error in sys.excepthook: Original exception was:

2,212 views
Skip to first unread message

jude vishnu

unread,
Mar 25, 2021, 1:31:23 PM3/25/21
to hoomd-users
I get the following error when using hoomd.md.pair.table . The code seems to run fine and finish executing. But after it shows "run complete " the following error message shows up.


Error in sys.excepthook:

Original exception was:

Could some one please help me with it? I checked by removing the definition of hoomd.md.pair.table. Once it is removed the error does not show up.
The following is the definition of potential I have defined. Please help me
Screenshot from 2021-03-25 22-57-28.png

Regards,
Jude Ann Vishnu

Joshua Anderson

unread,
Mar 26, 2021, 10:32:53 AM3/26/21
to hoomd...@googlegroups.com
Jude,

Without a complete runnable example as a text file, I cannot reproduce this behavior. I do not know why the system exception hook would be triggering an error.
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan

> On Mar 25, 2021, at 1:31 PM, jude vishnu <mohms...@gmail.com> wrote:
>
> I get the following error when using hoomd.md.pair.table . The code seems to run fine and finish executing. But after it shows "run complete " the following error message shows up.
>
>
> Error in sys.excepthook:
>
> Original exception was:
>
> Could some one please help me with it? I checked by removing the definition of hoomd.md.pair.table. Once it is removed the error does not show up.
> The following is the definition of potential I have defined. Please help me
> <Screenshot from 2021-03-25 22-57-28.png>
>
> Regards,
> Jude Ann Vishnu
>
> --
> You received this message because you are subscribed to the Google Groups "hoomd-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to hoomd-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/9b812636-e725-4c55-b0d1-730c386a30c9n%40googlegroups.com.
> <Screenshot from 2021-03-25 22-57-28.png>

jude vishnu

unread,
Mar 27, 2021, 5:12:00 PM3/27/21
to hoomd...@googlegroups.com
Dear Joshua,
Please try the following script. It should be able to produce the error.  I have also attached the  file from which initial configuration is to be read.

Regards,

You received this message because you are subscribed to a topic in the Google Groups "hoomd-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hoomd-users/YjHHbUhHXxs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hoomd-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/004D43CE-6B61-45DA-900C-DEFEA4342851%40umich.edu.


--
Yours truly,
Jude Ann Vishnu
test.py

Joshua Anderson

unread,
Apr 5, 2021, 9:53:28 AM4/5/21
to hoomd...@googlegroups.com
Jude,

Thanks for the script. When I run it with your input file, I am able to reproduce the behavior you see. I do not know what is causing it.
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan

> On Mar 27, 2021, at 5:11 PM, jude vishnu <mohms...@gmail.com> wrote:
>
> Dear Joshua,
> Please try the following script. It should be able to produce the error. I have also attached the file from which initial configuration is to be read.
>
> Regards,
> Jude Ann Vishnu
> trajectory1_Ntot_36000_Nx_50_Ny_30_Nz_100_kT_2....
> To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/CAKDDmPBCUE3Fbn2k8wng3tV%3Dj%3Dy5yFy6cib6qoAamBafTzgi4A%40mail.gmail.com.
> <test.py>

jude vishnu

unread,
Apr 6, 2021, 5:15:56 AM4/6/21
to hoomd...@googlegroups.com
Hello Joshua,
What are the possibility of this error being triggered in general? I couldn't understand what this error meant, even after searching online. Can you explain it to me, if you know about it so that I could may be try debugging it.

Regards,
Jude Ann Vishnu

Joshua Anderson

unread,
Apr 6, 2021, 9:37:48 AM4/6/21
to hoomd...@googlegroups.com
Jude,

I do not know. HOOMD sets an exception hook (https://docs.python.org/3/library/sys.html?highlight=excepthook#sys.excepthook) to call MPI_Abort when any rank throws an exception. I reset the exception hook back to the default in your script and I still got the output:
```
Error in sys.excepthook:

Original exception was:
```

The message is not coming from code inside HOOMD. I suspect it is coming from Python but I do not know from where or what is triggering it.
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan

> To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/CAKDDmPCM82UReqPNhW1yurUw3Pv4Fpe0evVy2wMy%2BuyutfAwmA%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages