# Login as xilinx cannot execute the command mode script

**URL:** <https://discuss.pynq.io/t/login-as-xilinx-cannot-execute-the-command-mode-script/266>\
**Category:** Support\
**Created:** [July 2, 2019, 7:35am UTC](https://discuss.pynq.io/t/login-as-xilinx-cannot-execute-the-command-mode-script/266 "2019-07-02T07:35:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NS\_Huang](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/ns_huang/32/151_2.png) [@NS\_Huang](https://discuss.pynq.io/u/NS_Huang)\
**Post date:** [July 2, 2019, 7:35am UTC](https://discuss.pynq.io/t/login-as-xilinx-cannot-execute-the-command-mode-script/266/1 "2019-07-02T07:35:17Z")

</div>

Hi,  
I encountered the following problem.

If I login as xilinx, it has problem to execute the following command on PYNQ-Z1. Is it normal ? For batch mode executing on PYNQ-ZQ, does it mean it requires to login as root ? Or how do you usually execute the batch script in command mode in PYNQ-Z1 ? Thanks

xilinx@pynq:~/pynq/prj\_tst/mlp\_fl$ python3.6 mlp\_float\_test.py

Traceback (most recent call last):

File “mlp\_float\_test.py”, line 5, in

```
from pynq import Overlay                                                                                                    

```

File “/usr/local/lib/python3.6/dist-packages/pynq/ **init**.py”, line 30, in

```
from .gpio import GPIO                                                                                                      

```

File “/usr/local/lib/python3.6/dist-packages/pynq/gpio.py”, line 33, in

```
from .ps import CPU_ARCH, ZU_ARCH, ZYNQ_ARCH                                                                                

```

File “/usr/local/lib/python3.6/dist-packages/pynq/ps.py”, line 552, in

```
class _ClocksUltrascale(_ClocksMeta):                                                                                       

```

File “/usr/local/lib/python3.6/dist-packages/pynq/ps.py”, line 611, in \_ClocksUltrascale

```
IOPLL_CTRL = Register(CRL_APB_ADDRESS + IOPLL_CTRL_OFFSET)                                                                  

```

File “/usr/local/lib/python3.6/dist-packages/pynq/ps.py”, line 93, in **init**

```
self._buffer = MMIO(address).array.astype(np.uint32, copy=False)                                                            

```

File “/usr/local/lib/python3.6/dist-packages/pynq/mmio.py”, line 81, in **init**

```
raise EnvironmentError('Root permissions required.')                                                                        

```

OSError: Root permissions required.

Exception ignored in: \<bound method MMIO. **del** of \<pynq.mmio.MMIO object at 0xb5ab4f70\>\>

Traceback (most recent call last):

File “/usr/local/lib/python3.6/dist-packages/pynq/mmio.py”, line 112, in **del**

```
os.close(self.mmap_file)                                                                                                    

```

AttributeError: ‘MMIO’ object has no attribute ‘mmap\_file’

---

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [July 2, 2019, 8:56am UTC](https://discuss.pynq.io/t/login-as-xilinx-cannot-execute-the-command-mode-script/266/2 "2019-07-02T08:56:59Z")

</div>

Start python as sudo

```auto
sudo python3.6 mlp_float_test.py

```

Cathal

---

<div class="post-metadata">

**Author:** ![NS\_Huang](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/ns_huang/32/151_2.png) [@NS\_Huang](https://discuss.pynq.io/u/NS_Huang)\
**Post date:** [July 2, 2019, 9:37am UTC](https://discuss.pynq.io/t/login-as-xilinx-cannot-execute-the-command-mode-script/266/3 "2019-07-02T09:37:18Z")

</div>

> [@cathalmccabe](#):
>
> sudo python3.6 mlp\_float\_test.py

Thanks for your prompt reply.
