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. Currently the wiki page : http://wiki.helionet.org/Django, shows wrong python version. I tried editing but I guess I Don't have required Privileges. Currently it shows: 3.6.6 It should be: 3.6.3
  2. One of my web app requires that the file is created for example on: '/home/patents/public_html/mysite/log.txt' but I got PermissionError at /[Errno 13] Permission denied: '/home/patents/public_html/mysite/log.txt' It is understood that it is not enabled for web server. Is there any way I can modify files using python3.6 script?
  3. Does anybody uses postgress (or any database) with django (ORM). I am struggling as there is no shell access. I don't know if it is possible to use django ORM on heliohost.
  4. If possible Please install these libraries. These are very basic modules that will be usefull for all. beautifulsoup4 Cython html5lib python-docx numpy pandas python-hdf4 requests six xlrd XlsxWriter openpyxlThanks. I have to use python 3.6.3 I guess.
  5. Is there any restriction on outbound Internet access from My Django app so that if I cross that limit, I will be blocked? I started to love heliohost and I don't want to be blocked.
  6. I am trying to work with postgress on tommy with django. here is django settings.py import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'secret' DEBUG = True ALLOWED_HOSTS = ['*'] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'wsgi.application' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'patents_plrplus', 'USER': 'patents_plr', 'PASSWORD': '', 'HOST': 'localhost', 'PORT': '3306', } } AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True STATIC_URL = '/static/'
  7. I would like to install python-docx for my user account on tommy. is it possible?
  8. I was trying Django to work on tommy. I am following this tutorial. My directory structure is: home/└── patents/ └── public_html/ ├── db.sqlite3 ├── manage.py └── hello/ ├── .htaccess ├── dispatch.wsgi ├── __init__.py ├── settings.py ├── urls.py ├── wsgi.py └── dispatch.wsgi I am however not able to see .htacess file using cPanner filemanager. I recently created the account. Is this the reason for error? I am getting this error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at webmaster@patents.heliohost.org to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. Please find attached the zipfile of my project.
  9. Hello, could you install gspread and oauth2client for python? Im on ricky
  10. Hi, Please install selenium module. My username:navidivn Server:Tommy Python Version:3.x
  11. Hi all, Now project dependencies seems to be satisfied, my Django website is not properly configured because it is not loaded when accesing to https://inforiesgo.heliohost.org/ File .htaccess seems to be correct, I have followed the steps described in the Django wiki. I think the problem could be related to: Postgres: I created the postgres database and changed settings.py file in order to use this new database. Anyway, the creation of this database is just to create and asign it a superuser, not launching commands such as manage.py makemigrations or migrate, so the database should be empty. settings.py database configuration looks like: 'NAME': 'iniesta_inforiesgo', 'USER': 'iniesta_juanky', 'PASSWORD':*****, 'HOST':'127.0.0.1', 'PORT': '5432' static files: I made no changes related to the static files, so settings.py is the same than the one working in localhost:STATIC_URL = '/static/' Any help would be grateful. Thanks!
  12. Hello, I just uploaded my Django website and, after setting it up following the wiki, it is displaying a 500 internal server error when accesing to http://inforiesgo.heliohost.org I presume this is happening because my website is not properly configured (.htaccess, folder structure, ...) or because it is using the toolkit django-rest-framework that maybe is not installed in Tommy. Because of that, several questions came to my mind: Is it possible to install django-rest-framework (or other) in Tommy?Do I have access to the server error log files?My username in Tommy's server is iniesta. Thanks in advance!
  13. Hello, I would like to have these modules installed: gspreaddiscord.pyPython version: 3.6 Username: pyraz Server: Tommy Thanks in advance! -xRaZx
  14. Hi. I'm trying to get a simple Python script running: #!usr/bin/python3.6 print ("Hello") tried #!usr/bin/python3.6, #!usr/bin/python3, #!usr/bin/python without success. Also tried print "Hello" without parenthesis.the file is chmod 755 and is in the cgi-bin directory. What's wrong? user: ktulxxserver: Tommy. Thanks.
  15. This is the first time I have run a python app from a web host and I have been unable to get it to work. I set it up using web.py on my own computer. I have run it via localhost:8080 on my computer and everything was functional there, but I can't figure out how to get it to work after it has been uploaded. I saw https://www.helionet.org/index/topic/28800-how-to-set-indexpycgi-as-default-index/?hl=python and tried the steps listed in that post as well to no avail. Ultimately that user needed to have python installed and I wanted to know if that was the solution for me as well. I am on server johnny I used python 2.7.10 thanks for any help!
  16. Hi, I need Python 3.6,Bottle,django framework, and mailjet_rest installed on the instance allocated to me. Please do the needful. Need to host a bottle framework based website/one pager. Regards, Wilbur
  17. Hello. Install 'pandas', 'numpy', 'scipy' and 'seaborn' for Python 3.6 at Ricky please. Thanks a lot.
  18. I would like some help to get a python script to work. I am familiar with python and running it on a web server (local Apache with minimum configurations). I have scoured most of the wiki and forums for help. The most straight-forward post I found (a 'hello world') is here: http://www.helionet.org/index/topic/21335-deploying-python-first-timer-here/?hl=python. I have followed that post with a new file edited through cPanel using us-ascii format placed in the cg-bin folder. I changed the permissions to 777 (I realize 755 should be sufficient). I added .py to the Apache Handlers. I edited the .py file to use no semi-colon and with ';' as in the example. I even added a .htaccess file with only the content suggested in the forum post, even though I believe I shouldn't need it. Through all my editing and configuration searching in forums and the wiki I still end up with a 500 error (which could be many things - from the forum searches). I've attached a screenshot of the file. I'm sure there's something stupid/simple I've overlooked. Best regards, BT
  19. Install please 'tabulate' and 'cherrypy' packages for Python 3.6 at Ricky.
  20. Hello. I want to host Telegram bot written in python 3 which uses long polling at Ricky server. So, I uploaded files to my public_html. I have written #!/usr/bin/python3.6 as the first line of my main file bot.py and have given 755 permission to it. So, my question is how to run my bot for ever on Heliohost? Cron jobs don't seem to be a solutiuon or I just don't understand how to use them for my case. Any answers are appreciate.
  21. I am creating a line messaging API bot, so I needed the Line api library, the link is https://github.com/line/line-bot-sdk-python, or in pypi https://pypi.python.org/pypi/line-bot-sdk Thanks a lot for your assistance!
  22. How could I set up a forwarding address that pipes to a Python script? What path should the script be at?
  23. Hi... please help me... I'm just have one of problem. I want to use python but i don't know to setting to flask. i did searching google, file: public-html/cgi-bin/cgi.cgi #!/usr/bin/python from wsgiref.handlers import CGIHandlerfrom views import appimport osimport cgitb; cgitb.enable() os.environ['SERVER_NAME'] = '127.0.0.1'os.environ['SERVER_PORT'] = '5000'os.environ['REQUEST_METHOD'] = 'GET'os.environ['PATH_INFO'] = ""CGIHandler().run(app) file: views.py from flask import Flaskapp = Flask(__name__) @app.route("/")def hello(): return "This is Hello World!\n" if __name__ == "__main__": app.run() file: .htaccess RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ /home/USERNAME/public_html/cgi-bin/cgi.cgi/$1 [L] ... i had connect to host on web it's just show me that text '/Index' also i was uploaded files that i made to python files and html files in templates folder but it is not working. My english is so bad...sorry. please help me ㅠㅠㅠㅠ
  24. Hi Would it be possible to use Python with Flask on Heliohost (my account is on the Tommy server)? I'm interested in building a server with a REST API and doing it with Flask would make this a lot easier to me. Thanks!
  25. Hello, I'm currently able to use Python v2.7.5 for CGI Scripts. But I instead need to use any 3.x version, from 3.1-thru-3.6(preferred). What version(s) are available on Tommy, and what is the correct Shebang line? Thanks!!
×
×
  • Create New...