Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

204
Vistas
PermissionError(13, 'Permission denied') when importing pandas from Python script on Webhosting Service

I am running the following script from a Webhosting service (Apache), where pandas and all it's dependencies are in the same folder. Importing Numpy works fine, importing pandas however throws an exception. I tried it with different version of pandas too (0.24.0, 0.24.2 etc.)

#!/usr/bin/env python3
import sys
import traceback

print('Content-type: text/html\r\n')
print('\r\n')
print('Hello, World!')
print (sys.version)
print('\r\n')

sys.path.append(".")

try:
    import pandas as pd
    print(pd.__version__)
except:
    traceback.print_exc()
    print(sys.exc_info())

Browser Output:

Hello, World! 3.5.2 (default, Oct 8 2019, 13:06:37) [GCC 5.4.0 20160609] (, PermissionError(13, 'Permission denied'), ) 

The reason I am using python on a server is that I already have a python script that depends on pandas and would like to reuse it in a php/web project without the need to rent a whole server. Any clue on how to fix it or how to gather more information on why it fails would be appreciated

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda