HelioHost Posted September 15, 2024 Posted September 15, 2024 Username: himanshu001, Server: , Main domain: himanshu001.heliohost.ushey, i can't find any option to enable the Python app in my server! On Mon, Sep 16, 2024 at 1:37?AM HelioHost wrote: > [image: HelioHost | Community powered free hosting for everyone.] > > Hey Himanshu001, > > Your new HelioHost account has been successfully created! > > You can use the link below to login now. Please be aware that your > dashboard and control panel are active, but it can take up to two hours for > your domain to be fully functional. > > We're still in the process of converting our systems to the new control > panel so not all the features are available yet, but we hope to have > everything 100% as soon as possible. The main things that are missing is > Java/JSP, the ability to edit DNS yourself, and the ability to add or > delete domains on your own. If you need a domain added just let us know and > we can add it for you. > > If you need help with anything or have any questions just let us know. You > can reply to this email, post on Discord, or post on our forum to get help. > Login Now > [image: Twitter] [image: Facebook] > [image: Phone Number] > <+1-802-884-3546> [image: Support Forum] [image: > Email] > ? 2005-2024 Helio Networks. All rights reserved. | Unsubscribe > >
wolstech Posted September 15, 2024 Posted September 15, 2024 Python just works...it doesn't require enabling to use. Please see this page for more information on getting started: https://wiki.helionet.org/tutorials/python
HelioHost Posted September 15, 2024 Author Posted September 15, 2024 then i have a request, I need help in the code, I am new to the telegram bot and want to host that bot into Helionet... But I didn't know how to host that online... On Mon, Sep 16, 2024 at 3:11?AM HelioHost Support wrote: > > Python just works...it doesn't require enabling to use. Please see this page for more information on getting started: https://wiki.helionet.org/tutorials/python > > You may view the status of your ticket by visiting: > > https://helionet.org/index/index.php?showtopic=62219 > > Thank you, > HelioHost support > https://heliohost.org/ > https://helionet.org/ >
Krydos Posted September 15, 2024 Posted September 15, 2024 You can follow this guide, but instead of using a Discord bot put your Telegram bot in instead https://wiki.helionet.org/tutorials/discord-bot
HelioHost Posted September 17, 2024 Author Posted September 17, 2024 Hey, i did what its said in the article, but when i tried to start the bot from this url: https://himanshu001.heliohost.us/bot_control/ Its shows me this error: [2024-09-17 10:28:18] Starting bot.py. index.sh: line 39: /usr/bin/python3.10: No such file or directory On Mon, 16 Sept 2024, 04:18 HelioHost Support, wrote: > You can follow this guide, but instead of using a Discord bot put your > Telegram bot in instead https://wiki.helionet.org/tutorials/discord-bot > > You may view the status of your ticket by visiting: > > https://helionet.org/index/index.php?showtopic=62219 > > Thank you, > HelioHost support > https://heliohost.org/ > https://helionet.org/ > >
HelioHost Posted September 17, 2024 Author Posted September 17, 2024 hey, sorry that error is fixed, i changed the version in index.sh from 3.10 to 3.9 and it worked, Now I got a new error of Flask Error: [2024-09-17 12:22:42] Starting bot.py. Traceback (most recent call last): File "/home/himanshu001.heliohost.us/bot.py", line 9, in from flask import Flask, request ModuleNotFoundError: No module named 'flask' Can you provide me with SSH Access? Because there is 2-3 more error I know will come On Tue, Sep 17, 2024 at 4:00?PM himanshu mehta wrote: > > Hey, i did what its said in the article, but when i tried to start the bot from this url: https://himanshu001.heliohost.us/bot_control/ > > Its shows me this error: [2024-09-17 10:28:18] Starting bot.py. > > index.sh: line 39: /usr/bin/python3.10: No such file or directory > > > On Mon, 16 Sept 2024, 04:18 HelioHost Support, wrote: >> >> You can follow this guide, but instead of using a Discord bot put your Telegram bot in instead https://wiki.helionet.org/tutorials/discord-bot >> >> You may view the status of your ticket by visiting: >> >> https://helionet.org/index/index.php?showtopic=62219 >> >> Thank you, >> HelioHost support >> https://heliohost.org/ >> https://helionet.org/ >>
KazVee Posted September 17, 2024 Posted September 17, 2024 SSH is disabled on the shared hosting accounts for security reasons. However it is possible to run jailed shell commands using Plesk's Scheduled Tasks (cron jobs) feature, you can read more about that here: https://wiki.helionet.org/faq#can-i-use-ssh If you need SSH access, you would need a VPS: https://heliohost.org/vps/ Flask on the Tommy server runs on Python version 3.12 only, if you need to run Flask on another version of Python, you'll need to get a VPS. You can read more about Flask here: https://wiki.helionet.org/tutorials/flask#tommy-server The Flask error should go away if you use Python 3.12, which has the module installed. Please let us know if you have any other issues.
HelioHost Posted September 17, 2024 Author Posted September 17, 2024 hey, i have 2 questions What is the exact path to Python 3.12 for running scheduled tasks or executing custom scripts? Is there any restriction on using Python 3.12 outside Flask or other applications? Also, after changing the version to 3.12, It's showing me this error: [2024-09-17 21:57:41] Starting bot.py. Traceback (most recent call last): File "/home/himanshu001.heliohost.us/bot.py", line 10, in from telegram import Update, InlineKeyboardButton, InlineKeyboardMarkup ModuleNotFoundError: No module named 'telegram' : On Tue, Sep 17, 2024 at 8:17?PM HelioHost Support wrote: > > SSH is disabled on the shared hosting accounts for security reasons. However it is possible to run jailed shell commands using Plesk's Scheduled Tasks (cron jobs) feature, you can read more about that here: https://wiki.helionet.org/faq#can-i-use-ssh If you need SSH access, you would need a VPS: https://heliohost.org/vps/ Flask on the Tommy server runs on Python version 3.12 only, if you need to run Flask on another version of Python, you'll need to get a VPS. You can read more about Flask here: https://wiki.helionet.org/tutorials/flask#tommy-server The Flask error should go away if you use Python 3.12, which has the module installed. Please let us know if you have any other issues. > > You may view the status of your ticket by visiting: > > https://helionet.org/index/index.php?showtopic=62219 > > Thank you, > HelioHost support > https://heliohost.org/ > https://helionet.org/ >
Krydos Posted September 18, 2024 Posted September 18, 2024 1) Scheduled tasks are run in a chroot so you can't access Python directly. The recommended work around is making a Python cgi script and then accessing it via https. More details can be found on our wiki https://wiki.helionet.org/tutorials/plesk/cron-jobs 2) No. 3) The module telegram has been installed. You can see the current list of installed modules and their versions for Tommy's Python 3.12 with this link https://krydos1.heliohost.org/pyinfo/info3.12.py
Recommended Posts