# Spacewalk inventory script which was working in AWX 7 is not working in AWX 15

**URL:** <https://forum.ansible.com/t/spacewalk-inventory-script-which-was-working-in-awx-7-is-not-working-in-awx-15/34280>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [December 4, 2020, 1:34pm UTC](https://forum.ansible.com/t/spacewalk-inventory-script-which-was-working-in-awx-7-is-not-working-in-awx-15/34280 "2020-12-04T13:34:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamlightsocialxen](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Post date:** [December 4, 2020, 1:34pm UTC](https://forum.ansible.com/t/spacewalk-inventory-script-which-was-working-in-awx-7-is-not-working-in-awx-15/34280/1 "2020-12-04T13:34:28Z")

</div>

Hello,

Hope everyone is doing good.

Lately We have upgraded our AWX environment from 7 to 15 version.

Upgrade was smooth and everything is working fine except , python script which we had to sync our inventory from Spacewalk to AWX.

It gives me some parser error .

I assume mostly it is because in AWX 15 , python3.6 is by default , and my python script was working with python 2.7 .

Wondering if anyone has come across this ?

---

<div class="post-metadata">

**Author:** ![iamlightsocialxen](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Post date:** [December 7, 2020, 2:45pm UTC](https://forum.ansible.com/t/spacewalk-inventory-script-which-was-working-in-awx-7-is-not-working-in-awx-15/34280/2 "2020-12-07T14:45:18Z")

</div>

It looked like formatting issue with python3.6.

Now it goes ahead but then i hit this error

**[WARNING]: \* Failed to parse /tmp/awx\_8443\_3881lxwm/tmpiuqwbmob with script**

43  
**plugin: Invalid data from file, expected dictionary and got: None**

44

**[WARNING]: \* Failed to parse /tmp/awx\_8443\_3881lxwm/tmpiuqwbmob with yaml**

49  
**plugin: We were unable to read either as JSON nor YAML, these are the errors we**

50  
**got from each: JSON: Expecting value: line 1 column 1 (char 0) Syntax Error**

51  
**while loading YAML. mapping values are not allowed in this context The error**

52  
**appears to be in ‘/tmp/awx\_8443\_3881lxwm/tmpiuqwbmob’: line 15, column 4, but**

53  
**may be elsewhere in the file depending on the exact syntax problem. The**

54  
**offending line appears to be: try: ^ here**

55

I will continue investigating.
