Jump to content


Photo

[HH#355098] Problems when importing the psycopg2 library into Python


  • Please log in to reply
4 replies to this topic

#1 HelioHost

HelioHost

    Announcements

  • Moderators
  • 4,970 posts
  • Gender:Not Telling

Posted 24 March 2019 - 10:58 PM

Username: eeljuri, Server: Johnny, Main domain: eeljuri.heliohost.org

My user is: eeljuri

When I put the line in my program:
import psycopg2
bring back
"Internal Server Error"

#! / usr / bin / python
# - * - coding: cp1252 - * -

import sys
import urllib
import cgi
import cgitb
import psycopg2

cgitb.enable ()

print 'Content-type: text / html'
print # Prints an empty line, to end the headers
print
print 'Hello, world!'

Thank you,

--
Ernesto Contreras Eljuri.
Consultor
Tlf.: 0412-722.53.32
This is an unmonitored account for announcements only.
Wiki | Facebook | Twitter
Posted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted Image

#2 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 17,959 posts
  • Gender:Male

Posted 25 March 2019 - 01:47 AM

Would you prefer python 2.7 or would you rather use python 3.6?

#3 HelioHost

HelioHost

    Announcements

  • Moderators
  • 4,970 posts
  • Gender:Not Telling

Posted 25 March 2019 - 02:04 AM

Python 2.7

Thank
On Mar 24, 2019 9:17 PM, "Heliohost Support" wrote:

> Would you prefer python 2.7 or would you rather use python 3.6?
>
> You may view the status of your ticket by visiting:
>
> https://www.helionet...p?showtopic5410
>
> Thank you,
> Heliohost support
> https://www.heliohost.org/
> https://www.helionet.org/
>
>
This is an unmonitored account for announcements only.
Wiki | Facebook | Twitter
Posted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted Image

#4 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 17,959 posts
  • Gender:Male

Posted 25 March 2019 - 02:22 AM

Psycopg2 has been installed on python 2.7 on Johnny for you. You can see the currently installed modules with this link https://krydos2.heli...in/modules27.py

#5 HelioHost

HelioHost

    Announcements

  • Moderators
  • 4,970 posts
  • Gender:Not Telling

Posted 25 March 2019 - 02:25 PM

Thank you for your help!

I am ready.

El dom., 24 mar. 2019 a las 22:22, Heliohost Support ()
escribio:

> Psycopg2 has been installed on python 2.7 on Johnny for you. You can see
> the currently installed modules with this link
> https://krydos2.heli...in/modules27.py
>
> You may view the status of your ticket by visiting:
>
> https://www.helionet...showtopic=35410
>
> Thank you,
> Heliohost support
> https://www.heliohost.org/
> https://www.helionet.org/
>
>

--
Ernesto Contreras Eljuri.
Consultor
Tlf.: 0412-722.53.32
This is an unmonitored account for announcements only.
Wiki | Facebook | Twitter
Posted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users