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. 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!!
  2. I am new to heliohost. I am running a python script which needs module tweepy. www.tweepy.org can you please install python module tweepy. I am trying to run a script which demand this. I tried installing using comand "pip install tweepy" cron job. but it gives error says pip command not found. i am on tommy server. Thanks and you guys are doing great job.
  3. I am new to heliohost. I am running a python script which needs module tweepy. www.tweepy.org can you please install python module tweepy. I am trying to run a script which demand this. I tried installing using comand "pip install tweepy" cron job. but it gives error says pip command not found. i am on johnny server. Thanks and you guys are doing great job.
  4. I cannot run Python scripts on HelioHost at my URL http://benesolutions.heliohost.org/cgi-bin/test.py. It is a simplest script with the following content: #!/usr/bin/python print("Content-type: text/html\n\n") print("This is a Python script text.") Permissions are 0755, as recommended. The server response was Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@benesolutions.heliohost.org and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Could you clarify please what I’m doing wrong.
  5. I use Python 3 to develop my website, because it works very nice with Unicode and has many other small conveniences that I like. I used CGI, but it seems very slow. The website engine has really much to "cache" and running a single process should be significantly better than starting a new one every time. So I would like to use the WSGI interface, but there seems to be no way to point it to Python 3, not 2.7. I did look through the internet and that doesn't seem easy to implement. But I'm quite desparate, as Python 2 is not an option for me So is it possible to run Python 3 through mod_wsgi on HelioHost? If yes, how?
  6. Hi everyone Noob here. Sorry. First of all, I am looking forward to getting my teeth into scripting with Python and MySQL. I have my first simple script running, so all good there. However... I have looked at a lot of forum posts. Many seem to ask the same question, but none seem to provide any firm advice. Before anyone points me towards: http://www.heliohost.org/home/features/languages/python, can someone give me a Big Picture overview of Python, Django and why I can't import mySQLdb into my scripts? First of all, I thought my script was buggy, but even this doesn't work: #!/usr/bin/python import MySQLdb ...and I get a 500 error. The link above seems to give a series of instructions (for which I am very grateful), but these are very bottom-up. I am looking to make connections to make sense. Once I get my first mySQLdb script running, I'll be flying (I hope). Fingers crossed spangle (Darren)
  7. Hi, I am trying to deploy a Django App in Johnny, but it requires numpy. I tried to copy the numpy's source code into my public_folder and import it from there, but numpy is not supposed to be imported from the source tree, since it has some C libraries dependecies. Is it possible tha you would consider installing numpy and matplotlib in Johnny? I appreciate your attention. Best regards, Pedro
  8. So I'm new to HelioHost and created a domain not long ago. I uploaded my own web page in a html file which works perfectly, but I also want to be able to execute a python script with cgi from it. I tried executing my Python script from the html page in my own local server and it works fine, but when I upload both the html and my python script (the latest on the cgi-bin folder) it doesn't work. The code in the html is the next : <form action="/cgi-bin/script.py" method"GET"> <fieldset> <br>First seiyuu:<br> <input type="text" name="name"> <br>Second seiyuu:<br> <input type="text" name="name"> <br><input type="submit" value="Submit"><br> </fieldset> </form> Pretty much I just execute my 'script.py' when you click the submit button. And this is the code for my python script: script.py #!/usr/local/bin/python print "Content-type: text/html" print print "<html>" print '<body>' print '<p> Hello World</p>' print "</body>" print "</html>" When I click the submit button on my html page, I just get an Error 500. My index.html and all the files in the cgi-bin (including the folder itself) have the permissions set to 755 (All can be full executable). Does anyone have any idea on what might be causing the error? Thanks in advance
  9. I am a newbie so sorry for the silly questions my ques is How can i install the python modules in stevie server actually i want to install third party module name pafy and does heliohost support the shell commands?
  10. Hi all, I am trying to write my first CGI script using Python on my shared virtual web server. I put the script under 'public_html' in the 'cgi-bin' folder on my web server. I made the script executable with the chmod +x command. For the she-bang I am using #! /usr/bin/env python so that the script will be able to find any Python interpreter and not a specific one at a specific location. I made a test form to call the script from when a button is clicked but I just receive a 500 Internal Server error when trying to run this script. I messed around some with the location of the cgi script, which is a .py file in this case, but only received 404 errors. Does anyone reading this know what I am missing? Here is my Python script: #! /usr/bin/env python print "Content-type:text/html\r\n\r\n" print '<html>' print '<head>' print '<title>Hello Word - First CGI Program</title>' print '</head>' print '<body>' print '<h2>Hello Word! This is my third or fourth or so CGI program</h2>' print '</body>' print '</html>' Here is my HTML code that calls the Python script: <!DOCTYPE html> <head> <title>Test CGI Scripting With Python</title> </head> <body> <center> <form action="cgi-bin/hello.py" method="post"> Click this button <input type="submit" value="Submit" /> </form> </center> </body> </html> Thank-you for reading this everybody. Respectfully, minus
  11. Hi my username for heliohost is pianist1119 and my domain is pianist1119.me. When i try to test my cgi script by inputing "pianist1119.me/cgi-bin/basic.cgi" into my web browser i get an internal server error. Any help would be greatly appreciated and thanks in advance
  12. Hi everybody, I am quite excited to be starting my first website with heliohost, and am happy to join this community. My first challenge: I have a python cgi script, that calls a module, the files for which are placed in the same folder as the python cgi script. the folder is placed as a sub folder under the cgi-bin folder. I have placed the python shebang line(#!/usr/bin/python), the content type (print("Content-type: image/png\n")), and made the entire subfolder and its contents chmod permission 755. the code in my file is as follows: #!/usr/bin/python from pychartdir import * # The data for the bar chart data = [85, 156, 179.5, 211, 123] # The labels for the bar chart labels = ["Mon", "Tue", "Wed", "Thu", "Fri"] # Create a XYChart object of size 250 x 250 pixels c = XYChart(250, 250) # Set the plotarea at (30, 20) and of size 200 x 200 pixels c.setPlotArea(30, 20, 200, 200) # Add a bar chart layer using the given data c.addBarLayer(data) # Set the labels on the x axis. c.xAxis().setLabels(labels) # Output the chart print("Content-type: image/png\n") binaryPrint(c.makeChart2(PNG)) I placed all the files for the pychartdir module in the same folder. but it still doesnt work. the link is here: http://promtech.heliohost.org/ . (its the 3rd broken link) I would appreciate very much if anyone here can point out something I have been missing. I have tried to find the answers on these forums and google, but have come up with nothing that works. Many thanks in advance! John
  13. I am trying to run a python test script but am getting a 500 error instead. Permissions are 755 and I added the py extension to Apache Handlers. The link to the test script/my website: http://closedgw.heliohost.org/test.py My question is, what could I be doing wrong?
  14. Hello! I host django project on heliohost (server Johny) and get strange behavior of .htaccess .htaccess RewriteEngine On RewriteBase / RewriteRule ^(static/.*)$ - [L] RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(dispatch\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ lkd_site/dispatch.wsgi/$1 [QSA,PT,L] thith this config I had 500 Internal server error (and no error message in logs) If I change last line to RewriteRule ^(.*)$ lkd_site/dispatch.wsgi [QSA,PT,L] then I can see django message that there is no rule for lkd_site/dispatch.wsgi in me urls.py (ofcourse its true) and dispatch.wgsi file #!/usr/local/bin/python2.7 import os import sys sys.path.insert(0, "/home/vkudak/public_html/lkd_site") sys.path.insert(0, "/home/vkudak/public_html") sys.path.insert(0, "/home/vkudak/public_html/django") # this is path to django 1.6 os.environ['DJANGO_SETTINGS_MODULE'] = 'lkd_site.settings' os.environ['PYTHON_EGG_CACHE'] = '/home/vkudak/.python_egg_cache' import django.core.handlers.wsgi _application = django.core.handlers.wsgi.WSGIHandler() def application(environ, start_response): environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO'] return _application(environ, start_response)
  15. I guest I've followed How do I use Python/Django? perfectly, exept the sentence: If it is your wish to develop on-site you will need to manually create a blank __init__.py file, a settings.py file, and a urls.py file. And after that, after following the guide, my specified subdirectory is now have an 500 Internal Server Error.. Do I need to install the Django web development framework manually before it'll work? Please help..
  16. How to make a Python file directly under the document root of a hosted domain (and not under the "/public_html/cgi-bin" directory), executable? I mean, how can I achieve to execute my Python file e.g. at www.example.com/index.py and not at www.example.com/cgi-bin/index.py ?
  17. Hello! I'm trying to use a bottlepy script Bottlepy is a one-file framework (http://bottlepy.org) This is the hello world example I am trying to get working (straight from documentation, apart from the shebang) #!/usr/local/bin/python2.7 from bottle import route, run @route('/hello') def hello(): return "Hello World!" my bottle.py file is in the same directory (/maxartmod.tk), which is an addon domain as well This is my .htaccess file in that directory Options +ExecCGI AddHandler cgi-script .cgi .py RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.wsgi/$1 [L] the helloworld's name is index.wsgi When I navigate to maxartmod.tk/hello I get an Internal server error How can I solve this problem? Thanks in advance :)/&--#62;
  18. Welcome to my new post. If you are here then you were asking this question to google at some point to start programming your own website. I decided to share this information and help you get on the right patch to becomming a great programmer and website developer. "You are your limit" Alejandro Chataing For you to learn and apply there are some things about computers that you should know before coding. If you are like me, you would like to start learning right now. So if you feel inspired and eager to start learning right now before learning how to configure everything in a website then I will show you this: www.codecademy.com is a free place where you can start learning how to code HTML/CSS/JavaScript/Php/Python/Ruby for free. To learn with them you require 0 previous knowledge on any programming language, so if you are like I was, this is the right place to start learning. I reckon this site is idiot-proof and anyone who wants to start building a big idea should learn how to code. So if you feel like coding is imposible then try this website: www.codecademy.com They have built a good courses system to help yo implement the code they teach right on their web. Once you have finished learnning html/css/javascript/jquery/php (3 days for me), I suggest you come back to www.heliohost.com and do the following: 1) Go to http://www.heliohost.org/home/signup choose a server and signup 2) Go to http://my.dot.tk/cgi-bin/login01.taloha and join providing email & pass. You can signup there using a facebook/google/windows live/yahoo/aol/flirck account instead if you own one using just 1 click 3) Go to http://my.dot.tk/cgi-bin/domain-add.taloha and enter any name for your website 3.1) Choose "free" then "Next" 3.2) Choose "Use DNS for this domain" and notice that the option "Use Dot TK Free DNS Service" is selectedThere is another option you need to choose right below the text areas that are displayed. This option is "Use my own DNS Services" (above Use this domain for TK Mailias only) 3.3) Choose "Use my own DNS Services" and another set of text areas appear: in Host Name: put ns1.heliohost.org leave IP address blank and put ns2.heliohost.org under the first and leave the second IP address blank aswell 3.4) Register the name for a year and fill the captcha code and click "NEXT" 4)go to http://www.heliohost.org/home/ and scrolldown to the buttom. Enter you cPanel username and password 5) Create a new domain using "your-website-name.tk" and wait 24 to 48 hours until you can access "your-website-name.tk" from any computer in the world 5.1) If after waiting 48 hours you can not see anything but a standard Queued website go to http://www.helionet.org/index/forum/81-suspended-and-queued-accounts/ At this point you have yourself a free hosting, a free domain and your inicial inspiration is starting to materialize since soon enough your-website-name.tk will be public to the world 6) Since you are a newbie at programming you need to implement your new coding skills offline before putting in all together in this hosting service. So for you this is the simplest way: Go to http://www.w3schools.com/default.asp for reference when coding Go to http://www.htmlgoodies.com/ for extra reference You are wondering why I am not suggesting codecademy for referece. Because you are a newbie and codeacademy was to learn and apply with the help of their website and now you need to do it offline and those websites I put have all the info codecademy taught you and you will understand them more easily. I recommend you do not fall in love of any particular website so you can gain the knowledge from internet. It does not mean that you can not go back to codecademy, your work there has merly started. 7) Create 1 folder in your computer (does not matter where) name it what you want and create 3 files using notepad "index.html", "stylesheet.css" "scrip.js"
  19. I have followed every step to make my Django powered site (leolanchas.com.ar/syte) to work but all I get is an error 500 and the following log: [sun Jan 06 11:53:23 2013] [error] [client 83.36.255.43] File ".../public_html/syte/dispatch.wsgi", line 6, in ? [sun Jan 06 11:53:23 2013] [error] [client 83.36.255.43] mod_wsgi (pid=19418): Exception occurred processing WSGI script .../public_html/syte/dispatch.wsgi'. [sun Jan 06 11:53:23 2013] [error] [client 83.36.255.43] mod_wsgi (pid=19418): Target WSGI script '.../public_html/syte/dispatch.wsgi' cannot be loaded as Python module What is happening?
  20. I created a website using Django 1.5, and I managed to get it running on HelioHost! Here's what I did, after following the instructions at http://www.heliohost...anguages/python... First, I downloaded the Django-1.5.1.tar.gz file from the Django website. Then, I extracted it and uploaded the Django-1.5.1/django/ folder to /home/username/django_1.5_override/django. I also created an empty __init__ file in /home/username/django_1.5_override, to tell Python that it could import stuff from here. I'm not sure if it's needed, though. I then added a few lines to the dispatch.wsgi file; the modifications are in the first 3 lines: import os, sys oldpath = sys.path sys.path = ['/home/username/django_override/django-1.5.1/'] + oldpath sys.path.append("/home/username/myapp"); os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp.settings' os.environ['PYTHON_EGG_CACHE'] = '/home/username/.python_egg_cache' import django.core.handlers.wsgi _application = django.core.handlers.wsgi.WSGIHandler(); def application(environ, start_response): environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']; try: # added so that I can see errors if they occur; should be removed once the website is fully functional return _application(environ, start_response) except Exception, e: import traceback trace = traceback.format_exc() status = '500 Internal Server Error' output = trace response_headers = [('Content-type', 'text/plain'),('Content-Length', str(len(output)))] start_response(status, response_headers) return [output] Basically, what I did was to add the Django 1.5.1 folder to the beginning of sys.path, so that when Python needs to import django, it imports my uploaded one instead of the default one. After following these steps, Django 1.5.1 is running perfectly, and I can make use of all the new features!
  21. At the website it says that heliohost offers python 2.7. But when I run my script, it uses python 2.4 and some things don't work in that version. Can I solve this? Or will I need an account on the other server or something else?
  22. I'm proposing that HelioHost the wepay module for PHP, Ruby, Python, C#, and maybe Java. They SDK is free and Open Source and I think would make a great addition to the hosting service. https://www.wepay.com/developer/resources/sdks PLease consider this. UPDATE: This module might also need the web module for python. http://webpy.org/install
  23. domain name: prostyblog.heliohost.org username: jnktrine servername: johnny Hi Helio. I have the same (i think) problem as in this topic: http://www.helionet.org/index/topic/7255-dispatchwsgi-cannot-be-loaded-as-python-module/page__hl__djangotestdispatch.wsgi__fromsearch__1 error log: [Wed Mar 06 11:30:01 2013] [error] [client 79.185.145.212] File "/home/jnktrine/public_html/blog/dispatch.wsgi", line 5, in ? [Wed Mar 06 11:30:01 2013] [error] [client 79.185.145.212] mod_wsgi (pid=513): Exception occurred processing WSGI script '/home/jnktrine/public_html/blog/dispatch.wsgi'. [Wed Mar 06 11:30:01 2013] [error] [client 79.185.145.212] mod_wsgi (pid=513): Target WSGI script '/home/jnktrine/public_html/blog/dispatch.wsgi' cannot be loaded as Python module. line 5 is: import django.core.handlers.wsgi Could I please for help?
  24. I tried to run my python files which uses PIL module but couldn't run because PIL is no provided? Will Admin provide the solution to this or do i need to shift to another hosting? frankly i dont want to shift because i kinda like heliohost
  25. Hi, Is it possible to use other Python framework like web2py instead of Django on Heliohost? How could I set it up? Thank you, Christian
×
×
  • Create New...