Skip to content

Error - ModuleNotFoundError: No module named 'requests_cache' #13

@tanga94

Description

@tanga94

Hi @faaez , I'm trying to use your package in R (through reticulate).

I used the py_install function in reticulate to install the package, which appears to have worked

py_install("git+git://github.com/faaez/capiq-python.git", pip = TRUE)
Collecting git+git://github.com/faaez/capiq-python.git
  Cloning git://github.com/faaez/capiq-python.git to c:\users\user\appdata\local\temp\pip-req-build-di6bexg5
  Running command git clone -q git://github.com/faaez/capiq-python.git 'C:\Users\user\AppData\Local\Temp\pip-req-build-di6bexg5'
Building wheels for collected packages: capiq-python
  Building wheel for capiq-python (setup.py): started
  Building wheel for capiq-python (setup.py): finished with status 'done'
  Created wheel for capiq-python: filename=capiq_python-0.1-py3-none-any.whl size=5075 sha256=98524e8be4e1a481e98e8540ec0e846da43d9245fbe3be6258d82fe86c1f7f7c
  Stored in directory: C:\Users\user\AppData\Local\Temp\pip-ephem-wheel-cache-ywpcow2t\wheels\e1\e0\7e\1d4caae461356a3f609e1033cc27f641cb22111c59cf6fe9f9
Successfully built capiq-python
Installing collected packages: capiq-python
  Attempting uninstall: capiq-python
    Found existing installation: capiq-python 0.1
    Uninstalling capiq-python-0.1:
      Successfully uninstalled capiq-python-0.1
Successfully installed capiq-python-0.1

However, when I try to run the following lines (using my username and password of course).

from capiq.capiq_client import CapIQClient
ciq_client = CapIQClient("Username", "Password"

I get the following error

Error in py_run_file_impl(file, local, convert) : 
  ModuleNotFoundError: No module named 'requests_cache'

Any idea what the issue could be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions