TimWhiting / dartpy

An experiment in embedding Python in Dart via dart ffi and the Python c-api
68 stars 10 forks source link

flutter: DartPyException(Importing python module namefinder failed, make sure the namefinder is on your PYTHONPATH eg. export PYTHONPATH=$PYTHONPATH:/path/to/namefinder) #3

Closed rhiotbdq closed 2 years ago

rhiotbdq commented 2 years ago

I have been trying to build a model in python and put that in dart using this library. However, I keep on getting this same error. Can you please walk me through how to set this up such that I can actually run my python function on dart, set up my PYTHONPATH because I am very confused. Thank you so much!

TimWhiting commented 2 years ago

Sounds like you are having trouble with setting up your PYTHONPATH. Make sure it has your python scripts in the path. Duplicate of #2