Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

191
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda