pawelsikora / mkdocs-with-confluence

MkDocs plugin for uploading markdown documentation to Confluence via Confluence REST API
MIT License
67 stars 33 forks source link

Error: ModuleNotFoundError: No module named 'requests' #9

Open eclisia opened 1 year ago

eclisia commented 1 year ago

Dear @pawelsikora First : thanks for your plugin. I'm trying to use it with Gitlab CI/CD.

I've got some questions (some basic usage). But, before, let me present my configuration

Current configuration I used (and led to my issue)

Issue

When running, I've got the following pipeline error message

ModuleNotFoundError: No module named 'requests'

Complementary informations:

I've put my configuration for the plugin into the mkdocs.yml

plugins:
  - search:
      lang:
        - fr
        - en
  - macros
  - mkdocs-confluence: #For conversion of mkdocs into confluence
      host_url: https://my_confluence.fr/rest/api/content?type=page&spaceKey=bac&expand=ancestros&limit=100
      space: bac
      parent_page_name: Test_Florent
      username: myuser_name
      password: "MYPASSWORD!*ù$^4_with_special_character"
      verbose: true
      dryrun: true

AND LOT : thanks for your support.

pe1uca commented 1 year ago

Just ran into this issue. This isn't a problem with this plugin, but an issue of python, requests is not a default module, you need to install it.
Add - pip install requests to your gitlab ci

You'll find other missing modules, this is my before_script and is working properly.

    - pip install requests
    - pip install mistune
    - pip install md2cf
    - pip install mkdocs
    - pip install mkdocs-with-confluence
eclisia commented 1 year ago

Dear thanks for your feedback and support.

eclisia commented 1 year ago

It seems that I got a new error concerning SSL. Is there paramater to set the SSL ?