Closed howard84527 closed 5 years ago
I am assuming you are trying to run a notebook. Right?
Can you load ANY function under latent_3d_points.src.xx.py {xx can be any module)? If not, then you have not added it the code to the PYTHONPATH.
To add it, notice that you should give the (top) folder where your latent_3d_points.xxx reside.
Best,
Right, I can't run the function under latent_3d_points.src.xxx.py . I use export PYTHONPATH=/..../.../latent_3d_points. Is it correct?
Thank you.
Please try this,
export PYTHONPATH=${PYTHONPATH}:xx/yy/zz
where zz contains the cloned repo.
See also here: https://askubuntu.com/questions/470982/how-to-add-a-python-module-to-syspath
Right, I can't run the function under latent_3d_points.src.xxx.py . I use export PYTHONPATH=/..../.../latent_3d_points. Is it correct?
Thank you.
This is because the code in notebook is
from latent_3d_points.src.ae_templates import mlp_architecture_ala_iclr_18, default_train_params
,
when you append your path into PYTHONPATH
, you should use '/path/to/latent_3d_points/..'
instead.
Hope this would help.
Hi, I have exported PYTHONPATH but I still got an error below:
ImportErrorTraceback (most recent call last)