python-turboactivate activate_from_file()

I'm having problems getting the python interface of TurboActivate to actually activate from an ActivationResponse.xml. The same file will activate if a simple C implementation is used. I'm implementing a private network webgui so am getting the text from the file from a post request, writing it to file then giving the file to the Python function. The code that I'm using looks something like this:

https://pastebin.com/rnkzCQsX

As far as I can tell there is nothing obviously wrong? As I said the xml does activate using a different method. I wonder if there is something wrong with python-turboactivate? Any suggestions are welcome.

It's almost certain that the problem is you're using relative paths (the question you *always* have to ask yourself when using relative paths is *what* path is this relative to -- that's not always an easy thing to answer).

So, try it again with a full absolute path and see if it works.

I've tried pointing it to a known working file:

ta.activate_from_file("/home/user/folder/AResp.xml")

but still am not having any luck with it actually applying the activation. If you have any other suggestions I'd be really grateful.

I managed to work out what the problem was. When python-turboactivate was updated to work with TurboActivate 4 which uses TA_ prefixes the activate_from_file() function wasn't updated. Having fixed this it all works correctly! I've submitted a pull request with the one line change.

Oh, good eye. Merged your pull request. Thanks for the fix (and the other fixes you've submitted).