Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Looking for help getting tkinter to work. (http://www.velocityreviews.com/forums/t703734-looking-for-help-getting-tkinter-to-work.html)

Shue Boks 11-01-2009 03:06 AM

Looking for help getting tkinter to work.
 
I tried to compile Python and Tcl/Tk on Linux using the following
files:

Python-3.1.1.tar.gz
tcl8.5.7-src.tar.gz

Cannot get tkinter to work after compiling & installing Tcl/Tk. I get
the following error after compiling Python:

"Python build finished, but the necessary bits to build these modules
were not found:
_tkinter
To find the necessary bits, look in setup.py in detect_modules() for
the module's name."

Are the above files the correct versions to get tkinter to work?

Thanks.

Francesco Bochicchio 11-01-2009 02:27 PM

Re: Looking for help getting tkinter to work.
 
On Nov 1, 4:06*am, Shue Boks <shoebox56car...@gmail.com> wrote:
> I tried to compile Python and Tcl/Tk on Linux using the following
> files:
>
> Python-3.1.1.tar.gz
> tcl8.5.7-src.tar.gz
>
> Cannot get tkinter to work after compiling & installing Tcl/Tk. *I get
> the following error after compiling Python:
>
> "Python build finished, but the necessary bits to build these modules
> were not found:
> _tkinter
> To find the necessary bits, look in setup.py in detect_modules() for
> the module's name."
>
> Are the above files the correct versions to get tkinter to work?
>
> Thanks.


The version should be ok. I just compiled python3.1 against tcl/tk
8.5, only I used
the tcl/tk development packages coming with my distribution (Ubuntu).
I used
../configure --with-tk, so if you did not, try that first.

Did you run 'make install' during tcl/tk installation _before_ doing ./
configure in python source
directory?

If so, look where the library files ( e.g. libtk8.5.so ) and include
files (e.g tk.h ) have been placed
and check against the places where the function 'detect_tkinter' in
'setup.py' looks for them.

Ciao
-----
FB

Shue Boks 11-08-2009 07:38 PM

Re: Looking for help getting tkinter to work.
 
On Nov 1, 6:27 am, Francesco Bochicchio <bieff...@gmail.com> wrote:
> On Nov 1, 4:06 am, Shue Boks <shoebox56car...@gmail.com> wrote:
>
>
>
> > I tried to compile Python and Tcl/Tk on Linux using the following
> > files:

>
> > Python-3.1.1.tar.gz
> > tcl8.5.7-src.tar.gz

>
> > Cannot get tkinter to work after compiling & installing Tcl/Tk. I get
> > the following error after compiling Python:

>
> > "Python build finished, but the necessary bits to build these modules
> > were not found:
> > _tkinter
> > To find the necessary bits, look in setup.py in detect_modules() for
> > the module's name."

>
> > Are the above files the correct versions to get tkinter to work?

>
> > Thanks.

>
> The version should be ok. I just compiled python3.1 against tcl/tk
> 8.5, only I used
> the tcl/tk development packages coming with my distribution (Ubuntu).
> I used
> ./configure --with-tk, so if you did not, try that first.
>
> Did you run 'make install' during tcl/tk installation _before_ doing ./
> configure in python source
> directory?
>
> If so, look where the library files ( e.g. libtk8.5.so ) and include
> files (e.g tk.h ) have been placed
> and check against the places where the function 'detect_tkinter' in
> 'setup.py' looks for them.
>
> Ciao
> -----
> FB



Sorry for the late response, I only get a chance to play with this on
the weekends.

I tried everything mentioned above, but nothing seems to work. I did
a "find / " on the two files libtk8.5.so and tk.h, it doesn't appear
anywhere. I am really thinking that tcl8.5.7-src.tar.gz doesn't have
the necessary files I need.

I am using Puppy Linux which I am slowly giving up on. I love Puppy,
but their distribution doesn't come with the tcl/tk development
package that Ubuntu has.



All times are GMT. The time now is 08:30 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57