#๐ Error starting a windows service containing a python script
30 messages ยท Page 1 of 1 (latest)
@calm mulch
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.
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.
!ytdl
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)
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.
if i bring another code and i run the service and give me the exact same error, will i then get help?
another code that has nothing to do with ytdl
well, we already know what the motive is, so no
look
there is no bad motive here
it is python and the way it works with windows services
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.
ok, explain why python won't work with windows services
unless a moderator says it's okay, you're not going to get any help
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
sorry, it's a matter of policy that we can't help with TOS breaking projects
i'll be closing this now
!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.