UnboundLocalError: local variable 'chrom_name' referenced before assignment

140 views
Skip to first unread message

Tsviya Olender

unread,
Nov 30, 2016, 5:45:09 AM11/30/16
to Zheng Xia, Li, Wei, dap...@googlegroups.com

Hi Zheng

Unfortunately, I am getting errors when trying to run daPars. The error is below. I will appreciate your help.

 

[lvzvia@molgen dapars-master]$ python src/DaPars_main.py configure_file.txt &

[lvzvia@molgen dapars-master]$ [Wed 30 Nov 2016 12:27:07 PM ] Start Analysis ...

[Wed 30 Nov 2016 12:27:07 PM ] Loading coverage ...

Traceback (most recent call last):

  File "src/DaPars_main.py", line 548, in <module>

    De_Novo_3UTR_Identification_Loading_Target_Wig_for_TCGA_Multiple_Samples_Main(sys.argv)

  File "src/DaPars_main.py", line 154, in De_Novo_3UTR_Identification_Loading_Target_Wig_for_TCGA_Multiple_Samples_Main

    All_samples_Target_3UTR_coverages, All_samples_sequencing_depths, UTR_events_dict = Load_Target_Wig_files(All_Sample_files, Annotated_3UTR_file)

  File "src/DaPars_main.py", line 509, in Load_Target_Wig_files

    curr_sample_All_chroms_coverage_dict[chrom_name][1].append(0)

UnboundLocalError: local variable 'chrom_name' referenced before assignment

 

[1]+  Exit 1                  python src/DaPars_main.py configure_file.txt

 

Tsviya

From: Zheng Xia [mailto:xi...@ohsu.edu]
Sent: Monday, November 28, 2016 8:01 PM
To: Tsviya Olender
Cc: Li, Wei; dap...@googlegroups.com
Subject: Re: Missing parentheses in DaPar

 

Hi Tsviya,

     DaPars is developed in Python2.7. So please use python2.7 instead of python3. 

 

Thanks,

Zheng

 

On Nov 28, 2016, at 6:50 AM, Li, Wei <w...@bcm.edu> wrote:

 

Any idea about this error?

Thanks

 

Sent from my iPhone

-Wei


Begin forwarded message:

From: Tsviya Olender <tsviya....@weizmann.ac.il>
Date: November 28, 2016 at 8:05:33 AM CST
To: "w...@bcm.edu" <w...@bcm.edu>
Subject: FW: Missing parentheses in DaPar

***CAUTION:*** This email is not from a BCM Source. Only click links or open attachments you know are safe.


Hi

I am trying to run the DaPar test dataset, but get a syntax error

[lvzvia@molgen DaPars_Test_Dataset]$ python ../src/DaPars_main.py DaPars_test_data_configure.txt

  File "../src/DaPars_main.py", line 107

    print "Please provide the configure file ..."

                                                ^

SyntaxError: Missing parentheses in call to 'print'

 

I am using python/3.5.1 and also tried python/3.5.2

 

I will appreciate your help.

 

 

Many thanks

 

 

 

 

Tsviya Olender,PhD

Dept. Molecular Genetics

Weizmann Institute of Science

Rehovot 761000, Israel

Office: +972-8-9342572

Mobile: +972-54-5762929

 

Adam Malinowski

unread,
May 9, 2017, 3:59:10 AM5/9/17
to DaPars, xi...@ohsu.edu, w...@bcm.edu, tsviya....@weizmann.ac.il
Why this dont work? http://wypozyczalnia-wroclaw.pl ???
Reply all
Reply to author
Forward
0 new messages