Opened 6 years ago

Closed 6 years ago

#8698 closed defect (fixed)

TypeError: __init__() got an unexpected keyword argument 'use_unmeasured'

Reported by: ln5 Owned by: aagbsn
Priority: Very High Milestone:
Component: Core Tor/Torflow Version:
Severity: Keywords:
Cc: arma, mikeperry Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description (last modified by ln5)

INFO[Sat Apr 13 12:06:03 2013]:TorFlow Version: master ec8924a3f7a9f22aa3202aa3c0a04ddf88d7cfab
INFO[Sat Apr 13 12:06:03 2013]:TorCtl Version: master 68bc5de84dc90e1292c6aa19abd95f660b5e3277
INFO[Sat Apr 13 12:06:03 2013]:Beginning time loop
Traceback (most recent call last):
  File "bwauthority_child.py", line 69, in <module>
    use_unmeasured=True)
TypeError: __init__() got an unexpected keyword argument 'use_unmeasured'
WARN[Sat Apr 13 12:06:03 2013]:Child process returned 1

Child Tickets

Change History (9)

comment:1 Changed 6 years ago by ln5

Description: modified (diff)

comment:2 Changed 6 years ago by ln5

From looking at #8273 I'm guessing that we're missing 1f5f2526 from
user/aagbsn/pytorctl.git. Aaron?

comment:3 Changed 6 years ago by ln5

Branch 8273-add-unmeasured-path-selection-support.

comment:4 Changed 6 years ago by ln5

1f5f2526 in branch 8273-add-unmeasured-path-selection-support is not
syntactically correct though, so I'll just rest my case and wait for
magic to happen.

comment:5 Changed 6 years ago by aagbsn

You want to use the branch master:

torflow: git-rw.torproject.org/torflow.git
2ce8f6d7875f3674c7d9d4fe7848b6d0bb92fa9c

pytorctl: git-rw.torproject.org/pytorctl.git
68bc5de84dc90e1292c6aa19abd95f660b5e3277

comment:6 Changed 6 years ago by ln5

That's what I'm running.

bash-4.2$ pwd
/home/bwscanner/torflow/TorCtl
bash-4.2$ git log --oneline | head 
68bc5de 8399 - Do not return 0 from get_unmeasured_bw
e6c7fd7 8273 - Remove Fast Flag requirement for measurements
e27fb55 6131 - BwAuths learn to recognize Unmeasured=1 in consensus
853cb1e Mention stem and txtorcon as alternatives.
305a759 Turn an exception into a log.
3de9176 Make memory-only sqlite work.
391b439 Don't round the circ fail rate.
66ed91b Merge commit 'a58246918f58f3fc5663f8772df39cdcd3ccce8d'
a582469 Add TorCtl piece of the fix for #1984.
e15ed99 Bug #4097: Clear old last_exit before requesting a new one
bash-4.2$ git status --untracked-files=no
# On branch master
nothing to commit (use -u to show untracked files)

There is no such thing as use_unmeasured in
PathSupport.SelectionManager.init() (or its superclass)
though. Should it? 2ce8f6d7 in torflow.git does try to use it:

bash-4.2$ egrep -n use_unm *.py
bwauthority_child.py:69:      use_unmeasured=True) 

comment:7 Changed 6 years ago by arma

Cc: mikeperry added

Yep. I'm also running torflow 2ce8f6d78. Same problem.

comment:8 Changed 6 years ago by aagbsn

Oh dear. I pushed a fix to master:
280a3ad12d5fe0050a59f67f9e1096b030acc447

comment:9 Changed 6 years ago by ln5

Resolution: fixed
Status: newclosed

Thanks.

Note: See TracTickets for help on using tickets.