Linux Create a repository ?
#1
I followed this guide http://wiki.xbmc.org/index.php?title=HOW...our_Add-on to create my own repo that i can use in XBMC but for some reason the attached script doesn't work as expected.

What i did was creating a folder named repo, placed 2 test addons (unzipped) there and created a file named addons_xml_generator.py with content from wiki.
Made addons_xml_generator.py executable and ran it but it only returns errors on my Ubuntu VDI

Code:
12:08:53 ~/repo$ ./addons_xml_generator.py
./addons_xml_generator.py: line 23:  addons.xml generator : command not found
./addons_xml_generator.py: line 31: syntax error near unexpected token `('
./addons_xml_generator.py: line 31: `    def u(x):'
12:09:05 ~/repo$ ./addons_xml_generator.py
./addons_xml_generator.py: line 31: syntax error near unexpected token `('
./addons_xml_generator.py: line 31: `    def u(x):'
12:16:01 ~/repo$

It also creates 2 unknown files named os and sys but not the files i need.

Any help on getting this to work?
Reply
#2
the script was not detected as python script and the shell doesn't understand it.

Try executing it with "python addons_xml_generator.py" or put a correct python shebang in the first line, e.g. "#!/usr/bin/python"
My GitHub. My Add-ons:
Image
Reply
#3
Thanks, that fixed it.

When you say it like that i'm feeling stupid why i didn't think of that myself Wink
Reply
#4
you're welcome Wink
My GitHub. My Add-ons:
Image
Reply

Logout Mark Read Team Forum Stats Members Help
Create a repository ?0