Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER for macOS

Reply
 
Thread Tools Display Modes
Old 02-07-2018, 04:59 AM   #1
ganttictemp
Human being with feelings
 
Join Date: Jan 2018
Posts: 43
Default How to get tkinter to work on mac?

Hi all,

We have some python scripts that work smoothly on a pc, but we can't get them to work on a mac. Seems that problem is related to tkinter module.

import tkinter
ImportError: No module named tkinter.

Using OSX 10.9.5 (tried on some others as well), installed ActiveTcl 8.6.7 and using Python 3.6.4.

There are many documentation in Google and even these forums but I could not make it work. Thanks for the support.
ganttictemp is offline   Reply With Quote
Old 02-07-2018, 02:59 PM   #2
Aymara
Human being with feelings
 
Aymara's Avatar
 
Join Date: Dec 2014
Location: Ruhr Area, Germany
Posts: 977
Default

I was curious, what tkinter is and found this:

https://www.python.org/download/mac/tcltk/

Maybe it helps. The versions of TCL and Python don't seem to fit to each other.
__________________
Greetings from Germany

Chris
Aymara is offline   Reply With Quote
Old 02-08-2018, 01:26 AM   #3
ganttictemp
Human being with feelings
 
Join Date: Jan 2018
Posts: 43
Default

Thanks for your reply! Yep, I tried that but nothing seems to work. Surely I'm skipping something!
ganttictemp is offline   Reply With Quote
Old 02-08-2018, 02:30 AM   #4
Aymara
Human being with feelings
 
Aymara's Avatar
 
Join Date: Dec 2014
Location: Ruhr Area, Germany
Posts: 977
Default

If you tried Python 3.6.4 with ActiveTCL 8.5.18 and it still doesn't work, you should discuss that in a Python forum. Here it's pretty off topic, I think.

Maybe try this:

https://python-forum.io
__________________
Greetings from Germany

Chris
Aymara is offline   Reply With Quote
Old 02-08-2018, 02:59 AM   #5
ganttictemp
Human being with feelings
 
Join Date: Jan 2018
Posts: 43
Default

Quote:
Originally Posted by Aymara View Post
If you tried Python 3.6.4 with ActiveTCL 8.5.18 and it still doesn't work, you should discuss that in a Python forum. Here it's pretty off topic, I think.

Maybe try this:

https://python-forum.io
Thank you, I'll try that.
ganttictemp is offline   Reply With Quote
Old 02-08-2018, 04:22 AM   #6
Aymara
Human being with feelings
 
Aymara's Avatar
 
Join Date: Dec 2014
Location: Ruhr Area, Germany
Posts: 977
Default

You're welcome ... don't forget to report back, if you find a solution, just in case someone else might have similar issues.
__________________
Greetings from Germany

Chris
Aymara is offline   Reply With Quote
Old 02-08-2018, 06:50 AM   #7
ganttictemp
Human being with feelings
 
Join Date: Jan 2018
Posts: 43
Default

So they did help. It seems like Reaper is calling for Python 2.7 instead of 3.6.

Most likely is Reaper preferences.

Do any of you have the right "custom path to Python dll directory" and if we have to set anything in "Force ReaScript to use specific Python .dylib?

OSX seems to force 2.7 version somehow by default.
ganttictemp is offline   Reply With Quote
Old 02-08-2018, 07:48 AM   #8
cyrano
Human being with feelings
 
cyrano's Avatar
 
Join Date: Jun 2011
Location: Belgium
Posts: 5,246
Default

Following.

I am on 10.9.5 too and had a struggle with python 3.6.4 paths too. Whatever file I changed, MY Terminal (zShell) kept reporting python 2.7 active. Wasted half a day, trying to pin it down. In MY case, the reporting tool was wrong. 3.6.4 was active.

It's for something completely unrelated to audio and that works.

I still don't understand which files/process sets paths on OSX.
__________________
In a time of deceit telling the truth is a revolutionary act.
George Orwell
cyrano is offline   Reply With Quote
Old 02-08-2018, 07:48 AM   #9
Aymara
Human being with feelings
 
Aymara's Avatar
 
Join Date: Dec 2014
Location: Ruhr Area, Germany
Posts: 977
Default

Maybe try the ReaScript sub-forum:

https://forum.cockos.com/forumdisplay.php?f=3
__________________
Greetings from Germany

Chris
Aymara is offline   Reply With Quote
Old 02-08-2018, 08:10 AM   #10
ganttictemp
Human being with feelings
 
Join Date: Jan 2018
Posts: 43
Default

https://forum.cockos.com/showthread.php?p=1951687
ganttictemp is offline   Reply With Quote
Old 02-16-2018, 01:17 AM   #11
ganttictemp
Human being with feelings
 
Join Date: Jan 2018
Posts: 43
Default

No answer, I'm afraid. According to Python forums (https://python-forum.io/Thread-tkint...39124#pid39124) it should work beacause testing GUI works, but somehow Reaper goes for Python 2.7 instead of the one installed, 3.6 No matter what, I can't make it work.

Any ideas?
ganttictemp is offline   Reply With Quote
Old 02-16-2018, 02:38 AM   #12
Aymara
Human being with feelings
 
Aymara's Avatar
 
Join Date: Dec 2014
Location: Ruhr Area, Germany
Posts: 977
Default

Ehm, Python 2.7 is 32bit only ... have you installed Reaper 64bit ???
__________________
Greetings from Germany

Chris
Aymara is offline   Reply With Quote
Old 02-16-2018, 04:17 AM   #13
ganttictemp
Human being with feelings
 
Join Date: Jan 2018
Posts: 43
Default

Yes. Reaper 64 bits.
ganttictemp is offline   Reply With Quote
Old 02-16-2018, 04:45 AM   #14
Aymara
Human being with feelings
 
Aymara's Avatar
 
Join Date: Dec 2014
Location: Ruhr Area, Germany
Posts: 977
Default

Quote:
Originally Posted by ganttictemp View Post
Yes. Reaper 64 bits.
Mmh, might that be a Reaper bug then, that it still uses 2.7?
__________________
Greetings from Germany

Chris
Aymara is offline   Reply With Quote
Old 02-16-2018, 05:48 AM   #15
ganttictemp
Human being with feelings
 
Join Date: Jan 2018
Posts: 43
Default

I think it something about OSX that forces somehow to use 2.7 or something like this. Not sure, my head is bumped with this.
ganttictemp is offline   Reply With Quote
Old 02-16-2018, 08:26 AM   #16
Aymara
Human being with feelings
 
Aymara's Avatar
 
Join Date: Dec 2014
Location: Ruhr Area, Germany
Posts: 977
Default

Ok, it might be related to the fact, that Mavericks is very outdated.

I would install High Sierra or at least El Capitan on a USB HDD and check out, if it works under a more recent OSX/macOS. You just need an OSX installer USB stick.

That's easy to do at a low cost.

If that still doesn't work, it might be a Reaper issue.
__________________
Greetings from Germany

Chris
Aymara is offline   Reply With Quote
Old 02-16-2018, 10:01 AM   #17
ganttictemp
Human being with feelings
 
Join Date: Jan 2018
Posts: 43
Default

Quote:
Originally Posted by Aymara View Post
Ok, it might be related to the fact, that Mavericks is very outdated.

I would install High Sierra or at least El Capitan on a USB HDD and check out, if it works under a more recent OSX/macOS. You just need an OSX installer USB stick.

That's easy to do at a low cost.

If that still doesn't work, it might be a Reaper issue.
Yep. I thought about it. I have to give a try. Let you know what happens. Thanks!
ganttictemp is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.