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

MTase-linker install and check_installation are broken in nanomotif 0.4.16 #83

Closed
rattei opened this issue Nov 29, 2024 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@rattei
Copy link

rattei commented Nov 29, 2024

Hello,

in nanomotif 0.4.16 it is no longer possible to run "nanomotif MTase-linker install". Also "nanomotif check_installation" is broken.

[foo@bar nanomotif]$ nanomotif --version
nanomotif 0.4.16


[foo@bar nanomotif]$ nanomotif check_installation
100% (4 of 4) |#######################################################################################################################################################################################| Elapsed Time: 0:00:05 Time:  0:00:05
100% (2 of 2) |#######################################################################################################################################################################################| Elapsed Time: 0:00:02 Time:  0:00:02
Traceback (most recent call last):
  File "/lisc/app/conda/miniforge3/envs/nanomotif-0.4.16/bin/nanomotif", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/lisc/app/conda/miniforge3/envs/nanomotif-0.4.16/lib/python3.12/site-packages/nanomotif/main.py", line 620, in main
    check_install(args, pl)
  File "/lisc/app/conda/miniforge3/envs/nanomotif-0.4.16/lib/python3.12/site-packages/nanomotif/main.py", line 432, in check_install
    shutil.rmtree(args.out)
  File "/lisc/app/conda/miniforge3/envs/nanomotif-0.4.16/lib/python3.12/shutil.py", line 759, in rmtree
    _rmtree_safe_fd(stack, onexc)
  File "/lisc/app/conda/miniforge3/envs/nanomotif-0.4.16/lib/python3.12/shutil.py", line 703, in _rmtree_safe_fd
    onexc(func, path, err)
  File "/lisc/app/conda/miniforge3/envs/nanomotif-0.4.16/lib/python3.12/shutil.py", line 662, in _rmtree_safe_fd
    os.rmdir(name, dir_fd=dirfd)
OSError: [Errno 39] Directory not empty: 'nanomotif_install_check/logs'


[foo@bar nanomotif]$ nanomotif MTase-linker install 
Traceback (most recent call last):
  File "/lisc/app/conda/miniforge3/envs/nanomotif-0.4.16/bin/nanomotif", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/lisc/app/conda/miniforge3/envs/nanomotif-0.4.16/lib/python3.12/site-packages/nanomotif/main.py", line 591, in main
    os.environ["POLARS_MAX_THREADS"] =str(args.threads)
                                          ^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'threads'

best,
Thomas

@janeacook
Copy link

janeacook commented Dec 7, 2024

Hello,

I am having similar issues as @rattei. I have tried multiple combinations of python 3.12 and 3.9 with nanomotif 0.4.16 and 0.4.9 (the version I had been using, but decided to update to use the MTase-linker module). I have different check_installation errors, which I have pasted below:

$ nanomotif check_installation Traceback (most recent call last): File "/software/micromamba/envs/nanomotif_416/bin/nanomotif", line 10, in <module> sys.exit(main()) ^^^^^^ File "/software/micromamba/envs/nanomotif_416/lib/python3.12/site-packages/nanomotif/main.py", line 620, in main check_install(args, pl) File "/software/micromamba/envs/nanomotif_416/lib/python3.12/site-packages/nanomotif/main.py", line 420, in check_install motifs = find_motifs(args, pl, pileup=pileup, assembly=assembly) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/software/micromamba/envs/nanomotif_416/lib/python3.12/site-packages/nanomotif/main.py", line 79, in find_motifs contig_mods_to_keep, contig_mods_to_remove = nm.dataload.extract_contig_mods_with_sufficient_information(pileup, assembly, min_mods_pr_contig, min_mod_frequency) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/software/micromamba/envs/nanomotif_416/lib/python3.12/site-packages/nanomotif/dataload.py", line 47, in extract_contig_mods_with_sufficient_information contigmods_with_more_than_min_mods = pileup.groupby("contig_mod").count().filter( ^^^^^^^^^^^^^^ AttributeError: 'DataFrame' object has no attribute 'groupby'. Did you mean: 'group_by'?

All the best,
Jane

@SorenHeidelbach
Copy link
Collaborator

We are working on fixing these issues

@SorenHeidelbach SorenHeidelbach self-assigned this Dec 17, 2024
@SorenHeidelbach SorenHeidelbach added the bug Something isn't working label Dec 17, 2024
@SorenHeidelbach
Copy link
Collaborator

These error should have been fixed in 0.4.17, if they persist, do not hesitate to reopen this issue. #85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants