Re: [Tutor] No module named '_tkinter'
On Sun, Dec 8, 2013 at 2:36 PM, pierre dagenais eq...@ncf.ca wrote: I'm running Ubuntu 10.04 and I've installed python 3.3.3 from the tarball at http://python.org/ftp/python/3.3.3/Python-3.3.3.tar.xz Here is the error I get when trying to run tkinter. ImportError: No module named '_tkinter' I've tried installing python3-tk from the Ubuntu repository but it doesn't help. It looks like you didn't install the development dependencies before building. The build-dep for Lucid's 3.1 package should do the trick. sudo apt-get update sudo apt-get build-dep python3.1 For good measure run the following, too: sudo apt-get install build-essential \ libbz2-dev libdb-dev libexpat1-dev libffi-dev \ libgdbm-dev liblzma-dev libncursesw5-dev \ libreadline6-dev libsqlite3-dev libssl-dev \ tk-dev zlib1g-dev Then do a `make clean` and rebuild. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] No module named '_tkinter'
On 13-12-08 10:57 PM, Reuben wrote: Can you try importing the module '_tkinter' On 09-Dec-2013 6:43 AM, pierre dagenais eq...@ncf.ca wrote: Hi, I'm running Ubuntu 10.04 and I've installed python 3.3.3 from the tarball at http://python.org/ftp/python/3.3.3/Python-3.3.3.tar.xz Here is the error I get when trying to run tkinter. pierre@Sprint:~$ python3.3 Python 3.3.3 (default, Dec 2 2013, 11:10:53) [GCC 4.6.3] on linux Type help, copyright, credits or license for more information. import tkinter Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python3.3/tkinter/__init__.py, line 40, in module import _tkinter # If this fails your Python may not be configured for Tk ImportError: No module named '_tkinter' I've tried installing python3-tk from the Ubuntu repository but it doesn't help. Any suggestion on how to install the tkinter module with this version? Thank you, PierreD. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor I get a similar error. ImportError: No module named '_tkinter' import _tkinter Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named '_tkinter' ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] No module named '_tkinter' ***solved***
On 13-12-09 03:14 AM, eryksun wrote: On Sun, Dec 8, 2013 at 2:36 PM, pierre dagenais eq...@ncf.ca wrote: I'm running Ubuntu 10.04 and I've installed python 3.3.3 from the tarball at http://python.org/ftp/python/3.3.3/Python-3.3.3.tar.xz Here is the error I get when trying to run tkinter. ImportError: No module named '_tkinter' I've tried installing python3-tk from the Ubuntu repository but it doesn't help. It looks like you didn't install the development dependencies before building. The build-dep for Lucid's 3.1 package should do the trick. sudo apt-get update sudo apt-get build-dep python3.1 python3.1 is not available on precise pangolin, so used python3.2 instead. For good measure run the following, too: sudo apt-get install build-essential \ libbz2-dev libdb-dev libexpat1-dev libffi-dev \ libgdbm-dev liblzma-dev libncursesw5-dev \ libreadline6-dev libsqlite3-dev libssl-dev \ tk-dev zlib1g-dev A few of these were missing, installed now. Then do a `make clean` and rebuild. Don't know what a 'make clean' is. I skipped it and rebuilt, looks good now. I can 'import tkinter' without error. Thank you, much appreciated, PierreD. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] No module named '_tkinter'
Hi, I'm running Ubuntu 10.04 and I've installed python 3.3.3 from the tarball at http://python.org/ftp/python/3.3.3/Python-3.3.3.tar.xz Here is the error I get when trying to run tkinter. pierre@Sprint:~$ python3.3 Python 3.3.3 (default, Dec 2 2013, 11:10:53) [GCC 4.6.3] on linux Type help, copyright, credits or license for more information. import tkinter Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python3.3/tkinter/__init__.py, line 40, in module import _tkinter # If this fails your Python may not be configured for Tk ImportError: No module named '_tkinter' I've tried installing python3-tk from the Ubuntu repository but it doesn't help. Any suggestion on how to install the tkinter module with this version? Thank you, PierreD. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] No module named '_tkinter'
Can you try importing the module '_tkinter' On 09-Dec-2013 6:43 AM, pierre dagenais eq...@ncf.ca wrote: Hi, I'm running Ubuntu 10.04 and I've installed python 3.3.3 from the tarball at http://python.org/ftp/python/3.3.3/Python-3.3.3.tar.xz Here is the error I get when trying to run tkinter. pierre@Sprint:~$ python3.3 Python 3.3.3 (default, Dec 2 2013, 11:10:53) [GCC 4.6.3] on linux Type help, copyright, credits or license for more information. import tkinter Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python3.3/tkinter/__init__.py, line 40, in module import _tkinter # If this fails your Python may not be configured for Tk ImportError: No module named '_tkinter' I've tried installing python3-tk from the Ubuntu repository but it doesn't help. Any suggestion on how to install the tkinter module with this version? Thank you, PierreD. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor