Running Tessitura REST API with a python exe

This isn't necessarily a Tessitura issue, but the issue is popping up whenever I try to use the Tessitura API. I've been using Python to access the REST API and it seems to be working great. Anytime I run a POST or GET request from the PyCharm IDE everything works fine. 

Now I am trying to compile my script into an executable file using pyinstaller. I ran into some issues with it missing the modules but now I've gotten so far as it to run the script, but once it hits the Tessitura module and tries to run the _init_.py file it says its missing the pkg_resources module. I looked through the Tessitura _init_.py file and the first thing it tries to do is import the pkg_resources module. The pkg_resources module is found in the site-packages folder in the venv directory right along side the Tessitura module. So I don't know why when I run the script through PyCharm it knows where to find the module but when it runs as an exe it can't find it. Do I need to make a copy of the pkg_resources folder and move it into the Tessitura folder?

Parents Reply Children