Running ‘testthat.R’ [16s/33s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > library(testthat)
  > library(stepcount)
  > 
  > testthat::test_check("stepcount")
  Downloading uv...Done!
  Downloading cpython-3.10.20-macos-aarch64-none (download) (24.7MiB)
   Downloaded cpython-3.10.20-macos-aarch64-none (download)
  Downloading pillow (4.6MiB)
  Downloading statsmodels (9.6MiB)
  Downloading pandas (10.3MiB)
  Downloading fonttools (2.8MiB)
  Downloading numpy (13.2MiB)
  Downloading scipy (27.4MiB)
  Downloading torchvision (1.2MiB)
  Downloading numba (2.5MiB)
  Downloading scikit-learn (7.3MiB)
  Downloading llvmlite (27.4MiB)
  Downloading torch (50.7MiB)
  Downloading transforms3d (1.3MiB)
  Downloading matplotlib (7.0MiB)
   Downloaded torchvision
   Downloaded transforms3d
   Downloaded fonttools
   Downloaded pillow
   Downloaded numba
   Downloaded statsmodels
   Downloaded matplotlib
   Downloaded scikit-learn
   Downloaded pandas
   Downloaded numpy
   Downloaded scipy
   Downloaded llvmlite
   Downloaded torch
  Installed 36 packages in 280ms
  Error in py_get_attr(x, name, FALSE) : 
    AttributeError: module 'stepcount' has no attribute 'stepcount'
  Run `reticulate::py_last_error()` for details.
  
  -- Python Exception Message ----------------------------------------------------
  
  -- R Traceback -----------------------------------------------------------------
  AttributeError: module 'stepcount' has no attribute 'stepcount'
       x
    1. \-stepcount::sc_read(file) at test-sc_read.R:4:5
    2.   \-stepcount:::stepcount_base()
    3.     +-base::try(...)
    4.     | \-base::tryCatch(...)
    5.     |   \-base (local) tryCatchList(expr, classes, parentenv, handlers)
    6.     |     \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    7.     |       \-base (local) doTryCatch(return(expr), name, parentenv, handler)
    8.     +-sc$stepcount
    9.     \-reticulate:::`$.python.builtin.module`(sc, "stepcount")
   10.       \-reticulate::py_get_attr(x, name, FALSE)
  See `reticulate::py_last_error()$r_trace$full_call` for more details.
  This message is displayed once per session.
  Saving _problems/test-sc_read-4.R
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 42 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-full_run.R:10:3', 'test-full_run.R:51:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-sc_read.R:4:5'): reading in a file works ───────────────────────
  <python.builtin.OSError/python.builtin.Exception/python.builtin.BaseException/python.builtin.object/error/condition>
  Error in `py_module_import(module, convert = convert)`: OSError: Could not find/load shared object file
  Run `reticulate::py_last_error()` for details.
  Backtrace:
      ▆
   1. └─stepcount::sc_read(file) at test-sc_read.R:4:5
   2.   └─stepcount:::stepcount_base()
   3.     └─reticulate::import("stepcount.stepcount")
   4.       └─reticulate:::py_module_import(module, convert = convert)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 42 ]
  Error:
  ! Test failures.
  Execution halted