ar005 / Songest

2 stars 0 forks source link

Install instructions lead to error #1

Open SrivatsaSJoshi opened 1 month ago

SrivatsaSJoshi commented 1 month ago

What I have done: installed docker and docker compose (I don't think compose is needed) Created API token in Jellyfin git clone https://github.com/ar005/Songest.git && cd Songest Updated the token along with IP address in updated_jellyfin.py Created a new telegram bot updated telegram token in main.py

Ran docker build -t songest .

I got the following error

=> ERROR [5/5] RUN pip install --no-cache-dir -r requirements.txt                                                                                         2.6s 
------                                                                                                                                                          
 > [5/5] RUN pip install --no-cache-dir -r requirements.txt:                                                                                                    
2.180 ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'                                                          
2.422 
2.422 [notice] A new release of pip is available: 23.0.1 -> 24.2
2.422 [notice] To update, run: pip install --upgrade pip
------

 1 warning found (use docker --debug to expand):
 - WorkdirRelativePath: Relative workdir "library" can have unexpected results if the base image changes (line 9)
Dockerfile:16
--------------------
  14 |     # Install any needed packages specified in requirements.txt
  15 |     # (you may need to adjust this depending on your script's dependencies)
  16 | >>> RUN pip install --no-cache-dir -r requirements.txt
  17 |     
  18 |     # Run main.py when the container launches
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1
root@songest:~/Songest# ls
check_folder.py  Dockerfile  download.py  get_name.py  main.py  readme.md  requirements.txt  update_jellyfin.py
root@songest:~/Songest# 
SrivatsaSJoshi commented 1 month ago

I have temporarily bypassed this error by changing the Dockerfile to download the requirements directly. But I run across another error

docker: Error response from daemon: invalid volume specification: 'library:library': invalid mount config for type "volume": invalid mount path: 'library' mount path must be absolute.
ar005 commented 1 month ago

Updated the Dockerfile. Check now.