I am having so much trouble with imports and I never know how to solve them. The folders of the project are arranged as follows
project:
distributed_computing:
agent_server.py
kinematics:
inverse_kinematics.py
I am trying to import inverse_kinematics into agent_server.py.
The code used for that is :
import os
import sys
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), '..', 'kinematics'))
from kinematics import inverse_kinematics
I get the error ModuleNotFoundError: No module named 'kinematics'.
Following this tutorial I also tried to modify PYTHONPATH by adding the whole path C:\Users\TheCh\.......\project
but it didn't change anything.