What is the error?
PTGui is only officially supported on Mac/Win. I used “Play On Linux” to get it working on my Ubuntu 18.04 system. I also disabled hardware acceleration on my Linux machine. If you have Windows/Mac, it should be more stable.
Update June 2, 2019
Another alternative to PTGui and the THETA Stitcher from RICOH