Problems installing thonny on MacOS

217 views
Skip to first unread message

Thomas Baker

unread,
Sep 25, 2017, 2:50:30 PM9/25/17
to thonny
I use MacOS Sierra 10.12.6, Python 3.6.1 Anaconda 4.4.0 (x86_64).

First, I installed Thonny from http://thonny.org.  I installed it, clicked on /Applications/Thonny.app, and attached it to my dock.  However, the Thonny application never appeared!  Clicking on the dock icon, I could see that it appeared to be running, but there was no Thonny window anywhere.  I looked at the exploded view of all applications on all desktops - no Thonny.  I could tell that something was happening because I could close it, then click on it again, and for a split second I would see a window appear then disappear into the icon (the "genie into the bottle" effect).

Typing `which thonny` got no result, so I did `pip3 install thonny`:
    Collecting thonny
    Downloading thonny-2.1.11-py3-none-any.whl (199kB)
    100% |████████████████████████████████| 204kB 1.3MB/s
    Collecting jedi>=0.9 (from thonny)
    Downloading jedi-0.11.0-py2.py3-none-any.whl (146kB)
    100% |████████████████████████████████| 153kB 1.7MB/s
    Collecting parso==0.1.0 (from jedi>=0.9->thonny)
    Downloading parso-0.1.0-py2.py3-none-any.whl (89kB)
    100% |████████████████████████████████| 92kB 2.1MB/s
    Installing collected packages: parso, jedi, thonny
    Successfully installed jedi-0.11.0 parso-0.1.0 thonny-2.1.11
    $ which thonny
    /Library/Frameworks/Python.framework/Versions/3.6/bin/thonny

But when I tried to run `thonny` it did not work because, it said, Thonny was already running.

So I did `rm -rf /Applications/Thonny.app`.

Then when I ran `thonny`, I finally got a Thonny window and could load a file, but now I get Tracebacks involving thonny/plugins/highlight_names.py, locals_marker.py, and ModuleNotFoundError: No module named 'jedi.parser'.

Has anyone else experienced such problems?

Aivar Annamaa

unread,
Sep 27, 2017, 6:37:28 AM9/27/17
to thonny
Hi, Thomas!

I'll comment your workaround first. Looks like something has changed between jedi 0.10 and 0.11. The quick solution would be "pip3 uninstall jedi" and "pip3 install jedi==0.10".

I don't have a clue, why you couldn't use the bundle in the first place. Could you please run the bundle from the command line? Let's say you have bundle in Applications. In this case you should be able to run Thonny in terminal with /Applications/Thonny.app/Contents/MacOS/thonny
I'd be grateful for the output you get from this!

best regards,
Aivar
Reply all
Reply to author
Forward
0 new messages