CostaLab / reg-gen

Regulatory Genomics Toolbox: Python library and set of tools for the integrative analysis of high throughput regulatory genomics data.
https://reg-gen.readthedocs.io/
Other
101 stars 30 forks source link

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

Open sunta3iouxos opened 11 months ago

sunta3iouxos commented 11 months ago

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