Open PauBadiaM opened 2 years ago
Hi, I just upload v0.1.10 to pypi can you see if that resolves this?
Thanks for the quick reply @brentp!
Unfortunately the error still persists with version 1.10. What is very puzzling is that installation in several local machines (all different OS) works without a problem, but it fails when running through GitHub Actions. I know this is out out of the scope, but am I doing something wrong here?
This is my setup.py
file:
from setuptools import setup, find_packages
setup(
name="decoupler",
version="0.0.1",
install_requires=["numba",
"sklearn",
"tqdm",
"anndata",
"skranger",
"fisher"
],
packages=["decoupler"],
python_requires=">=3.8",
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
)
And my .yml
file
name: build
on:
push:
branches: [ main, development ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install .
- name: Test with unnittest
run: |
python -m unittest tests/test_*
Maybe the error could be coming from an update in actions/setup-python@v2
or actions/checkout@v2
?
Not sure, are you using python 3.8 in your local setup?
Yes, exactly the same Python and dependencies' versions.
I have created a toy repository to reproduce the error, here: https://github.com/PauBadiaM/test_CI_fisher
Again, in local when I run the test it works fine, but when GitHub's CI tries it, it crashes with the same error: https://github.com/PauBadiaM/test_CI_fisher/runs/5106465412?check_suite_focus=true
I was testing and removing numba
seems to work:
https://github.com/PauBadiaM/test_CI_fisher/runs/5106492033?check_suite_focus=true
What is weird is that the numba
version is the same in my local machines than in GitHub's, so I'm at a loss of what could be happening.
must be some difference in the numpy versions. Can you check that your repo has same numpy as local?
From a scratch conda environment:
conda create -n test_CI python=3.8
conda activate test_CI
If I add numba as a requirement in setup.py
and install it with:
pip install git+https://github.com/PauBadiaM/test_CI_fisher.git
Machine | Package | Version |
---|---|---|
Local | numba | 0.55.1 |
GitHub's | numba | 0.55.1 |
Local | numpy | 1.21.5 |
GitHub's | numpy | 1.21.5 |
Local | fisher | 0.1.9 |
GitHub's | fisher | 0.1.9 |
As you can see the versions are exactly the same, however on local python -m unittest tests/test.py
works but not on GitHub's machine. Interestingly, if I bump fisher
's version to 0.1.10 it crashes in my local too.
I also tried different versions of numpy
in both local an in GitHub's machine.
With a fixed fisher==0.1.9
, versions of numpy
from 1.21.5
to 1.20.0
(included) work on local but crash in GitHub's. numpy
's version 1.19.0
crashed on local so I didn't check any further versions.
Hi,
First of all I wanted to thank you for this amazing package, this implementation of Fisher's exact test is insanely fast!
I'm developing a package and I would like to include
fisher
as a dependancy. The problem is, that recently (2022/01/31) my GitHub's Continuous Integration started breaking apart (I found out by updating some documentation, so not changing any dependencies), this is the error:Basically it breaks when importing
fisher
. Since the packages are exactly the same version as before, I'm very puzzled on what could be happening. Apparently is something aboutnumpy
being compiled in different versions across packages. The dependencies installed are:I'm installing the package via pip, could this be a problem? Have you seen something similar, or could you know where the error is coming from?
Thank you for your time