Jump to content

Search the Community

Showing results for tags 'python'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • Website Management and Coding
    • Technology and the Internet
    • Philosophy, Politics, and Science
    • Art and Entertainment
    • Other Discussion
  • HelioHost
    • Questions
    • Customer Service
    • How You Can Help
  • HelioNet
    • News
    • Contact HelioNet

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. Hi I am new to HelioHost. I need the following packages for my flask app on Johnny Server: newsapi
  2. How can I access the Johnny server shell? I have an application written in Django 3.0, but the server does not have this version, I wanted to update it for myself, and also install an SSL certificate Let's Encrypt
  3. 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:
  4. Hi, I have 2 requests to make: Could you please change my username to m96? Could you please install social-auth-app-django on Tommy, Python 3.7?
  5. Hi, How to configure background tasks, in flask/django(Python). Am used to celery module for running these tasks. Also I understand cron is restricted to once a day max. how do you guys handle such tasks on HelioHost? Br, akp
  6. Hi, I'm a newbie. How can I use Python (then Django) from cPanel since I didn't see it on the software section? Do I need to make a request for accessing it so it will be appeared on the cPanel or is there any way to do that? my username: ipurnama server: johnny Thanks for your help.
  7. So I'm on the Johnny server and it has the praw module already installed but the problem is that it is outdated at version 6.5.1 whereas the latest version is at 7.0.0. I wanted to upgrade it to the latest version for the additional functionality but I'm not sure how to since there's no shell access. Can anyone here upgrade it for me or will I have to switch to another server or something? My account is snekcode on the Johnny server.
  8. I tried to use subprocess as a way to continuously run a python script even after closing the browser, using the start and stop pages on https://flazepe.gitbook.io/heliohost/tutorials/discord-bot But no matter how long I waited, the script only ran when the "start" page was open, and when I tried to stop the script, it told me that there was no script to stop. my start script is #!/usr/bin/python3.7 print("Content-Type: text/html\n\n") import os, subprocess, signal counter = 0 p = subprocess.Popen(['ps', '-u', 'andyye03'], stdout=subprocess.PIPE) # must match your username --------^^^^^^^^ out, err = p.communicate() for line in out.splitlines(): if 'gaonnuriallimi.py'.encode('utf-8') in line: # ^^^^^^^^^^^----- this has to match the filename of your bot script counter += 1 print("Bot already running.") if counter == 0: subprocess.Popen("/home/andyye03/gaonnuriallimi.py") # ^^^^^^^^-- be sure to update it to your username print("Bot started!") and my stop script is #!/usr/bin/python3.7 import os, subprocess, signal print("Content-Type: text/html\n\n") counter = 0 p = subprocess.Popen(['ps', '-u', 'andyye03'], stdout=subprocess.PIPE) # must match your username --------^^^^^^^^ out, err = p.communicate() for line in out.splitlines(): if 'gaonnuriallimi.py'.encode('utf-8') in line: # ^^^^^^^--- this has to match the filename of your loop counter += 1 pid = int(line.split(None, 1)[0]) print("Stopping bot.") os.kill(pid, signal.SIGTERM) if counter == 0: print("Already stopped.")
  9. I wrote some code that continuously checks a site for changes and emails me when the change is made. However, the python script only seems to work when the site is open on the browser. Is there any way to prevent this? I want my script to keep running even after I leave the webpage.
  10. I followed the exact steps to running a python file. first i created a python script in public_html/cgi-bin then I started the python script with #!/usr/bin/python3.7 print("Content-Type: text/html\n\n") print("Example") which shoud give me the text "Example" when I visit sangwoo.heliohost.org/cgi-bin/really.py but it does not work. when i visit the url, it gives me a 404 error, not a 500 or any other error Also, when i visit the sangwoo.heliohost.org it saids "Ahoy! You're seeing this page because HelioHost has not gotten about to installing and configuring your account yet. This process usually takes 24 hours, and once it is complete your website should show up properly. While the account is being created we suggest taking a look at your control panel." does this mean that when I wait, It will work?
  11. I am a beginner that just started using heliohost, but some of the libraries that I use on my python code aren't supported on the server:( Is there a way to install these? my server is ricky and the libraries that I need are: requests bs4 smtlib ssl time os email please help
  12. Hi, I want to request the following Python module on Johnny python3.7 crtools 2.15.2 (or a newer release up to 2.9) It is a toolset to generate statistics for our clan within Clash Royale. It generates HTML Thanks in advance (waiting patiently for my queued webiste)
  13. Hi. First of all thanks in advance because of all amazing features! I need this module to use Telegram bot API as the name of module tell this too if I can. It can be installed by pip3 install python-telegram-bot also to kill two birds with one stone, currently I added #!/usr/bin/pythonat the first line of my .py script, but I want to use Python 3.7, how should I edit this line to use Python 3.7? below lines doesn't works: #!/usr/bin/python3.7 #!/usr/local/python3.7 #!/usr/local/bin/python3.7note that I Copy-paste the code into cPanel built-in editor and im not using windows (so there shouldn't be line-ending problem as I think!) code is here, located in Public_html : #!/usr/bin/python import requests print "Content-type: text/html\n\n" print "Python is working fine.\r\n <br>" contents = requests.get('https://random.dog/woof.json').json() url = contents['url'] print ('<img src="'+url+'">');thanks again.
  14. Hello, can we have: discord.ext library for python 3.7? It's for discord bots.
  15. Hey there, I am doing some socket and Python stuff and I am wondering is there a list of open Ports I can use ? I am using the Port 5050 right now but I can change it to anything if I have to.
  16. For my master thesis I need realtime GTFS data which can be retrieved and parsed with python. I have this script working locally. When executed here i get a 500 error. (Exec format error: exec of '***/cgi-bin/gtfsrealtime.py' failed: ***/cgi-bin/gtfsrealtime.py) Could it be that the modules from the google packages I'm importing are missing? (I've read on the forum that the requests package should be installed) Would it be possible to have them installed if so? (I am on Johnny using python 2.7) Thanks in advance! from google.transit import gtfs_realtime_pb2 from google.protobuf import json_format import requests feed = gtfs_realtime_pb2.FeedMessage() response = requests.get('https://***') feed.ParseFromString(response.content) json = json_format.MessageToJson(feed) f = open("test.json", "w") f.write(json) for entity in feed.entity: if entity.HasField('trip_update'): print entity.trip_update f.close()
  17. Greeting, This a newpie here, I got a problem (500 error) with the server caused by this code new_message = "<p dir=\"rtl\" lang=\"ar\" style=\"color:#e0e0e0;font-size:20px;\">رَبٍّ زِدْنٍي عِلمًا</p>" it works with my python shell, but not on the server, is the server cgi files can't take a foreign language? or is it my code? I'm not sure what to do to fix this. Please help me out! Thank you so much!! I appreciate your hard work UPDATE: FIXED! Thank you a lot UPDATE: FIXED! Thank you a lot
  18. Greetings, I am new to heliohost, using Ricky, and I'm working on a project that required 2 python libraries that wasn't available on heliohost. This is the version that works for me without getting a 500 error #!/usr/bin/python I'm not sure which version is running with that definition, but it's the only one working. I really need the NLTK version after 2017 (NLTK 3.3 or above) and heapq package to complete my code please if it's capable on the server. If it's not possible, I would really appreciate it if you could help me to install it directly with the pip! PS: I tried to install it using various ways, one of it was (got 500 error): #!/usr/bin/python import cgi from subprocess import call from sys import executable import pip call([executable,'-m', 'pip', 'install','--trusted-host=pypi.org', '--trusted-host=files.pythonhosted.org', 'nltk']) Thank you very very much for your work!! Please keep the awesome work
  19. I'm on johnny. both files in cgi-bin w/ 755 This (lf37.py) gives me 500 error #!/usr/bin/python3.7 print("Content-Type: text/html\n\n") print("Heliohost rules!") This (lf27.py) works #!/usr/bin/pythonimport sys print "Content-Type: text/html\n\n" print "Heliohost rules!\n\n<BR>" print sys.version_info Please advise.
  20. I want to run a python script, but I didn't find the right entry,can you help me ,tks
  21. I followed the tutorial of getting a flask app running on Heliohost. I changed the .htaccess file a bit so that public_html folder can be the source of my flask app rather than rikchan.heliohost.org/flask (that is my site btw). So all the links like rikchan.heliohost.org/meta is getting redirected to rikchan.heliohost.org/flask.wsgi/meta , which is also working but I would like my flask app to behave how it was intended to be. here is the website link https://rikchan.heliohost.org
  22. Some of these might already be on there but Im on ricky and would like these to be installed also my name is: thegamep asyncio git+https://github.com/Rapptz/discord.py@master psutil pytz timeago==1.0.13 yarl<1.2 requests pychalk dblpy
  23. Hello, I want Tinyec, Pycryptodome for my python script. Is there an Easy way to upload modules manually? If not Can you Upload these modules for me? Server: Johnny Server Python version: 3.7 Thanks In advance.
  24. import sys, osimport dialogflow_v2 as dialogflowimport codecs, json from twisted.internet import defer, endpoints, protocol, reactor, taskfrom twisted.python import logfrom twisted.words.protocols import irc I am making an IRC bot for an IRC server and would like to host it 24/7 it should be very low cpu intensive because it is a small server and I doubt that it will have more than a dozzen uses per hour. I don't see how to actually keep the script running though. Using the helloworld test (which does work) I assume that it only stays running while the browser window is open and restarts in a new instance every time someone opens the webpage? I also dont understand how to install dependencies? would I just package all of the required files into a folder and upload that? I understand that heliohost does not have a command interface. Is there some other way to pip install?
  25. Hi, I was looking to setup cron job to run a telegram bot with single personal use. But I am not able to setup cron job for execution. I'm looking to run the cron two times a day. I have not received any email notification thus believe that cron is not running. is there a way to see the running status of cron and errors of cron execution. Please assist me to properly setup the cron to run. Update: I got my cron to work by setting cron time to UTC. I referred an old post and was setting the time to PDT.
×
×
  • Create New...