question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🤦 Windows paths in docker

See original GitHub issue

Bug report

Messages with windows paths appears in some warnings/errors while calling manga-py from docker. It’s strange. Don’t remove any functionality for this, only take a look to prevent that this is anything to be concerned.

Component Value
Docker 🐳 ✔
OS Debian GNU/Linux 10 (buster)
Python version Python 3.6.8
Pip version pip 19.1.1
Npm version 6.14.4
Manga-py version 1.19.3
URL https://merakiscans.com/manga/my-wife-is-a-demon-queen/
docker run --interactive --tty --rm --name manga-py -v $PWD:/home/manga/Manga mangadl/manga-py \
  manga-py --destination /home/manga/Manga --cbz --zero-fill --rename-pages --no-webp --show-current-chapter-info --quiet \
    https://merakiscans.com/manga/my-wife-is-a-demon-queen/
"W:/manga_py/base_classes/base.py:102:2020-05-05 19:11:33,264:Chapters list empty. Check https://merakiscans.com/manga/my-wife-is-a-demon-queen/"

Same command for http://www.funmanga.com/isekai-maou-to-shoukan-shoujo-dorei-majutsu Output:

Current chapter url: https://www.funmanga.com/isekai-maou-to-shoukan-shoujo-dorei-majutsu/ 50.2/all-pages

"E:/manga_py/provider.py:149:2020-05-05 19:11:51,077:Error processing file: vol_ 50-2"


Current chapter url: https://www.funmanga.com/isekai-maou-to-shoukan-shoujo-dorei-majutsu/ 47.2/all-pages

"E:/manga_py/provider.py:149:2020-05-05 19:11:52,323:Error processing file: vol_ 47-2"

Other example with https://mangakakalot.com/read-ni5gp158524507166

"W:/manga_py/base_classes/base.py:102:2020-05-05 19:12:02,157:Chapters list empty. Check https://mangakakalot.com/read-ni5gp158524507166"
No new chapters found

Maybe some pathlib.WindowsPath in the program or a dependence. (?)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gromenauercommented, May 8, 2020

In docker:

manga-py https://merakiscans.com/manga/my-wife-is-a-demon-queen/ --debug
"I:/manga_py/provider.py:89:2020-05-08 17:37:42,046:Manga name: my-wife-is-a-demon-queen"
"I:/manga_py/provider.py:90:2020-05-08 17:37:42,651:Content length 31687"
"W:/manga_py/base_classes/base.py:102:2020-05-08 17:37:43,270:Chapters list empty. Check https://merakiscans.com/manga/my-wife-is-a-demon-queen/"
"I:/manga_py/provider.py:92:2020-05-08 17:37:43,270:Chapters received (0)"
"I:/manga_py/provider.py:100:2020-05-08 17:37:43,270:User-agent: None"
No new chapters found

Some debugging later I really 🤦 🙄 🤣 :

“PATH” Real meaning
I: Info
W: Warning
E: Error
0reactions
gromenauercommented, May 8, 2020
docker run -u 0:0 --interactive --tty --rm --name manga-py mangadl/manga-py /bin/bash 
root@edb5cd6706e4:/home/manga# python
Python 3.6.8 (default, May  4 2020, 18:00:16) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.name
'posix'
>>> from pathlib import Path
>>> Path('.').resolve()
PosixPath('/home/manga')
Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker toolbox and windows paths
Docker toolbox ( docker.exe ) has issues to with windows paths in the --volume param. ISSUE -> RESULT. colon “ : ” do...
Read more >
dockerfile with windows path - Stack Overflow
I want to provisionning and configurate my container docker with some few bash file in my windows 10 OS. What is the correct...
Read more >
Windows paths format is not recognized by docker without ...
When I use Docker Desktop (WSL2), I am able to use windows path formats for mounts (as c:\folder). After I switched to native...
Read more >
Docker on Windows — Mounting Host Directories
In my case, I have C and D drives and I have chosen to share D:\ drive since I want to expose the...
Read more >
Dockerfile and Windows Containers | Microsoft Learn
The files and directories must be in a path relative to the Dockerfile. The COPY instruction's format goes like this: Dockerfile
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found