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
Unknown platform: CYGWIN_NT-10.0-WOW #537
Comments
Hi @sharuzzaman - thanks for raising this. There are lots of platform specific sections inside appJar, trying to keep the same functionality across MAC/WINDOWS/LINUX - so, the first thing appJar does, is determine a platform. I've not really come across CYGWIN before - I've just googled it, and it looks like a "linux emulator" running inside Windows. So, if appJar finds CYGWIN I'll configure it to set Windows as the platform, I'm assuming all the Windows functionality will still be available? |
Not really. Cygwin tries to map Linux/Unix API call to Windows equivalent using an emulated library. From Unix application point of view after being compiled in Cygwin, it is a Linux application. So I believe Cygwin should be best under Linux family, but some features might not be 100% available for Cygwin application. I have tried to put Cygwin under Linux platform, but the code returns nothing. @staticmethod sharuzzr@laptop /cygdrive/C/Users/sharuzzr/Downloads/app sharuzzr@laptop /cygdrive/C/Users/sharuzzr/Downloads/app sharuzzr@laptop /cygdrive/C/Users/sharuzzr/Downloads/app changing the return to gui.WINDOWS also show nothing I think this might be related to Tk library as well. Maybe Cygwin should use Tk in Cygwin rather than Tk in Windows or Linux |
Difficult one, I don't have an environment right now where I can test this. But the fix would have been to either have If both of those fail, then it's going to be a bigger problem! |
I've had a quick google, and found the following site: https://daddyathouse76.wordpress.com/2017/06/10/python-gui-on-cygwin/ Are you running an X server within CYGWIN? If not, that'll explain the no display error... |
Hi @sharuzzaman - I was wondering if this had given you any help? |
Bug Report
Context
I'm testing appJar with Python in Cygwin
Expected Behaviour
appJar should run
Actual Behaviour
appJar does not run
Any error messages produced by appJar
$ ./main.py
Traceback (most recent call last):
File "./main.py", line 6, in
app = gui()
File "/cygdrive/c/Users/sharuzzr/Downloads/app/appJar/appjar.py", line 438, in init
self.platform = gui.GET_PLATFORM()
File "/cygdrive/c/Users/sharuzzr/Downloads/app/appJar/appjar.py", line 265, in GET_PLATFORM
raise Exception("Unknown platform: " + platform())
Exception: Unknown platform: CYGWIN_NT-10.0-WOW
Sample code, demonstrating the issue
$ cat main.py
#!/bin/env python
import the library
from appJar import gui
create a GUI variable called app
app = gui()
What steps are needed to reproduce the bug
Version Information
$ python main.py -v
appJar: 0.93.0 Python: 2.7.14 TCL: 8.6, TK: 8.6 Platform: CYGWIN_NT-10.0-WOW
pid: 16036 locale: en_US
The text was updated successfully, but these errors were encountered: