HelioHost Posted April 15, 2025 Posted April 15, 2025 Username: mortaine, Server: Tommy, Main domain: mortaine.helioho.stGreetings! I signed up for a domain on Tommy today, in order to host a limited-use discord bot. I'm having a little trouble because the bot is installed and running, and I've added it to my discord server, but it's not actually working. I think this might be because of some required components. The developer for the bot says that these are needed on the server in order for the bot to work: discord.py aiosqlite Pillow I know discord.py is installed. However, I am not sure about aiosqlite or Pillow. Can you provide any guidance on getting these to work on my server? Thank you so much for all that you do! -- -- Stephanie Bryant http://www.linkedin.com/in/mortaine stephanie@mortaine.com
HelioHost Posted April 15, 2025 Author Posted April 15, 2025 Python 3.12. Here's the error when I try to start the bot: [2025-04-15 19:02:52] Starting ProgressClock.py. Traceback (most recent call last): File "/home/mortaine.helioho.st/ProgressClock.py", line 7, in import aiosqlite ModuleNotFoundError: No module named 'aiosqlite' On Tue, Apr 15, 2025 at 11:39?AM HelioHost Support wrote: > Are you using Python 3.9 or Python 3.12? > > You may view the status of your ticket by visiting: > > https://helionet.org/index/index.php?showtopic=64143 > > Thank you, > HelioHost support > https://heliohost.org/ > https://helionet.org/ > > -- -- Stephanie Bryant http://www.linkedin.com/in/mortaine stephanie@mortaine.com
HelioHost Posted April 15, 2025 Author Posted April 15, 2025 Ah, my developer says 3.9.13. I updated the code to call that instead. Same error message, though. On Tue, Apr 15, 2025 at 12:04?PM Stephanie Bryant wrote: > Python 3.12. Here's the error when I try to start the bot: > > [2025-04-15 19:02:52] Starting ProgressClock.py. > Traceback (most recent call last): > File "/home/mortaine.helioho.st/ProgressClock.py", line 7, in > import aiosqlite > ModuleNotFoundError: No module named 'aiosqlite' > > > > On Tue, Apr 15, 2025 at 11:39?AM HelioHost Support > wrote: > >> Are you using Python 3.9 or Python 3.12? >> >> You may view the status of your ticket by visiting: >> >> https://helionet.org/index/index.php?showtopic=64143 >> >> Thank you, >> HelioHost support >> https://heliohost.org/ >> https://helionet.org/ >> >> > > -- > -- > Stephanie Bryant > http://www.linkedin.com/in/mortaine > stephanie@mortaine.com > -- -- Stephanie Bryant http://www.linkedin.com/in/mortaine stephanie@mortaine.com
Krydos Posted April 15, 2025 Posted April 15, 2025 Yeah, modules aren't installed unless you request them. There are probably millions of Python modules so installing all of them by default would be ridiculous. The module aiosqlite has been installed on Tommy's Python 3.9. You can see the current list of installed modules at https://krydos1.heliohost.org/pyinfo/info3.9.py
HelioHost Posted April 15, 2025 Author Posted April 15, 2025 Ah, thank you for that list-- very helpful. Unfortunately, when I restart the bot, it still gives the same error message: [2025-04-15 20:25:28] Starting ProgressClock.py. Traceback (most recent call last): File "/home/mortaine.helioho.st/ProgressClock.py", line 7, in import aiosqlite ModuleNotFoundError: No module named 'aiosqlite' How would I make sure the installed module is imported correctly in my script? Here are the imports for this script: > import discord > from discord.ext import commands, tasks > from discord import app_commands > import aiosqlite > from datetime import datetime, timedelta > from PIL import Image, ImageDraw, ImageFont > import io > from math import cos, sin, radians > Also, one of the requisites for this bot is "Pillow" (imported above as PIL) I don't see that module installed. Is there a way for me to install it? --Stephanie On Tue, Apr 15, 2025 at 1:23?PM HelioHost Support wrote: > Yeah, modules aren't installed unless you request them. There are probably > millions of Python modules so installing all of them by default would be > ridiculous. The module aiosqlite has been installed on Tommy's Python 3.9. > You can see the current list of installed modules at > https://krydos1.heliohost.org/pyinfo/info3.9.py > > You may view the status of your ticket by visiting: > > https://helionet.org/index/index.php?showtopic=64143 > > Thank you, > HelioHost support > https://heliohost.org/ > https://helionet.org/ > > -- -- Stephanie Bryant http://www.linkedin.com/in/mortaine stephanie@mortaine.com
HelioHost Posted April 15, 2025 Author Posted April 15, 2025 #!/usr/bin/python3.9 On Tue, Apr 15, 2025 at 2:19?PM HelioHost Support wrote: > What shebang are you using in the Discord bot? > > You may view the status of your ticket by visiting: > > https://helionet.org/index/index.php?showtopic=64143 > > Thank you, > HelioHost support > https://heliohost.org/ > https://helionet.org/ > > -- -- Stephanie Bryant http://www.linkedin.com/in/mortaine stephanie@mortaine.com
Krydos Posted April 15, 2025 Posted April 15, 2025 I tested importing that module and it works just fine without any errors # /usr/bin/python3.9 Python 3.9.21 (main, Dec 5 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import aiosqlite >>> exit() If you set up a virtual environment you could install modules yourself, but since SSH is only available on VPS plans (not Tommy that you chose) you would need to use CGI to do it, which isn't simple. The other downside to having a virtual environment is it would use up a lot of your disk space. For instance, there are some Python modules that take 5 GB, which obviously wouldn't even fit in a 1000 MB Tommy account.
HelioHost Posted April 15, 2025 Author Posted April 15, 2025 Thanks for the help. I will check into that as a solution and see/decide what will work best. --Stephanie On Tue, Apr 15, 2025, 2:27?PM HelioHost Support wrote: > I tested importing that module and it works just fine without any errors # > /usr/bin/python3.9 Python 3.9.21 (main, Dec 5 2024, 00:00:00) [GCC 11.5.0 > 20240719 (Red Hat 11.5.0-2)] on linux Type "help", "copyright", "credits" > or "license" for more information. >>> import aiosqlite >>> exit() If you > set up a virtual environment you could install modules yourself, but since > SSH is only available on VPS plans (not Tommy that you chose) you would > need to use CGI to do it, which isn't simple. The other downside to having > a virtual environment is it would use up a lot of your disk space. For > instance, there are some Python modules that take 5 GB, which obviously > wouldn't even fit in a 1000 MB Tommy account. > > You may view the status of your ticket by visiting: > > https://helionet.org/index/index.php?showtopic=64143 > > Thank you, > HelioHost support > https://heliohost.org/ > https://helionet.org/ > >
Recommended Posts