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.

Can't execute command

See original GitHub issue

Hi. I’m trying to execute command samsungctl --host 192.168.1.110 --port 8001 --method legacy KEY_CONTENTS but got an error

PS C:\WINDOWS\system32> samsungctl --host 192.168.1.110 --port 8001 --method legacy KEY_CONTENTS
Traceback (most recent call last):
  File "d:\program\python\python36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\program\python\python36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "d:\Program\Python\Python36\Scripts\samsungctl.exe\__main__.py", line 9, in <module>
  File "d:\program\python\python36\lib\site-packages\samsungctl\__main__.py", line 102, in main
    config = _read_config()
  File "d:\program\python\python36\lib\site-packages\samsungctl\__main__.py", line 32, in _read_config
    directories.append(os.path.join(os.getenv("HOME"), ".config"))
  File "d:\program\python\python36\lib\ntpath.py", line 75, in join
    path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType

UE-32EH5300

P.S. Also I can’t turn on TV when it’s off 😦

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
raydog153commented, Jan 22, 2019

This isn’t my code…just trying to help. I would try the forked library https://github.com/kdschlosser/samsungctl which has added some wake on lan functionality which does work for my tv model.

0reactions
advokatbcommented, Jan 23, 2019

Oh, I was using python script to WOL thru mac, not thru sending TV commands since most likely that will not work with my TV…

rboutotte@MacBook-Pro-2:~/samsungtv/samsungctl/samsungctl$ python wake_on_lan.py
Enter IP address:172.16.16.55
Found MAC: 38:01:95:54:53:13
Send WOL packet (Y/N)?Y

Problems are still here. This script asks only for IP adress, then shows an error abou get_macadress function and nothing happens. Nevermind. Thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Sims 4: Unable to Execute Command - Player Assist
So, to fix unable to execute command in Sims 4, make sure that you're in the game, and that you have selected a...
Read more >
Fix Sims 4 Cheats Unable To Execute Command (2022)
Using cheats or console commands but they are not working? Here are the reasons why & how to fix the Sims 4 Unable...
Read more >
[Solved] Fix Sims 4 “Unable To Execute Command”
To recap, “unable to execute command” usually happens when a player tries to execute commands in the main menu and not in the...
Read more >
Unable to execute commands in command prompt get ...
a) Click on “start” and type “cmd” (without the quotations). b) Right Click on the “cmd” icon and select “Run as administrator”.
Read more >
testingcheats true = unable to execute command
Now, whenever I enter testingcheats true into the command bar, it tells me "Unable to execute command". It doesn't matter what version I...
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