Posted on 16th September 2024|258 views
Why do we encounter the error called “import cycle not allowed”?
I see this error when I am trying to test my controller can anyone help me?
Posted on 16th September 2024| views
You may be using the method with the same name as the package look at the example to understand what I meant.
In PyGtk.go:
Package PyGtk
func PyGtk(){...}
In PyGtk_test.go:
Package PyGtk
pygtk.PyGtk()// this is the issue you are already in the package PyGtk there is no need to use pygtk.PyGtk to access PyGtk()