Hi Haveem,

I forgot to add; to test the import commands, open a python3 console and 
test the import commands:

In a terminal, simply type python3 to open a python3 console.

Test-1:
 >>> from tkinter.filedialog import *
 >>> filedilaog

Note the results.

Test-2
 >>> from Tkinter.filedialog import *

note the difference in results / error.

If desired, test the same combination(s) in a python console, noting the 
differences.

73's
Greg, KI7MT


On 8/28/2015 5:11 PM, Greg Beam wrote:
> Hi Haveem,
>
> I think the issue is being misunderstood here.
>
> Python3, and the latest WSJT Version from SVN, calls for
>
> "tkinter" not "Tkinter"
>
> For example:
> Python2 --> Python3
> Tkinter --> tkinter
> tkMessageBox --> tkinter.messagebox
> tkFileDialog --> tkinter.filedialog
> tkSimpleDialog --> tkinter.simpledialog
>
> The current WSJT.py file calls:
>
> from tkinter.filedialog import *
>
> As seen here: http://sourceforge.net/p/wsjt/wsjt/HEAD/tree/trunk/wsjt.py#
>
> So, either you building an older version of WSJT, which was Python2
> based, or, your tool chain is incorrect. I suspect the former, your not
> building the latest source code.
>
> I don't think this has anything to do with portaudio, but, if the
> Linux-Mint folks think it does, ask them to explain the Tkinter v.s.
> tkinter error you've posted.
>
>
> 73's
> Greg, KI7MT
>
>
> On 8/28/2015 3:40 PM, Håken Hveem wrote:
>> Ok, i have tried to compile with the JTSDK. That results in the same
>> problem as mentioned in the bug:
>> https://bugs.launchpad.net/ubuntu/+source/wsjt/+bug/1488906
>> The problem is, according to the folks at the #linuxmint-chat ,-
>> Linux mint and jack audio server does not play along nice, and the wsjt
>> package needs libjack-jackd2-0.
>>
>> So, i have tried to configure with these options,so wsjt does not need
>> the Jack package:
>> /configure  --with-portaudio-include-dir=/usr/include
>> --with-portaudio-lib-dir=/usr/lib/x86_64-linux-gnu
>>
>> That still results in: ./wsjt
>> Traceback (most recent call last):
>>    File "/usr/bin/wsjt.py", line 6, in <module>
>>      from Tkinter.filedialog import *
>> ImportError: No module named filedialog
>>
>>
>>
>>
>>
>> Den 28. aug. 2015 17:22, skrev KI7MT:
>>> Hi Hveem,
>>>
>>> All your python packages needs to be python3, not python2.
>>>
>>> And, after building WSJT, you should run the wsjt.sh script, rather than
>>> running the .py directly.
>>>
>>> Additionally, build-essential is for Debian / Ubuntu packaging, it even
>>> says as much in the package description.
>>>
>>> ----
>>> Description-en: Informational list of build-essential packages
>>>   If you do not plan to build Debian packages, you don't need this
>>>   package.  Starting with dpkg (>= 1.14.18) this package is required
>>>   for building Debian packages
>>> -----
>>>
>>> I would recommend using JTSDK to build with, as it ensures the right
>>> package list and build scripts, but that's up to you.
>>>
>>> https://launchpad.net/~ki7mt/+archive/ubuntu/jtsdk
>>>
>>> Just following the install instructions.
>>>
>>> There are several additional packages, but as you posted about Python,
>>> these are the packages you need with respect to Python3:
>>>
>>> python3-dev, python3-numpy, python3-pil, python3-pil.imagetk,
>>> python3-pip, python3-setuptools
>>>
>>> I am not sure where you got the package list for building WSJT, but it
>>> needs to be updated.
>>>
>>>
>>> 73's
>>> Greg, KI7MT
>>>
>>>
>>> On 08/28/2015 03:01 AM, Håken Hveem wrote:
>>>>
>>>> Hello, there seems to be some faults with the wsjt.py file.
>>>> Fault 1: running ./wsjt resluts in the following error message:
>>>> Traceback (most recent call last):
>>>>    File "/usr/bin/wsjt.py", line 5, in <module>
>>>>      from tkinter import *
>>>> ImportError: No module named tkinter
>>>> I fixed this with replacing all the tkinter instances with:
>>>> Tkinter.
>>>>
>>>> Fault number 2:
>>>>
>>>> Trying to run it now results in:
>>>> ./wsjt
>>>> Traceback (most recent call last):
>>>>    File "/usr/bin/wsjt.py", line 6, in <module>
>>>>      from Tkinter.filedialog import *
>>>> ImportError: No module named filedialog
>>>>
>>>> The wsjt.py file reads:
>>>>
>>>> #!/usr/bin/env python
>>>> #-------------------------------------------------------------------------
>>>>
>>>> WSJT
>>>> # $Date: 2015-08-05 22:04:20 +0200 (on., 05 aug. 2015) $ $Revision:
>>>> 5755 $
>>>> #
>>>> from Tkinter import *
>>>> from Tkinter.filedialog import *
>>>> import Pmw
>>>> import Tkinter.messagebox
>>>> from WsjtMod import g
>>>> import os,time
>>>> from WsjtMod import Audio
>>>> from math import log10
>>>> import numpy.core.multiarray         # Tell cxfreeze we need the
>>>> numpy stuff
>>>> from PIL import Image
>>>> from PIL import ImageTk
>>>> from WsjtMod.palettes import colormapblue, colormapgray0,
>>>> colormapHot, \
>>>>       colormapAFMHot, colormapgray1, colormapLinrad, Colormap2Palette
>>>> from types import *
>>>> import array
>>>> import _thread
>>>> import webbrowser
>>>>
>>>>
>>>> How do i fix this ?
>>>>
>>>> It compiled just fine with the following packets installed:
>>>> build-essential gfortran python-numpy python-scipy python-imaging-tk
>>>> python-imaging  python-all python-all-dev
>>>>
>>>> -----------
>>>> Håken Hveem
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> wsjt-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/wsjt-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> wsjt-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/wsjt-devel
>>>
>>

------------------------------------------------------------------------------
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to