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
machineonamission opened this issue Jan 13, 2021 · 1 comment
Open

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

machineonamission opened this issue Jan 13, 2021 · 1 comment

Comments

@machineonamission
Copy link

machineonamission 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.

machineonamission added a commit to machineonamission/mediaforge that referenced this issue Jan 13, 2021
machineonamission added a commit to machineonamission/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?

machineonamission added a commit to machineonamission/mediaforge that referenced this issue Dec 6, 2023
machineonamission added a commit to machineonamission/mediaforge that referenced this issue Dec 6, 2023
machineonamission added a commit to machineonamission/mediaforge that referenced this issue Dec 6, 2023
machineonamission added a commit to machineonamission/mediaforge that referenced this issue Dec 6, 2023
machineonamission added a commit to machineonamission/mediaforge that referenced this issue Dec 6, 2023
machineonamission added a commit to machineonamission/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