WGLab / NanoCaller

Variant calling tool for long-read sequencing data
MIT License
90 stars 8 forks source link

AttributeError: module 'tensorflow' has no attribute 'contrib' #9

Closed pvap3 closed 3 years ago

pvap3 commented 3 years ago

Hey i am new in this I am trying to run following command: python3 /home/iob/Documents/test/Assembly/graphmap/NanoCaller/scripts/NanoCaller.py -seq ont -o nanocaller_variants -bam sorted_graphmap_out1.bam -ref NC_012920.1.fasta -chrom 1 -prefix nano

but i am this getting error

Traceback (most recent call last): File "/home/iob/Documents/test/Assembly/graphmap/NanoCaller/scripts/NanoCaller.py", line 210, in run(args) File "/home/iob/Documents/test/Assembly/graphmap/NanoCaller/scripts/NanoCaller.py", line 11, in run import snpCaller, indelCaller File "/home/iob/Documents/test/Assembly/graphmap/NanoCaller/scripts/snpCaller.py", line 13, in if type(tf.contrib) != type(tf): tf.contrib._warning = None AttributeError: module 'tensorflow' has no attribute 'contrib'

please suggest any possible solution. Thanks you for your help.

umahsn commented 3 years ago

Hi! Can you tell me what version of tensorflow you are using? The contrib module is deprecated in tensorflow 2.0, so we recommend using tensorflow 1.13.

pvap3 commented 3 years ago

Hello Thank you for your response. I am using tensorflow 2.4.1

On Mon, 1 Feb 2021, 21:19 umahsn, notifications@github.com wrote:

Hi! Can you tell me what version of tensorflow you are using? The contrib module is deprecated in tensorflow 2.0, so we recommend using tensorflow 1.13.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/WGLab/NanoCaller/issues/9#issuecomment-770954654, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASVWRR525VBU2G6Z43NZIKLS43EQFANCNFSM4W4IXN7A .