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

ResourceWarning: unclosed file (Enable tracemalloc to get the object allocation traceback) #259

Open
sunta3iouxos opened this issue Aug 2, 2023 · 0 comments

Comments

@sunta3iouxos
Copy link

Hi,
I am getting the following after finishing running succesfuly rgt-THOR.

mambaforge/envs/rgts/lib/python3.7/site-packages/rgt/Util.py:69: ResourceWarning: unclosed file <_io.BufferedReader name='/rgtdata/data.config'>
  self.config.read_file(codecs.open(data_config_file_name, "r", "utf8"))
ResourceWarning: Enable tracemalloc to get the object allocation traceback
mambaforge/envs/rgts/lib/python3.7/site-packages/rgt/Util.py:73: ResourceWarning: unclosed file <_io.BufferedReader name='rgtdata/data.config.user'>
  self.config.read_file(codecs.open(data_config_file_name + ".user", "r", "utf8"))
ResourceWarning: Enable tracemalloc to get the object allocation traceback
mambaforge/envs/rgts/bin/rgt-THOR:11: ResourceWarning: unclosed file <_io.TextIOWrapper name='/mnt/c/AP01/bam/THOR_H4K16acMergePval05FCh2-setup.info' mode='w' encoding='UTF-8'>
  sys.exit(main())
ResourceWarning: Enable tracemalloc to get the object allocation traceback

rgt-THOR --version
1.0.0
Python 3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 06:08:53)
[GCC 9.4.0] on linux

I have no idea on tracemalloc() or python but I could only found this:
https://www.pythonpool.com/runtimewarning-enable-tracemalloc-to-get-the-object-allocation-traceback/

thank you

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

1 participant