Closed paulwilson90 closed 3 years ago
Hi @paulwilson90,
Unfortunately copy-pasting the packages from macOS to iOS is something that doesn't work and could lead to a multitude of issues.
Here is some info that could help you:
sudo
that could lead to permission issues.Thank you very much for your response. I really appreciate it. I will wipe it all and start from scratch, following your instructions.
Sincerely Paul Wilson
From: Mirko Galimberti @.> Sent: Monday, October 4, 2021 3:22:40 AM To: kivy/kivy-ios @.> Cc: paulwilson90 @.>; Mention @.> Subject: Re: [kivy/kivy-ios] I am getting configparser.py, line 792, in get raise NoOptionError(option, section), when trying to run in Xcode? (#650)
Hi @paulwilson90https://github.com/paulwilson90,
Unfortunately copy-pasting the packages from macOS to iOS is something that doesn't work and could lead to a multitude of issues.
Here is some info that could help you:
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/kivy/kivy-ios/issues/650#issuecomment-932982528, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVYXRBLUN3IJGPQIM6XSY7TUFB7NBANCNFSM5FDSTP3Q.
May I quickly ask which recipes I need to install to include “pyrebase” “pdfminer” “html2text” please? I can’t seem to find much info on this. Thank you so much.
Sincerely Paul Wilson
From: Paul Wilson @.> Sent: Monday, October 4, 2021 9:48:56 AM To: kivy/kivy-ios @.>; kivy/kivy-ios @.> Cc: Mention @.> Subject: Re: [kivy/kivy-ios] I am getting configparser.py, line 792, in get raise NoOptionError(option, section), when trying to run in Xcode? (#650)
Thank you very much for your response. I really appreciate it. I will wipe it all and start from scratch, following your instructions.
Sincerely Paul Wilson
From: Mirko Galimberti @.> Sent: Monday, October 4, 2021 3:22:40 AM To: kivy/kivy-ios @.> Cc: paulwilson90 @.>; Mention @.> Subject: Re: [kivy/kivy-ios] I am getting configparser.py, line 792, in get raise NoOptionError(option, section), when trying to run in Xcode? (#650)
Hi @paulwilson90https://github.com/paulwilson90,
Unfortunately copy-pasting the packages from macOS to iOS is something that doesn't work and could lead to a multitude of issues.
Here is some info that could help you:
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/kivy/kivy-ios/issues/650#issuecomment-932982528, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVYXRBLUN3IJGPQIM6XSY7TUFB7NBANCNFSM5FDSTP3Q.
Versions
I am getting configparser.py, line 792, in get raise NoOptionError(option, section), when trying to run in Xcode. It runs fine in python 3.9.7 through the terminal but when attempting to run on simulator, it crashes with this error.
For setting up and building, In terminal I ran:
brew install autoconf automake libtool pkg-config
brew link libtool
pip install cython
sudo git clone https://github.com/kivy/kivy-ios.git
cd kivy-ios
python3 -m venv venv
. venv/bin/activate
pip install -e .
pip install cython (again)
sudo python ./toolchain.py build python3 openssl kivy Here I was told there was no module called sh or pbxproj so I sudo - pip installed them.
sudo python ./toolchain.py create wxstrip ~/Users/paulwilson/paulapp/app Here I was told there was no cookiecutter module so I sudo pip installed it. I got the xcode project built and had to change some permissions and add '-O --no-perms' into build phases run script as it couldn't load times.
I got the standard errors in the xcode runs that there was no requests pyrebase etc. I was absolutely UNABLE to find a way to install pyrebase or pycryptodome using 'sudo python ./toolchain.py pip install blah blah blah'. I realise it's not very legit, but I eventually just physically copied and pasted all the files from the original to the iOS version through finder which solved multitudes of problems.
This is where I am now stuck with the error stated in the question title...
I have spent a couple days searching the internet for a solution to this but have got nowhere. This error is only showing up when I try to run it on the Xcode simulator. I have looked at the docs for configparser.py as well and can't come to any logical conclusion.
Logs [CRITICAL] [Window ] Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes sdl2 - NoOptionError: No option 'vsync' in section: 'graphics' File "/Users/paulwilson/Library/Developer/CoreSimulator/Devices/307F5B72-DE5E-4CD1-9B59-1F16D5838E4B/data/Containers/Bundle/Application/F7B5E26E-1725-462F-858D-E8BD096ED0F8/wxstrip.app/lib/python3.9/site-packages/kivy/core/init.py", line 70, in core_select_lib cls = cls() File "/Users/paulwilson/Library/Developer/CoreSimulator/Devices/307F5B72-DE5E-4CD1-9B59-1F16D5838E4B/data/Containers/Bundle/Application/F7B5E26E-1725-462F-858D-E8BD096ED0F8/wxstrip.app/lib/python3.9/site-packages/kivy/core/window/window_sdl2.py", line 152, in init super(WindowSDL, self).init() File "/Users/paulwilson/Library/Developer/CoreSimulator/Devices/307F5B72-DE5E-4CD1-9B59-1F16D5838E4B/data/Containers/Bundle/Application/F7B5E26E-1725-462F-858D-E8BD096ED0F8/wxstrip.app/lib/python3.9/site-packages/kivy/core/window/init.py", line 982, in init self.create_window() File "/Users/paulwilson/Library/Developer/CoreSimulator/Devices/307F5B72-DE5E-4CD1-9B59-1F16D5838E4B/data/Containers/Bundle/Application/F7B5E26E-1725-462F-858D-E8BD096ED0F8/wxstrip.app/lib/python3.9/site-packages/kivy/core/window/window_sdl2.py", line 286, in create_window self.system_size = _size = self._win.setup_window( File "kivy/core/window/_window_sdl2.pyx", line 237, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window File "/Users/paulwilson/Library/Developer/CoreSimulator/Devices/307F5B72-DE5E-4CD1-9B59-1F16D5838E4B/data/Containers/Bundle/Application/F7B5E26E-1725-462F-858D-E8BD096ED0F8/wxstrip.app/lib/python3.9/site-packages/kivy/config.py", line 496, in get value = PythonConfigParser.get(self, section, option, **kwargs) File "/Users/paulwilson/paulsapp/kivy-ios/dist/root/python3/lib/python3.9/configparser.py", line 792, in get raise NoOptionError(option, section)
[CRITICAL] [App ] Unable to get a Window, abort.
If someone could please help me out with this, I'd be very grateful. I feel I'm so close to getting the app finished but stuck at the last hurdle.