clarivate / wos_api_usecases

Various code snippets used with Web of Science APIs.
MIT License
19 stars 2 forks source link

Added simple GUI to the code #21

Closed KasyanovPavel closed 1 year ago

gneissone commented 1 year ago

Ran into some issues with running this on macOs.

(venv) benjamingross@CLV-C02XX6DCJG5J author-level_fractional_counting_for_organizations % python main.py    
Traceback (most recent call last):
  File "/Users/benjamingross/Documents/git/Clarivate/wos_api_usecases/author-level_fractional_counting_for_organizations/main.py", line 17, in <module>
    import tkinter as tk
  File "/usr/local/Cellar/python@3.9/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 37, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'

Installed with brew install python-tk per https://stackoverflow.com/questions/68554782/modulenotfounderror-no-module-named-tkinter-on-macos.

Which then asked me to run brew install python-tk@3.9 After installing, I get this error.

(venv) benjamingross@CLV-C02XX6DCJG5J author-level_fractional_counting_for_organizations % python main.py            
2023-02-06 08:29:46.842 Python[42873:6886818] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'

Will need to dig further to see if it's a problem with my installation or not.