asweigart / hobson

A GUI toolkit with simple features, take it or leave it. Cross-platform, text-based, pure Python 3.
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

"Hello World" Example doesn't work for me.. #1

Open mborus opened 7 years ago

mborus commented 7 years ago

Hi,

just some feedback

On windows7, python3.6.2 32bit, installing via pip fails:

pip3 install hobson results in

C:\Python36\Scripts>pip3 install hobson Collecting hobson Using cached hobson-0.0.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "C:\Users\\AppData\Local\Temp\pip-build-hzr7wjl0\hobson\setup.p y", line 6, in version=import('hobson').version, ModuleNotFoundError: No module named 'hobson'

Manually starting a new project and moving hobson.py into the project directory fails:

C:\Python36-32\python.exe C:/Users//PycharmProjects/hobsontest/main.py Traceback (most recent call last): File "C:/Users/Martin/PycharmProjects/hobsontest/main.py", line 15, in ['E_xit', root.destroy, 'Ctrl+Q'] NameError: name 'root' is not defined

after deleting the missing root menu: C:\Python36-32\python.exe C:/Users//PycharmProjects/hobsontest/main.py Traceback (most recent call last): File "C:/Users/Martin/PycharmProjects/hobsontest/main.py", line 21, in win = hobson.Window(80, 25, 'Hello, world!', menu=menu) TypeError: init() got an unexpected keyword argument 'menu'

Another hint: The "°" character of the degrees gave me problems when I wanted to test the example from the command line, maybe it would be better to have a first example without special characters.

CrazyEoin commented 7 years ago

Just to chime in, I have exactly the same issues but running on a mac, Python 3.5.2.