Search the Community
Showing results for tags 'Python'.
-
Note: This is specific to HelioHost. There was a NameError in some code on line 87. Line 87 of my code was: return MySQLdb.connect(**kwargs) I modified it to: return mysql.connector.connect(**kwargs) mysql.connector has been imported in the file. Hence, no NameError should show up. Yet, the error still shows up in the logs. In the wiki it is mentioned that it takes several hours to purge the cache. However, in my case, the log files show the updated code but still have the same error. For example: return mysql.connector.connect(**kwargs) NameError: 'MySQLdb' is not defined What is happening here? Is it a caching issue, or something which I should do on my side? (I can share the code if required)
-
Hello, I want to host a telegram bot made in python, and I made it with the python-telegram-bot module. I found some older posts about installing python modules, and the link that was there pointing to the list of installed modules doesn't work. In case it isn't installed, would it be possible for you to do so? python-telegram-bot-raw would be enough (it has less features, but I didn't use those that don't exist in the raw module). I've also seen some posts concerning excessive loads with hosting bots. I don't think my bot would have this problem, since it doesn't interact in any way with the users (so it doesn't need to constantly probe for new messages). It just sends a message when a new event is posted on the website of a student association I belong to, and I could adjust the polling period for the site if I notice it's causing too much load. Thank you in advance
-
Hey Admin, please can you install this python library: https://pypi.org/project/Flask-Moment/ Server: Tommy Python: 3.7 Thanks
-
Hey Admin, could you please install the aiosqlite Python library? https://pypi.org/project/aiosqlite/ Johnny, Python Version 3.7 Thanks!
-
For my django app, i need some other python packages. Here the packages that i need : urllib3 lxml passlib bcrypt pillow django-markdown-deux django-markdown2 psycopg2 gunicorn requests Thanks !
-
Hi, could you please install this python module on Tommy server with python3.7: flask-mail Your contribution to this awesome service is appreciable! Thank you!
- 5 replies
-
- python
- python module
-
(and 1 more)
Tagged with:
-
Hi there, I'm in Johnny server. I followed how to start flask app in the server. I'm just wondering how to import function from the cloudapi.py to the myapp.py, for example: file: myapp.py from cloudapi import * Structure of the folder in /home/mowaseem/public_html/flask/ | |_____ .htaccess | |_____ cloudapi.py | |_____ flask.wsgi | |_____ myapp.py | |_____ settings.conf
-
Hi there! Im in the Johny Server, wanted to request for the following library: https://pypi.org/project/cloudshare/ Thank you
-
This script is copied from this tutorial: https://wiki.helionet.org/tutorials/discord-bot My script: https://alaister.net/cgi-bin/start_bot.py #!/usr/bin/python3.7 print("Content-Type: text/html\n\n") import os, subprocess, signal counter = 0 p = subprocess.Popen(['ps', '-u', 'lj'], stdout=subprocess.PIPE) out, err = p.communicate() for line in out.splitlines(): if 'alaisterbot.py'.encode('utf-8') in line: counter += 1 print("Discord bot is already online!") if counter == 0: subprocess.Popen("/home/lj/alaisterbot.py") print("Starting Discord bot...")When I open the file in the browser, it doesn't even return anything. No errors. Just a blank white page. I expect it shows 'starting discord bot' or 'bot is already online'. The discord bot is also offline after running this. Please help. Server: Tommy cPanel username: lj
-
I need the UUID python library for my flask app, on the Johnny server. It is not in the list of installed libraries, is there any way to get it installed?
-
Kindly stop python process in my account and guide accordingly for starting and stopping of python process
-
Hello, Can you please install "wikipedia" Module on Python 3.7 on Johnny Server? For more Reference on the Module - https://pypi.org/project/wikipedia/ Waiting for your Response, Thanks and Regards
-
Hello, I am new to Heliohost and already have a few problems. First of all, I can't access cPanel. When I login to https://www.heliohost.org/login/ and use the "continue to cPanel" button, I end up on a loading error page. Is it because it needs a really good internet connection ? If so, what should I do, as I cannot get a better one for now ? Secondly, I would like to host a Django application. I tried to follow the wiki-tutorial (https://wiki.helionet.org/tutorials/django), but all I get is a "basic hosting" of the files, and the app itself is not launched: when I go to my web address (mywebname.heliohost.us), I only get a list of the files and directories (db.sqlite3, manage.py, ...). If I host regular files (like .html files), I can access/see them without any problem. - Do you see what I could have missed when uploading my django app ? - What is the difference between the tutorial I followed (https://wiki.helionet.org/tutorials/django) and this one http://www.heliohost.org/classic/features/languages/python ? In particular, the second one says something about python's eggs, and that is not mentioned at all in the first one, so ... which is the "good" one ? Thanks in advance for any answer, hoping that my English is not too horrid ...
-
Hello, I just discovered this site !I want to host a python script for free.Is it possible here or elsewhere?I wanted to try aws but you have to enter your credit card information, which I can't do :/
-
Hi Admin, can you please install this python libraries: fastapi uvicorn pydantic Server: Tommy Python version: 3.7 Thanks
-
Hi all, when I try to run a flask app on the tommy server, pymongo gives me this error, how can I fix it? "cluster0-shard-00-01.fhsrc.mongodb.net:27017: [Errno 111] Connection refused,cluster0-shard-00-02.fhsrc.mongodb.net:27017: [Errno 111] Connection refused,cluster0-shard-00-00.fhsrc.mongodb.net:27017: [Errno 111] Connection refused, Timeout: 30s, Topology Description: <TopologyDescription id: ugkctamdzd6nvshm69miov4r topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('cluster0-shard-00-00.fhsrc.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('cluster0-shard-00-00.fhsrc.mongodb.net:27017: [Errno 111] Connection refused')>, <ServerDescription ('cluster0-shard-00-01.fhsrc.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('cluster0-shard-00-01.fhsrc.mongodb.net:27017: [Errno 111] Connection refused')>, <ServerDescription ('cluster0-shard-00-02.fhsrc.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('cluster0-shard-00-02.fhsrc.mongodb.net:27017: [Errno 111] Connection refused')>]>" Instead if i run the app with my pc on the localhost i don't get any error.
-
My script uses the some modules from the standard library, praw and pint https://github.com/hgrecco/pint I'm on johnny and I think praw is already installed so how do I install pint? https://jac0b.heliohost.org/
-
Hi, I am developing a telegram bot and I need the installation of this two modules: feedparser (https://pypi.org/project/feedparser/) gspread (https://gspread.readthedocs.io/en/latest/) Username: pgarcia Server: Tommy Domain: matchandgos.heliohost.org Python Version: 3.7 Thank you in advance, Patricio
-
Hello, Could you please install some python packages for my Flask backend jonny server peewee flask-jwt-extended flask_cors sentry-sdk[flask]==0.16.2 Thank you!
-
I'm sorry if this is a silly nooby question, i'm a total beginner on running Python on a web server. I'd like to run a Python script that requires some packages (such as pymal, pytorch, torch, opencv, pycocotools and detectron2). Is it possible to install them on the Python version installed on the server? How do i do that? In my pc i would do pip install but there is no terminal here Thanks in advance. (B.T.W. I am using Rick if it changes)
-
Hello I am working on a app. I'm using heliohost as a server. I'm running Ricky, Python 3.6 I need the missing modules: joblibsurprisemysql-connector-pythonshortuuid Thank you very much.
-
Hello, I would like to know if there is a way to stop a python script running in cgi-bin, since I don't have access to the shell I don't find a way to do it. Thanks in advance. username:sebas server:johnny python3.6
-
Hello, Discord bots written in python using discord.py module (idk what about other technologies) stopped working on 30 May - both on local PCs and on your hosting too - because of some certificate expiration. Solution for local Windows PCs is to start Internet Explorer as administrator, go to discord.com and install some certificate using lock icon on address bar. I have no idea how to fix this on a linux server though. Here's one of stackoverflow posts: https://stackoverflow.com/questions/62102897/certifacte-verify-failed-certificate-has-expired-ssl-c1108 Error text: raise ClientConnectorCertificateError( aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host discordapp.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1108)')] Here's article found by @sohamb03 on your discord server that might help: https://www.namecheap.com/support/knowledgebase/article.aspx/10228/14/sectigo-root-certificate-expiring-may-30-2020 I don't know if this helps, but in other stackoverflow post I found this without explanation:
- 5 replies
-
- discord
- discord.py
-
(and 2 more)
Tagged with: