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

buildozer debug is not running this error is showing #622

Closed
AnkitMArtin opened this issue Feb 17, 2018 · 10 comments
Closed

buildozer debug is not running this error is showing #622

AnkitMArtin opened this issue Feb 17, 2018 · 10 comments

Comments

@AnkitMArtin
Copy link

Traceback (most recent call last):
File "C:\Program Files\Python36\Scripts\buildozer-script.py", line 11, in
load_entry_point('buildozer', 'console_scripts', 'buildozer')()
File "c:\users\ankit\buildozer\buildozer\scripts\client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "c:\users\ankit\buildozer\buildozer_init_.py", line 122, in init
self.config.read(filename)
File "c:\program files\python36\lib\configparser.py", line 696, in read
self._read(fp, filename)
File "c:\program files\python36\lib\configparser.py", line 1077, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: 'buildozer.spec', line: 1
'[app]\n'

@tanakanc
Copy link

Hello, can you solve this problem?

@hackalog
Copy link
Contributor

Looks like garbage (unicode character?) in the first line of your buildozer.spec file

@tanakanc
Copy link

but in the file.spec
the first line showed [app]

I tried change something in it such as [myapp] or test[app]

the error showed in the same way with new texts like
'[myapp]\n'
'test [app]\n'

@hackalog
Copy link
Contributor

It's a unicode encoding issue. Whatever editor you are using is adding a Byte Order Mark.

https://stackoverflow.com/questions/3255993/how-do-i-remove-%C3%AF-from-the-beginning-of-a-file

suggested workaround: use a different editor, or fix the encoding issues within whatever you are using.

@tanakanc
Copy link

Thank you very much. it is helpful

@tanakanc
Copy link

Finally, even though this problem was solved, but the root cause of my problem is that buildozer cannot run on window TT

@hackalog
Copy link
Contributor

@tanakanc can you close this issue?

@tanakanc
Copy link

Sorry, I am newbie. How can I close ? I am not the person who created this issue?

@ghost
Copy link

ghost commented Jan 12, 2019

it's fine @tanakanc you can't, @AnkitMArtin needs to close it (or one of the maintainers)

@hackalog
Copy link
Contributor

Whoop. My bad. Sorry for the noise!

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

No branches or pull requests

4 participants