# NameError: name 'role' is not defined

**URL:** <https://forums.counterparty.io/t/nameerror-name-role-is-not-defined/403>\
**Category:** Counterparty\
**Created:** [August 22, 2014, 7:00am UTC](https://forums.counterparty.io/t/nameerror-name-role-is-not-defined/403 "2014-08-22T07:00:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [August 22, 2014, 7:00am UTC](https://forums.counterparty.io/t/nameerror-name-role-is-not-defined/403/1 "2014-08-22T07:00:20Z")

</div>

$ sudo python3 setup\_federated\_node.py  
[sudo] password for xcp:  
It appears this setup has been run already. ®ebuild node, or just (U)pdate from git? (r/U): r  
Enter the number for the role you want to build:  
&nbsp; &nbsp; &nbsp; &nbsp; 1: Counterwallet server  
&nbsp; &nbsp; &nbsp; &nbsp; 2: Vending machine  
&nbsp; &nbsp; &nbsp; &nbsp; 3: Blockexplorer server  
&nbsp; &nbsp; &nbsp; &nbsp; 4: counterpartyd-only  
&nbsp; &nbsp; &nbsp; &nbsp; 5: BTCPay Escrow Server  
Your choice: 1  
&nbsp; &nbsp; &nbsp; &nbsp; Building a Counterwallet server  
Build from branch (M)aster or (d)evelop? (M/d): M  
&nbsp; &nbsp; &nbsp; &nbsp; Working with branch: master  
Run as (t)estnet node, (m)ainnet node, or (B)oth? (t/m/B): B  
&nbsp; &nbsp; &nbsp; &nbsp; Setting up to run on testnet and mainnet  
Blockchain services, use (B)[lockr.io](http://lockr.io) (remote) or (i)nsight (local)? (B/i): B  
&nbsp; &nbsp; &nbsp; &nbsp; Using [blockr.io](http://blockr.io)  
Email address where support cases should go (blank to disable):  
Set up security hardening? (Y/n): n  
  
  
I get this:  
  
  
Traceback (most recent call last):  
&nbsp; File "setup\_federated\_node.py", line 885, in   
&nbsp; &nbsp; main()  
&nbsp; File "setup\_federated\_node.py", line 860, in main  
&nbsp; &nbsp; do\_counterparty\_setup(role, run\_as\_user, answered\_questions['branch'], base\_path, dist\_path, answered\_questions['run\_mode'],  
NameError: name 'role' is not defined  
  
  
It's Ubuntu 14.04 x64.&nbsp;   
I got the rebuild prompt the first time I ran the script (which is wrong), too.

---

<div class="post-metadata">

**Author:** ![weex](https://avatars.discourse-cdn.com/v4/letter/w/41988e/32.png) [@weex](https://forums.counterparty.io/u/weex)\
**Post date:** [August 22, 2014, 8:19pm UTC](https://forums.counterparty.io/t/nameerror-name-role-is-not-defined/403/2 "2014-08-22T20:19:24Z")

</div>

Are you building from the develop branch?

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [August 23, 2014, 6:50am UTC](https://forums.counterparty.io/t/nameerror-name-role-is-not-defined/403/3 "2014-08-23T06:50:10Z")

</div>

[quote author=weex link=topic=505.msg3131#msg3131 date=1408753164]  
Are you building from the develop branch?  
[/quote]  
  
  
From my post:  
  
\> Build from branch (M)aster or (d)evelop? (M/d): M&nbsp; Working with branch: master  
  
I was using Master.  
  
Late yesterday xnova said Master was screwed up and he fixed it, I will retry to see whether I still run into this.  
So far it's been running longer (I think) so I believe updates he made Friday afternoon/evening fixed the problem, so I will post here again only if the problem has _not_ been resolved. Thanks!  
  
P.S. Rich formatting in this forum s/w isn't very useful…

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [August 23, 2014, 12:14pm UTC](https://forums.counterparty.io/t/nameerror-name-role-is-not-defined/403/4 "2014-08-23T12:14:00Z")

</div>

It makes better progress, but it still cannot complete…  
  
  
  
2014-08-23 15:36:31,831|DEBUG: RUNNING COMMAND: dpkg -i /tmp/armory.deb  
(Reading database … 87537 files and directories currently installed.)  
Preparing to unpack /tmp/armory.deb …  
Unpacking armory (0.92.1-1) over (0.92.1-1) …  
xdg-icon-resource: No writable system icon directory found.  
dpkg: warning: subprocess old post-removal script returned error exit status 3  
dpkg: trying script from the new package instead …  
xdg-icon-resource: No writable system icon directory found.  
dpkg: error processing archive /tmp/armory.deb (–install):  
 subprocess new post-removal script returned error exit status 3  
xdg-icon-resource: No writable system icon directory found.  
dpkg: error while cleaning up:  
 subprocess new post-removal script returned error exit status 3  
Processing triggers for mime-support (3.54ubuntu1) …  
Errors were encountered while processing:  
 /tmp/armory.deb  
2014-08-23 15:36:33,532|ERROR: Command failed: 'dpkg -i /tmp/armory.deb'  
  
  
It seems a temp workaround is to use "develop" instead of "master".  
Next I'll build from develop.
