JuliaPy / JuliaPy/PyCall.jl

`LinearAlgebra.BLAS.vendor()` has been deprecated

Ouverte
#956 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Julia
Étoiles
1.5k
Forks
186
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

It looks like the `vendor()` function is deprecated in the following line of code:

https://github.com/JuliaPy/PyCall.jl/blob/9a084eb47c7176242893dd18a1782a1114cef02c/src/numpy.jl#L67

```
julia> import PyCall; PyCall.pyimport("jax").numpy.array([1.0])
┌ Warning: `vendor()` is deprecated, use `BLAS.get_config()` and inspect the output instead
│ caller = npyinitialize() at numpy.jl:67
└ @ PyCall ~/.julia/dev/PyCall/src/numpy.jl:67
...
```
I'm on python 3.9.9, numpy 1.21.4, Julia 1.7.1, and [438e738f] PyCall v1.93.0. This is running on NixOS 21.11.
```
julia> versioninfo()
Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, skylake-avx512)
```
Here's my shell.nix to reproduce the whole thing:
```nix
let
# Last updated: 1/10/22. From status.nixos.org.
pkgs = import (fetchTarball ("https://github.com/NixOS/nixpkgs/archive/8928525bd8b8cdc1235a92a89b72cbbe5bd8a00d.tar.gz")) { };
in
pkgs.mkShell {
buildInputs = with pkgs; [
# See https://github.com/NixOS/nixpkgs/issues/66716. Necessary for julia to
# be able to download packages.
cacert

julia_17-bin

python3
python3Packages.jax
python3Packages.jaxlib
];

# See https://github.com/JuliaPy/PyCall.jl/issues/952#issuecomment-1005694327
PYTHON = "${pkgs.python3}/bin/python";
}
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Commencez par src/numpy.jl à la ligne 67, où npyinitialize() déclenche l’avertissement de dépréciation de LinearAlgebra.BLAS.vendor(). Reproduisez le problème avec la commande Julia et PyCall.pyimport("jax").numpy.array([1.0]) indiquée dans le rapport, puis vérifiez que l’avertissement a disparu tandis que l’importation de NumPy/JAX fonctionne toujours.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
julia, numpy, python
Domaine
backend
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
55/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.