Open ulloaa opened 1 year ago
Hi @ulloaa,
That's a strange error.
Is it picking up the correct version of the snakemake executable? If you do which snakemake
you should see the one in the pore-c-snakemake conda environment. Another way to run it is python -m snakemake
(assuming that which python returns the correct version).
It might be worth pinning a specific version of numpy in the environment.yaml
file by adding the line - numpy=1.23.0
to it?
Sorry - that's all I can think of for now.
To build off of the above, I received a very similar Attribute Error when I ran it; though it returned AttributeError: module 'numpy' has no attribute 'object'. Did you mean: 'object_'?
, as opposed to module 'numpy' has no attribute 'bool'
. Will update if specifying the numpy version in the .yaml fixes this.
Update: I appear to still receive the same Attribute Error message even after pinning numpy 1.23.0 in the environment.yml file. I also then tried pinning numpy 1.24.0 but got the same results.
There's something wrong with your python environment - have you successfully created conda environments before? It's a long shot, but you don't have a "numpy.py" file in your path? (https://bobbyhadz.com/blog/python-attributeerror-module-numpy-has-no-attribute-array).
It might help to attach the output of the "env" command along with "which python"
Hello, we continue to have the same error, with two independently created environments, one by @jlguidubaldi1 and the other one by myself. Can I ask which python version did your use in your tests? Thanks.
I also faced the same problem, but I solved it by reinstalling numpy 2.3.1 version.
pip uninstall numpy
pip install numpy==1.23.1
Not only will there be problems with the numpy
version of the initial environment, but the conda sub-environment created for the cooler
will also have problems with the numpy version during subsequent runs. I solved it smoothly by adding -numpy==1.23.1
to the Pore-C-Snakemake/envs/cooler.yml
file.
Recent numpy updates removed a lot of old functionality, fixed versions now seem to be a more significant issue.
Completely agree. We fixed our attribute error(s) by downgrading numpy in the main environment as well as in the other environments that were automatically created by the first snakemake run. In retrospect, this was an easy fix but we spent many days working on it because we were overlooking the environments automatically created by snakemake at runtime. A more permanent fix could be achieved by specifying the complete environment in the yml files. It would be great if the authors could do that directly in the repository. Thanks!
Hello, I followed the steps to install a linux conda environment and run pore-c-snakemake. However, I get the following error when running the test data set:
The following are the versions of numpy and python that came with the environment:
Do you have any suggestions on how to solve the error above?
Thank you.