#๐Ÿ”’ Error starting a windows service containing a python script

30 messages ยท Page 1 of 1 (latest)

pastel basaltBOT
#

@calm mulch

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

calm mulch
calm mulch
# calm mulch <https://pastebin.com/9jC67JN6>

when i start the service that has the replied code, i get this popup:
"Failed to start the audio_downloader service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error.
Contact your system administrator if the problem persists."

#

i already tried to check the event logger but got this:

Started C:\Program Files\Python313\python.exe C:\Users\mikoyan_32\Desktop\Laboratory\audio_server\main.py for service audio_downloader in C:\Program Files\Python313.

Program C:\Program Files\Python313\python.exe for service audio_downloader exited with return code 1.

Killing process tree of process 20304 for service audio_downloader with exit code 1

Killing PID 20304 in process tree of PID 20304 because service audio_downloader is stopping.

Service audio_downloader action for exit code 1 is Restart. Attempting to restart C:\Program Files\Python313\python.exe.

Service audio_downloader ran for less than 1500 milliseconds. Restart will be delayed by 128000 milliseconds.

Service audio_downloader received STOP control, which will be handled.

Requested stop of service audio_downloader.  No action is required as program C:\Program Files\Python313\python.exe is not running.
fair dove
#

!ytdl

pastel basaltBOT
#
Our youtube-dl, or equivalents, policy

Per Python Discord's Rule 5, we are unable to assist with questions related to youtube-dl, pytube, or other YouTube video downloaders, as their usage violates YouTube's Terms of Service.

For reference, this usage is covered by the following clauses in YouTube's TOS, as of 2021-03-17:

The following restrictions apply to your use of the Service. You are not allowed to:

1. access, reproduce, download, distribute, transmit, broadcast, display, sell, license, alter, modify or otherwise use any part of the Service or any Content except: (a) as specifically permitted by the Service;  (b) with prior written permission from YouTube and, if applicable, the respective rights holders; or (c) as permitted by applicable law;

3. access the Service using any automated means (such as robots, botnets or scrapers) except: (a) in the case of public search engines, in accordance with YouTubeโ€™s robots.txt file; (b) with YouTubeโ€™s prior written permission; or (c) as permitted by applicable law;

9. use the Service to view or listen to Content other than for personal, non-commercial use (for example, you may not publicly screen videos or stream music from the Service)
calm mulch
#

it is not ytdl that i need assistance with @fair dove

#

Windows Services

rain jungle
#

Unfortunately you are working with yt_dlp and as a general rule of thumb, this server doesn't provide help for things that break ToS of platforms.

calm mulch
#

another code that has nothing to do with ytdl

rain jungle
#

well, we already know what the motive is, so no

calm mulch
#

look

#

there is no bad motive here

#

it is python and the way it works with windows services

rain jungle
#

sure, but it's against YouTube's ToS, and they're a big company. This server's existence would be at jeopardy if people started helping out with stuff like this.

calm mulch
#

ok, explain why python won't work with windows services

rain jungle
#

unless a moderator says it's okay, you're not going to get any help

calm mulch
#

look i could definitly lie and show u another code

#

and still get the exact error

#

but my mother always told that honesty lasts the longest

#

let it slide this time, please !

#

you might learn of this and help a guy in the future that is having same issue ( but different code )

#

how to tackle the issue between python and windows services

#

@rain jungle

desert jetty
#

i'll be closing this now

#

!close

pastel basaltBOT
#
Python help channel closed with !close

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.