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

problems with initial usage #4

Open
LauraSkak opened this issue Jan 20, 2024 · 8 comments
Open

problems with initial usage #4

LauraSkak opened this issue Jan 20, 2024 · 8 comments

Comments

@LauraSkak
Copy link

Hey

I downloaded meth5 using conda. I'm getting the following error, when i'm using the software.

Traceback (most recent call last):
File "/home/lask/miniconda3/envs/meth5/bin/meth5", line 6, in
from meth5.main import main
File "/home/lask/miniconda3/envs/meth5/lib/python3.12/site-packages/meth5/main.py", line 4, in
from meth5.meth5 import MetH5File
File "/home/lask/miniconda3/envs/meth5/lib/python3.12/site-packages/meth5/meth5.py", line 10, in
from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/home/lask/miniconda3/envs/meth5/lib/python3.12/collections/init.py)

Is there some missing dependancies?

@snajder-r
Copy link
Contributor

Hi @LauraSkak,

It looks like python3.10 made changes to the Collections library. I had only tested the MetH5 package with python 3.7 and 3.8 and had hoped it would be a while before dependencies break, so I left the upper-end open in the package definition.

As a quick workaround, try

conda install python=3.9

Best,
Rene

@LauraSkak
Copy link
Author

Thank you so much for the quick respons! :)

@LauraSkak
Copy link
Author

now it says this;

Traceback (most recent call last):
File "/home/lask/miniconda3/envs/pycometh/bin/meth5", line 6, in
from meth5.main import main
File "/home/lask/miniconda3/envs/pycometh/lib/python3.9/site-packages/meth5/main.py", line 5, in
import meth5.main_create_m5
File "/home/lask/miniconda3/envs/pycometh/lib/python3.9/site-packages/meth5/main_create_m5.py", line 3, in
import tqdm
ModuleNotFoundError: No module named 'tqdm'

@snajder-r
Copy link
Contributor

snajder-r commented Jan 23, 2024

Weird, tqdm is a dependency that should be automatically installed with MetH5.

Please either try installing it manually with

conda install tqdm

or perhaps start from scratch. Create a new conda environment and then install

conda install -c snajder-r meth5 python=3.9

@snajder-r
Copy link
Contributor

Now that I got around to testing it myself, it seems python 3.8 works more reliably. So if you have issues installing it with python 3.9, try python 3.8.

@SanVerb
Copy link

SanVerb commented Apr 11, 2024

Hello

I also seem to have troubles with initial usage:

I created a new conda environment and then installed meth5 via: conda install -c snajder-r meth5

conda list gives as output:
image

but then: meth5 -h shows the following:
image

I'm not really sure what I missed.

(pip install meth5 does not work for me: "ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects"

Kind regards

Sanché Verbeeck

@mpodio81
Copy link

Hi,
Im trying to run I can not. I installed it (incorporated all the Module that was needed). But It is not running. I dont receive any error but it doesn't generate a .m5 file.

Kind regards, Maricel

@ChloeL2023
Copy link

Hi @snajder-r ,
I also encountered the same error although I install with python3.9:
(meth5) [root@localhost work]# meth5
Traceback (most recent call last):
File "/root/miniconda3/envs/meth5/bin/meth5", line 6, in
from meth5.main import main
ModuleNotFoundError: No module named 'meth5'

pip also invalid for me. Could you help with this issue? Thanks!

Best regards,
Chloe

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

No branches or pull requests

5 participants