Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[infra] Atualização do requirements.txt / requirerements.txt com problemas na importação (Python) #1700

Closed
tiagolofi opened this issue Jan 25, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@tiagolofi
Copy link

tiagolofi commented Jan 25, 2024

Descrição

Saudações! Este problema se parece com o visto em #1684

Collecting basedosdados
  Downloading basedosdados-1.6.1-py3-none-any.whl (44 kB)
     ---------------------------------------- 44.8/44.8 kB 170.1 kB/s eta 0:00:00
Collecting Jinja2==2.11.2 (from basedosdados)
  Downloading Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)
     ---------------------------------------- 125.8/125.8 kB 819.4 kB/s eta 0:00:00
Collecting ckanapi==4.6 (from basedosdados)
  Downloading ckanapi-4.6.tar.gz (32 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting click==8.0.3 (from basedosdados)
  Downloading click-8.0.3-py3-none-any.whl (97 kB)
     ---------------------------------------- 97.5/97.5 kB 1.4 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of basedosdados to determine which version is compatible with other requirements. This could take a while.
Collecting basedosdados
  Downloading basedosdados-1.6.0-py3-none-any.whl (41 kB)

Após iniciar o processo de instalação da versão mais recente, o processo é abortado e inicia a instalação de uma versão mais antiga da biblioteca.

Acerca da instalação do pandas, recebo a seguinte mensagem:

 UPDATING build\lib.win-amd64-cpython-312\pandas/_version.py
      set build\lib.win-amd64-cpython-312\pandas/_version.py to '1.2.4'
      running build_ext
      building 'pandas._libs.algos' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pandas

Considero essa versão bem antiga, o que pode causar problemas de importação nas versões mais recentes do python (3.11 e 3.12) além do retorno de um erro desnecessário que referencia o MV Cpp como necessário.

Reproduzir

  1. Crie um venv usando python 3.12 e ative-o;
  2. Escreva no terminal "pip install basedosdados";
  3. Veja os erros

Desktop (preencha as seguintes informações):

  • SO: Windows
@tiagolofi tiagolofi added the bug Something isn't working label Jan 25, 2024
@tiagolofi
Copy link
Author

tiagolofi commented Jan 25, 2024

Vi aqui que há um ajuste nisso para a versão 2.0, alguma previsão de quando será lançada?

@tiagolofi
Copy link
Author

Encontrei aqui no pypi as versões beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants