ErlPort Deployment Issues

Okay yall, I am running into some issues when deploying my Phoenix App to Heroku.

Utilizing ErlPort with a python enviroment set in ‘/priv/py38’ of my root. Inside my GenServer class I initiate the server by using:

priv_path = to_charlist(Path.join(:code.priv_dir(:my_app), "py38"))
{:ok, py} = :python.start_link([{:python_path, priv_path}])

this will start the python instance and let me import modules, locally. However this fails when I deploy the app to Heroku. It is not using the correct interpreter and will initiate the python instance, however cannot find any of the modules in my virtual enviroment.

Any ideas on this one? I have tried:

{:ok, py} = :python.start_link([{:python_path, priv_path}]) # works but python enviroment is WRONG
{:ok, py} = :python.start_link([{:python_path, priv_path, :python, "python3"}]) # doesnt continue
{:ok, py} = :python.start_link([{:python_path, priv_path}, {:python, "python3"}]) # doesnt continue
{:ok, py} = :python.start_link([{:python_path, priv_path}, {:python, priv_path}]) # doesnt continue
{:ok, py} = :python.start_link([{:python_path, priv_path}, {:env, [{"py38", priv_path}]}]) # doesnt continue

The ones flagged as doesnt continue seems to exit the attempt and reset, without following up to any log statements afterwards and goes to listening on the channel.

The only one that works is the first try, it will even find a python file dropped into the root of my python virtual enviroment, however fail to find the modules such as pandas. I have attempted changing the directory directly to ‘py38/Lib/site-packages’, and even this fails.

I am 99% certain this is an interpreter issue, however I cannot seem to figure out how to change the interpreter.

For a bit more information, here is the error code for the one that does initiate python:

** (stop) {:python, :"exceptions.ImportError", 'No module named pandas', [{"/app/_build/prod/lib/trumpGen/priv/py38/generate.py", 23, "generate_name", "import pandas as pd"}, {"/app/_build/prod/lib/erlport/priv/python2/erlport/erlang.py", 229, "_incoming_call", "result = Atom(\"r\"), mid, self.encoder(f(*map(self.decoder, args)))"}, {"/app/_build/prod/lib/erlport/priv/python2/erlport/erlang.py", 234, "_call_with_error_handler", "function(*args)"}]}

Also I am building with
Elixir: 1.8.1
Erlang: 21.2.5
Erlport: 0.9
Python: 3.8

and running pip list inside the venv gives:

Package             Version
------------------- -------
future              0.18.2
Keras-Applications  1.0.6
Keras-Preprocessing 1.1.2
mock                4.0.2
numpy               1.19.3
pandas              1.1.4
pip                 20.2.4
python-dateutil     2.8.1
pytz                2020.1
setuptools          41.2.0
six                 1.15.0
wheel               0.35.1