# Python script running error: os module

**URL:** <https://www.finalbuilder.com/forums/t/python-script-running-error-os-module/3367>\
**Category:** Bugs\
**Created:** [June 1, 2011, 7:33am UTC](https://www.finalbuilder.com/forums/t/python-script-running-error-os-module/3367 "2011-06-01T07:33:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [June 1, 2011, 7:33am UTC](https://www.finalbuilder.com/forums/t/python-script-running-error-os-module/3367/1 "2011-06-01T07:33:17Z")

</div>

Hi,

I'm using Python 3 (Python32\Lib) for Python Library Directory,

and error occured when I&nbsp;execute functions from os module.

for example:

**&nbsp;&nbsp;&nbsp; import os  
&nbsp;&nbsp;&nbsp; print(os.listdir('.'))**

The Build error log prints:

&nbsp; File "C:\Python32\Lib\_abcoll.py", line 49  
&nbsp;&nbsp;&nbsp; class Hashable(metaclass=ABCMeta):

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^  
SyntaxError: unexpected token '='  
Error in BeforeScript : Python, This Action did not execute.

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [June 1, 2011, 10:39am UTC](https://www.finalbuilder.com/forums/t/python-script-running-error-os-module/3367/2 "2011-06-01T10:39:48Z")

</div>

Hi,   
 FinalBuilder uses IronPython to execute python scripts and as far as I’m aware, IronPython only supports Python 2. If you’d like to use the os module you’ll need to point FinalBuilder at a Python 2 install directory.   
  
 Cheers,   
  
 Ben
