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.

Clicking buttons in the 'Configurations' tab throw errors

See original GitHub issue

Hey there, thank you for the wonderful bot! Trying to understand where my issue lies here.

Every button (except ‘Read last log lines’) throws an error like this:

Traceback (most recent call last):
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\site-packages\psutil\_pswindows.py", line 780, in cmdline
    ret = cext.proc_cmdline(self.pid, use_peb=True)
PermissionError: [WinError 5] Access is denied: '(originated from OpenProcess)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\site-packages\psutil\_pswindows.py", line 679, in wrapper
    return fun(self, *args, **kwargs)
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\site-packages\psutil\_pswindows.py", line 695, in wrapper
    return fun(self, *args, **kwargs)
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\site-packages\psutil\_pswindows.py", line 783, in cmdline
    ret = cext.proc_cmdline(self.pid, use_peb=False)
PermissionError: [WinError 5] Access is denied: '(originated from OpenProcess)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\site-packages\telegram\ext\dispatcher.py", line 442, in process_update
    handler.handle_update(update, self, check, context)
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\site-packages\telegram\ext\conversationhandler.py", line 549, in handle_update
    new_state = handler.handle_update(update, dispatcher, check_result, context)
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\site-packages\telegram\ext\handler.py", line 160, in handle_update
    return self.callback(update, context)
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\btb_manager_telegram\handlers.py", line 148, in menu
    re = buttons.edit_coin()
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\btb_manager_telegram\buttons.py", line 364, in edit_coin
    if not get_binance_trade_bot_process():
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\btb_manager_telegram\utils.py", line 82, in get_binance_trade_bot_process
    name in proc.name() or name in " ".join(proc.cmdline())
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\site-packages\psutil\__init__.py", line 677, in cmdline
    return self._proc.cmdline()
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\site-packages\psutil\_pswindows.py", line 681, in wrapper
    raise convert_oserror(err, pid=self.pid, name=self._name)
psutil.AccessDenied: psutil.AccessDenied (pid=116, name='csrss.exe')

I can’t decypher what it means myself, but maybe you can help.

Thank you so much in advance!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
lorcalhostcommented, Apr 23, 2021

There seem to be some problems with your installation.
Running on Windows is a bit buggy in general, if you can I strongly recommend running it through Linux or Windows WSL

0reactions
KINOTheProducercommented, Apr 23, 2021

Upon proceeding, I get this:

←[33m[*] Setting things up for docker...←[39m
Traceback (most recent call last):
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 71, in docker_setup
    process = subprocess.Popen(
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 80, in docker_setup
    make_image()
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 36, in make_image
    check_process = subprocess.Popen(
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 195, in <module>
    main()
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 182, in main
    default()
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 148, in default
    docker_setup()
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 83, in docker_setup
    update_image()
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 62, in update_image
    delete_image()
  File "C:\Users\Anthony\Desktop\Binance Trade Bot\BTB-manager-telegram\docker_setup.py", line 25, in delete_image
    process = subprocess.Popen(command, stderr=SUBPIPE, stdin=SUBPIPE)
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Anthony\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Read more comments on GitHub >

github_iconTop Results From Across the Web

pressing tab button throws the error · Issue #925 - GitHub
Steps to reproduce the behavior: Go to any go file; go to new line and press tab; See error. Expected behavior should not...
Read more >
A button in the command bar is not working correctly
When a button is selected and nothing occurs, this is typically caused by an incorrect configuration of the command that's associated with the ......
Read more >
Clicking the submit button to go to the next tab only changes ...
In step1, I have this submit button to go to the next tab, it does update the URL, but the component does not...
Read more >
React Error Handling And Reporting With Error Boundary And ...
In this article, we'll explore the concept of error boundaries in a React application. We'll work through an example app to see how...
Read more >
Excel VBA Error Handling - All You Need to Know!
If you have corrected the error, you can click on the Run button in the ... kind of errors your VBA code is...
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