Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ModuleNotFoundError: No module named 'examples'. #28
When I follow the instruction and run "python examples/server_example.py" on folder ffai/ , I got ModuleNotFoundError: No module named 'examples'.
There may be some python import bugs here. When I move the example script to other directory and remove "examples" in import lines, this script can run successfully.
If you are using conda for package management, rather than install ffai as a module, an alternative is to add the path of the project to your environment. A simple way to do this:
Once you do this, imports relative to the root directory of your ffai project work just fine (within the conda environment of the project) whether you use vscode, pycharm, jupyter notebook or whatever. Incidentally, to use pycharm, I usually find it's best to launch from a fully activated conda environment (i.e. run the executable from an anaconda prompt) rather than to run the executable / shortcut directly.