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

FileNotFoundError: [Errno 2] (SOLVED) - It was Encoding Error #715

Closed
Petar-Luketina opened this issue Sep 21, 2018 · 2 comments
Closed

Comments

@Petar-Luketina
Copy link

Petar-Luketina commented Sep 21, 2018

Here is what my terminal is saying:

# Package the application
Traceback (most recent call last):
  File "/home/pl/.local/bin/buildozer", line 11, in <module>
    sys.exit(main())
  File "/home/pl/.local/lib/python3.6/site-packages/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/home/pl/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 1058, in run_command
    self.target.run_commands(args)
  File "/home/pl/.local/lib/python3.6/site-packages/buildozer/target.py", line 92, in run_commands
    func(args)
  File "/home/pl/.local/lib/python3.6/site-packages/buildozer/target.py", line 104, in cmd_debug
    self.buildozer.build()
  File "/home/pl/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 212, in build
    self.target.build_package()
  File "/home/pl/.local/lib/python3.6/site-packages/buildozer/targets/android.py", line 669, in build_package
    self._update_libraries_references(dist_dir)
  File "/home/pl/.local/lib/python3.6/site-packages/buildozer/targets/android.py", line 866, in _update_libraries_references
    with io.open(project_fn, 'w', encoding='utf-8') as fd:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pl/Desktop/App 2/.buildozer/android/platform/build/dists/myapp/project.properties'

My thoughts:

  • Is there an error on line 866 of the android.py file?

What I've done:

@Petar-Luketina Petar-Luketina changed the title The above suggestions are not working for me FileNotFoundError: [Errno 2] (New error) Sep 21, 2018
@Petar-Luketina
Copy link
Author

Update: I created another Ubuntu OS on my computer and started from scratch... I still got the same error. I made a new OS because I thought that installing Conda messed with my original buildozer + system settings.

Previously, I was able to put apps on my phone, but now I can't currumvent this error. I would appreciate any help. Thank you!

@Petar-Luketina Petar-Luketina changed the title FileNotFoundError: [Errno 2] (New error) FileNotFoundError: [Errno 2] (SOLVED) - It was Encoding Error Sep 23, 2018
@Petar-Luketina
Copy link
Author

Petar-Luketina commented Sep 23, 2018

SOLVED: The issue was with the encoding inside of the kv and py files. I changed the encoding in pycharm, and added # encoding: utf-8 to both pages just as a precaution. Then I went and removed all the apostrophes and quotes that did not look like ".

I also followed the steps from this: https://stackoverflow.com/questions/37630309/python3-buildozer-kivy-ascci-codec-cant-decode

https://stackoverflow.com/questions/49681973/using-buildozer-in-docker-unicodedecodeerror-ascii-codec-cant-decode-byte

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

1 participant