# Unable to execute python script successfully

**URL:** <https://forums.suse.com/t/unable-to-execute-python-script-successfully/32827>\
**Category:** SLES Configure-Administer\
**Created:** [August 21, 2018, 6:52am UTC](https://forums.suse.com/t/unable-to-execute-python-script-successfully/32827 "2018-08-21T06:52:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krimeshsh](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@krimeshsh](https://forums.suse.com/u/krimeshsh)\
**Post date:** [August 21, 2018, 6:52am UTC](https://forums.suse.com/t/unable-to-execute-python-script-successfully/32827/1 "2018-08-21T06:52:28Z")

</div>

Hello Team,

I am trying to execute python script on SLES12 SP3 to create and install tenant on the server. While executing the python script i face below error:

sh: /tmp/\_MEInTXQ1k/libreadline.so.6: no version information available (required by sh)  
sh: relocation error: sh: symbol rl\_filename\_stat\_hook, version READLINE\_6.3 not defined in file libreadline.so.6 with link time reference  
sh: /tmp/\_MEInTXQ1k/libreadline.so.6: no version information available (required by sh)  
sh: relocation error: sh: symbol rl\_filename\_stat\_hook, version READLINE\_6.3 not defined in file libreadline.so.6 with link time reference  
sh: /tmp/\_MEInTXQ1k/libreadline.so.6: no version information available (required by sh)  
sh: relocation error: sh: symbol rl\_filename\_stat\_hook, version READLINE\_6.3 not defined in file libreadline.so.6 with link time reference  
sh: /tmp/\_MEInTXQ1k/libreadline.so.6: no version information available (required by sh)  
sh: relocation error: sh: symbol rl\_filename\_stat\_hook, version READLINE\_6.3 not defined in file libreadline.so.6 with link time reference  
sh: /tmp/\_MEInTXQ1k/libreadline.so.6: no version information available (required by sh)

I investigated about this error on internet and it seems there is a conflict between python and bash though I am not sure. Can you please provide the solution.

Is the problem related to SLES 12 SP3?

Regards,  
KRimes

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [August 21, 2018, 5:07pm UTC](https://forums.suse.com/t/unable-to-execute-python-script-successfully/32827/2 "2018-08-21T17:07:01Z")

</div>

[QUOTE=krimeshsh;54088]Hello Team,

I am trying to execute python script on SLES12 SP3 to create and install tenant on the server. While executing the python script i face below error:

sh: /tmp/\_MEInTXQ1k/libreadline.so.6: no version information available (required by sh)  
sh: relocation error: sh: symbol rl\_filename\_stat\_hook, version READLINE\_6.3 not defined in file libreadline.so.6 with link time reference  
sh: /tmp/\_MEInTXQ1k/libreadline.so.6: no version information available (required by sh)  
sh: relocation error: sh: symbol rl\_filename\_stat\_hook, version READLINE\_6.3 not defined in file libreadline.so.6 with link time reference  
sh: /tmp/\_MEInTXQ1k/libreadline.so.6: no version information available (required by sh)  
sh: relocation error: sh: symbol rl\_filename\_stat\_hook, version READLINE\_6.3 not defined in file libreadline.so.6 with link time reference  
sh: /tmp/\_MEInTXQ1k/libreadline.so.6: no version information available (required by sh)  
sh: relocation error: sh: symbol rl\_filename\_stat\_hook, version READLINE\_6.3 not defined in file libreadline.so.6 with link time reference  
sh: /tmp/\_MEInTXQ1k/libreadline.so.6: no version information available (required by sh)

I investigated about this error on internet and it seems there is a conflict between python and bash though I am not sure. Can you please provide the solution.

Is the problem related to SLES 12 SP3?

Regards,  
KRimes[/QUOTE]  
Hi and welcome to the Forum 🙂  
So the python script at the beginning is not using a whole shebang of;

```auto
#!/usr/bin/env pythonX
```

If so, I would suggest changing it to just /usr/bin/python to use the system variable.

Do you have a link to the script, or can you post to [https://susepaste.org/](https://susepaste.org/) and set to never expire.
