Partage
  • Partager sur Facebook
  • Partager sur Twitter

probleme pipeline gitlab pylint

    13 octobre 2022 à 17:59:07

    bonjour,

    j'essaie de faire tourner pylint sur une pipeline python, mais j'ai un probleme lors de l'import de mariadb.

    pourtant dans mon gitlab-ci, j'ai bien installé le package avec pip.

    avez vous une solution svp ?

    $ pip3 install mariadb
    Collecting mariadb
      Downloading mariadb-1.1.4.zip (97 kB)
         ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.4/97.4 kB 4.9 MB/s eta 0:00:00
      Preparing metadata (setup.py): started
      Preparing metadata (setup.py): finished with status 'done'
    Building wheels for collected packages: mariadb
      Building wheel for mariadb (setup.py): started
      Building wheel for mariadb (setup.py): finished with status 'done'
      Created wheel for mariadb: filename=mariadb-1.1.4-cp310-cp310-linux_x86_64.whl size=184120 sha256=bb097b0890dd043865a815db3d84aed9059dd6cc01c3896d4233a8014c816bb5
      Stored in directory: /root/.cache/pip/wheels/32/b3/cd/8d6e3a071187a45e4439b7d75967a8d9d0e7982d7c2f15990a
    Successfully built mariadb
    Installing collected packages: mariadb
    Successfully installed mariadb-1.1.4
    WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
    $ pylint test.py
    test.py:7:0: E0401: Unable to import 'mariadb' (import-error)

    -
    Edité par TagAda7 13 octobre 2022 à 19:00:18

    • Partager sur Facebook
    • Partager sur Twitter

    probleme pipeline gitlab pylint

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
    • Editeur
    • Markdown