Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INFO: Could not find files for the given pattern(s) #52

Open
reticivis-net opened this issue Jan 13, 2021 · 1 comment
Open

INFO: Could not find files for the given pattern(s) #52

reticivis-net opened this issue Jan 13, 2021 · 1 comment

Comments

@reticivis-net
Copy link

reticivis-net commented Jan 13, 2021

imgkit/imgkit/config.py

Lines 15 to 27 in c5fb49a

if sys.platform == 'win32':
self.wkhtmltoimage = subprocess.Popen(['where', 'wkhtmltoimage'],
stdout=subprocess.PIPE).communicate()[0].strip()
else:
self.wkhtmltoimage = subprocess.Popen(['which', 'wkhtmltoimage'],
stdout=subprocess.PIPE).communicate()[0].strip()
if not self.xvfb:
if sys.platform == 'win32':
self.xvfb = subprocess.Popen(['where', 'xvfb-run'],
stdout=subprocess.PIPE).communicate()[0].strip()
else:
self.xvfb = subprocess.Popen(['which', 'xvfb-run'],
stdout=subprocess.PIPE).communicate()[0].strip()

Lines 15-27 in config.py have an issue, due to the lack of an stderr argument, it ALWAYS prints the stderr to console. This, for me, printed the message INFO: Could not find files for the given pattern(s). Adding stderr=subprocess.DEVNULL to each subprocess.Popen fixed it.

reticivis-net added a commit to reticivis-net/mediaforge that referenced this issue Jan 13, 2021
reticivis-net added a commit to reticivis-net/mediaforge that referenced this issue Jan 22, 2021
@jarrekk
Copy link
Owner

jarrekk commented Mar 13, 2021

@HexCodeFFF good suggestion, could you create a PR?

reticivis-net added a commit to reticivis-net/mediaforge that referenced this issue Dec 6, 2023
reticivis-net added a commit to reticivis-net/mediaforge that referenced this issue Dec 6, 2023
reticivis-net added a commit to reticivis-net/mediaforge that referenced this issue Dec 6, 2023
reticivis-net added a commit to reticivis-net/mediaforge that referenced this issue Dec 6, 2023
reticivis-net added a commit to reticivis-net/mediaforge that referenced this issue Dec 6, 2023
reticivis-net added a commit to reticivis-net/mediaforge that referenced this issue Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants