Open Hyrtsi opened 2 years ago
Actually, the setup.py
didn't work at all for me. When I tried to run ptgaze/main.py
I got the following error
Traceback (most recent call last):
File "main.py", line 6, in <module>
import torch
ModuleNotFoundError: No module named 'torch'
I fixed it by doing this:
pip install -r requirements.txt
which I thought setup.py
would have done for me.
Another error:
$ python3 ptgaze/main.py
Traceback (most recent call last):
File "ptgaze/main.py", line 9, in <module>
from .demo import Demo
ImportError: attempted relative import with no known parent package
Hi, @Hyrtsi
When using python:3.9.13-slim
docker image, you can install ptgaze
without problems with the following steps:
apt update
apt install -y git build-essential cmake
git clone https://github.com/hysts/pytorch_mpiigaze_demo
cd pytorch_mpiigaze_demo
python setup.py install
I guess something is wrong with your installation steps. I'm not sure, but sudo
in
sudo python3 setup.py install
may be the cause.
Oh, forget what I said earlier. It seems the installation was actually failed. I'll look into it, but it may take some time.
@hysts Thanks for the help. I have heard using sudo
in setup.py
is an antipattern so it should work without.
Greetings and thanks for this amazing repository. I'd suggest the following changes to requirements as I got these errors
Create venv:
Install:
Error messages:
After fixing that I got
and then
and
I fixed the errors like this: I changed
requirements.txt
to this:I will create a PR to suggest these changes to the repo. I'm posting this merely to help people around this issue.