BenLangmead / bowtie

An ultrafast memory-efficient short read aligner
Other
260 stars 77 forks source link

DeprecationWarning: the imp module is deprecated #115

Closed junaruga closed 4 years ago

junaruga commented 4 years ago

I got the following deprecating warning of bowtie-inspect command in bowtie 1.3.0 on Python 3.9.0b4 on Fedora 33 environment.

$ python3 --version
Python 3.9.0b4

$ /usr/bin/bowtie-inspect --version
/usr/bin/bowtie-inspect:24: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
bowtie-inspect version 1.3.0
64-bit
Built on reproduciblebuild
2020-07-25T00:00:00
Compiler: gcc version 10.1.1 20200618 (Red Hat 10.1.1-2) (GCC) 
Options: -O3 -g -Wl,--hash-style=both -DPOPCNT_CAPABILITY  
Sizeof {int, long, long long, void*, size_t, off_t}: {4, 8, 8, 8, 8, 8}
ch4rr0 commented 4 years ago

This is an unsed import that I forgot to remove. The following import replaces it.

from importlib.machinery import SourceFileLoader
junaruga commented 4 years ago

Sure. Thanks for checking it. I would close this ticket, as it seems it was fixed by https://github.com/BenLangmead/bowtie/commit/da7b4402edf03e3e2764d23ac94b2b6ea536b75a .