Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora 30: Gives ambiguous python shebang when building package #616

Closed
GreyGnome opened this issue Sep 20, 2019 · 2 comments
Closed

Fedora 30: Gives ambiguous python shebang when building package #616

GreyGnome opened this issue Sep 20, 2019 · 2 comments
Labels

Comments

@GreyGnome
Copy link

When I am trying to build a package for Fedora 30, I get the following errors:

*** ERROR: ambiguous python shebang in /usr/bin/ardmk-init: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. *** ERROR: ambiguous python shebang in /usr/bin/robotis-loader: #!/usr/bin/python. Change it to python3 (or python2) explicitly. *** ERROR: ambiguous python shebang in /usr/bin/ard-reset-arduino: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.

To overcome this, I had to:

  • tar xfz arduino-mk-1.6.0.tar.gz in the SOURCES directory

  • cd arduino-mk-1.6.0/bin

  • vim *

  • replace all /usr/bin/env python with /usr/bin/env python2

  • cd ../..

  • tar cfz arduino-mk-1.6.0.tar.gz arduino-mk-1.6.0

  • cd ../SPECS

Then I could do the rpmbuild -ba arduino-mk.spec

@sej7278
Copy link
Collaborator

sej7278 commented Sep 20, 2019

Have a look at my python3 issue, it includes rpm fixes #542

@sej7278
Copy link
Collaborator

sej7278 commented Sep 16, 2020

fixed in e6881e2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants