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

xrandr | grep "\*" | cut -d" " -f4 do not work on windows #3

Closed
Vaunorage opened this issue Mar 8, 2019 · 3 comments
Closed

xrandr | grep "\*" | cut -d" " -f4 do not work on windows #3

Vaunorage opened this issue Mar 8, 2019 · 3 comments

Comments

@Vaunorage
Copy link

Vaunorage commented Mar 8, 2019

Is this only supposed to work on linux because I think its a linux command...

xrandr | grep "*" | cut -d" " -f4

I get this error :

Using TensorFlow backend.
'xrandr' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File "C:/Users/vaun_/PycharmProjects/TUT-live-age-estimator/EstimateAge.py", line 23, in
controllerThread = ControllerThread.ControllerThread(params)
File "C:\Users\vaun_\PycharmProjects\TUT-live-age-estimator\ControllerThread.py", line 45, in init
self.resolution = [int(s) for s in self.resolution]
File "C:\Users\vaun_\PycharmProjects\TUT-live-age-estimator\ControllerThread.py", line 45, in
self.resolution = [int(s) for s in self.resolution]
ValueError: invalid literal for int() with base 10: ''

Thanks

@Vaunorage Vaunorage changed the title xrandr | grep "\*" | cut -d" " -f4 xrandr | grep "\*" | cut -d" " -f4 do not work on windows Mar 8, 2019
@AkkiLingwal96
Copy link

I'm facing the same issue.. did you find any solution?

@1vash
Copy link

1vash commented Mar 22, 2019

Use 'echo 1920x1080' (your display resolution, that's mine) instead of xrandr | grep "\*" | cut -d" :) Easy fix

@mahehu
Copy link
Owner

mahehu commented Mar 22, 2019

Thanks @innjoshka

This is indeed the solution, and the line is there only to figure out the display resolution automatically.

@mahehu mahehu closed this as completed Mar 22, 2019
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

4 participants