Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update statsmodels #1288

Open
NejcZavrsan opened this issue Nov 5, 2024 · 1 comment
Open

Update statsmodels #1288

NejcZavrsan opened this issue Nov 5, 2024 · 1 comment

Comments

@NejcZavrsan
Copy link

NejcZavrsan commented Nov 5, 2024

Chaquopy version

1.15.1

Relevant parts of your build.gradle file

chaquopy {
    defaultConfig {
        buildPython("C:/Users/<username>/AppData/Local/Programs/Python/Python38-32/python.exe")

        pip {
            install("joblib")
            install("numpy")
            install("pandas")
            install("pyyaml")
            install("scipy")
            install("tsfresh")
        }
    }
    productFlavors {
        getByName("<our_flavour>") { version = "3.8" }
    }
}

...

ndk {
            abiFilters.add("armeabi-v7a")
        }

Describe your issue

It would be great if you added all libraries that tsfresh uses to your pre-built repository. In our case build fails seemingly because not all tsfresh dependencies are pre-built by chaquopy.
We want to use a custom python library in our android app which uses tsfresh, scipy and other dependencies.
I think this line in the build process explains it:

"Building wheels for collected packages: statsmodels, numba, llvmlite"

Build log:

Collecting tsfresh
  Using cached tsfresh-0.20.3-py2.py3-none-any.whl (95 kB)
Collecting chaquopy-libgfortran>=4.9
  Using cached https://chaquo.com/pypi-13.1/chaquopy-libgfortran/chaquopy_libgfortran-4.9-0-py3-none-android_16_armeabi_v7a.whl (394 kB)
Collecting chaquopy-openblas>=0.2.20
  Using cached https://chaquo.com/pypi-13.1/chaquopy-openblas/chaquopy_openblas-0.2.20-5-py3-none-android_16_armeabi_v7a.whl (4.0 MB)
Collecting python-dateutil>=2.7.3
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Collecting chaquopy-libcxx>=10000
  Using cached https://chaquo.com/pypi-13.1/chaquopy-libcxx/chaquopy_libcxx-11000-0-py3-none-android_16_armeabi_v7a.whl (237 kB)
Collecting pytz>=2017.3
  Using cached pytz-2024.2-py2.py3-none-any.whl (508 kB)
Collecting cloudpickle
  Using cached cloudpickle-3.1.0-py3-none-any.whl (22 kB)
Collecting scikit-learn>=0.22.0
  Using cached https://chaquo.com/pypi-13.1/scikit-learn/scikit_learn-1.1.3-1-cp38-cp38-android_21_armeabi_v7a.whl (7.1 MB)
Collecting requests>=2.9.1
  Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Collecting stumpy>=1.7.2
  Using cached stumpy-1.13.0-py3-none-any.whl (176 kB)
Collecting patsy>=0.4.1
  Using cached patsy-0.5.6-py2.py3-none-any.whl (233 kB)
Collecting statsmodels>=0.13
  Using cached statsmodels-0.14.1.tar.gz (20.3 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Collecting tqdm>=4.10.0
  Using cached tqdm-4.66.6-py3-none-any.whl (78 kB)
Collecting six>=1.5
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting threadpoolctl>=2.0.0
  Using cached threadpoolctl-3.5.0-py3-none-any.whl (18 kB)
Collecting chaquopy-libomp>=9.0.9
  Using cached https://chaquo.com/pypi-13.1/chaquopy-libomp/chaquopy_libomp-9.0.9-0-py3-none-android_16_armeabi_v7a.whl (246 kB)
Collecting urllib3<3,>=1.21.1
  Using cached urllib3-2.2.3-py3-none-any.whl (126 kB)
Collecting charset-normalizer<4,>=2
  Using cached charset_normalizer-3.4.0-py3-none-any.whl (49 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.10-py3-none-any.whl (70 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2024.8.30-py3-none-any.whl (167 kB)
Collecting numba>=0.57.1
  Using cached numba-0.58.1.tar.gz (2.6 MB)
Collecting packaging>=21.3
  Using cached packaging-24.1-py3-none-any.whl (53 kB)
Collecting llvmlite<0.42,>=0.41.0dev0
  Using cached llvmlite-0.41.1.tar.gz (146 kB)
Collecting importlib_metadata
  Using cached importlib_metadata-8.5.0-py3-none-any.whl (26 kB)
Collecting zipp>=3.20
  Using cached zipp-3.20.2-py3-none-any.whl (9.2 kB)
Building wheels for collected packages: statsmodels, numba, llvmlite
  Building wheel for statsmodels (PEP 517): started
  Building wheel for statsmodels (PEP 517): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\nejc.zavrsan\StudioProjects\tablet-android-app\app\build\python\env\MESI_DEVDebug\Scripts\python.exe' 'C:\Users\nejc.zavrsan\StudioProjects\tablet-android-app\app\build\python\env\MESI_DEVDebug\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\NEJC~1.ZAV\AppData\Local\Temp\tmpypzuf178'
       cwd: C:\Users\nejc.zavrsan\AppData\Local\Temp\pip-install-zhs3g1p_\statsmodels
  Complete output (1543 lines):
  running bdist_wheel
  running build
  running build_py
  creating build\lib.win32-cpython-38\statsmodels
  copying statsmodels\api.py -> build\lib.win32-cpython-38\statsmodels
  copying statsmodels\conftest.py -> build\lib.win32-cpython-38\statsmodels
  copying statsmodels\_version.py -> build\lib.win32-cpython-38\statsmodels
  copying statsmodels\__init__.py -> build\lib.win32-cpython-38\statsmodels
  creating build\lib.win32-cpython-38\statsmodels\base
  ...
  copying statsmodels\tsa\vector_ar\tests\results\e1.dat -> build\lib.win32-cpython-38\statsmodels\tsa\vector_ar\tests\results
  copying statsmodels\tsa\vector_ar\tests\results\e2.dat -> build\lib.win32-cpython-38\statsmodels\tsa\vector_ar\tests\results
  copying statsmodels\tsa\vector_ar\tests\results\e3.dat -> build\lib.win32-cpython-38\statsmodels\tsa\vector_ar\tests\results
  copying statsmodels\tsa\vector_ar\tests\results\e4.dat -> build\lib.win32-cpython-38\statsmodels\tsa\vector_ar\tests\results
  copying statsmodels\tsa\vector_ar\tests\results\e5.dat -> build\lib.win32-cpython-38\statsmodels\tsa\vector_ar\tests\results
  copying statsmodels\tsa\vector_ar\tests\results\e6.dat -> build\lib.win32-cpython-38\statsmodels\tsa\vector_ar\tests\results
  running build_ext
  building 'statsmodels.tsa.stl._stl' extension
  error: CCompiler.compile: Chaquopy cannot compile native code
  ----------------------------------------
ERROR: Failed to install statsmodels>=0.13 from https://files.pythonhosted.org/packages/4b/80/c4e279a6a13468ae2f1f01af2a07ddb44f397ac4d7636af13c5b3b83dde1/statsmodels-0.14.1.tar.gz#sha256=2260efdc1ef89f39c670a0bd8151b1d0843567781bcafec6cda0534eb47a94f6 (from tsfresh).
For assistance, please raise an issue at https://github.com/chaquo/chaquopy/issues.
Chaquopy: Exit status 1

> Task :app:generate...PythonRequirements FAILED
> Task :app:merge...PythonSources UP-TO-DATE
> Task :feature:smb:writeDebugAarMetadata UP-TO-DATE
@NejcZavrsan NejcZavrsan changed the title Tsfresh library does not build because statsmodels>=0.13 is missing Tsfresh library does not build because pre-built dependencies are missing Nov 5, 2024
@mhsmith mhsmith changed the title Tsfresh library does not build because pre-built dependencies are missing Update statsmodels Nov 5, 2024
@mhsmith
Copy link
Member

mhsmith commented Nov 5, 2024

We do support older versions of all of these packages, so you should check if there's an older version of tsfresh which is compatible with them.

  • For statsmodels, you might be able to build a newer version yourself by following the instructions here. If you're successful, please make a pull request so we can add the new version to the public repository.

    If anyone else needs a new version of this package, please click the thumbs up button above, and post a comment explaining why you need it.

  • For numba and llvmlite, see #834.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants