From dsenator03 at gmail.com Wed Jul 4 10:08:21 2018 From: dsenator03 at gmail.com (tariah kennedy) Date: Wed, 4 Jul 2018 15:08:21 +0100 Subject: [Idle-dev] Failure to import module Message-ID: Hi there. Recently I created a module transaction.py and tried to import it into another program but i received a ModuleNotFoundError. Please help! I use a idle 3.6.2 Kennedy -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjreedy at udel.edu Fri Jul 6 20:37:05 2018 From: tjreedy at udel.edu (Terry Reedy) Date: Fri, 6 Jul 2018 20:37:05 -0400 Subject: [Idle-dev] Failure to import module In-Reply-To: References: Message-ID: On 7/4/2018 10:08 AM, tariah kennedy wrote: > Hi there. Recently I created a module transaction.py and tried to import > it into another program but i received a ModuleNotFoundError. > > Please help! I use a idle 3.6.2 IDLE-dev discusses changing IDLE for future cpython releases. That includes discussion of IDLE bugs and fixes. I doubt your issue qualifies and only passed it through moderation so I could post the following. The first thing you should do is to run your importing program in python 3.6.2 and see if you get the same exception. This will nearly always the case, and indicates that the problem is not with IDLE. Questions about using Python should go elsewhere, such as python-list or possibly stackoverflow. Problems importing one's own module are usually a user mistakes, from not understanding the import doc. So the next thing to do is re-read it. If and when you ask your question again, include the operating system, the complete path of both modules, the complete exception trackback, and the output of 'import sys; print(sys.modules)'. If the problem only occurs with IDLE, include the sys.modules output both when running directly in python and when running through IDLE. -- Terry Jan Reedy From w.schnyder at northeastern.edu Sun Jul 8 20:05:29 2018 From: w.schnyder at northeastern.edu (Schnyder, Walter) Date: Mon, 9 Jul 2018 00:05:29 +0000 Subject: [Idle-dev] Mac IDLE 3.7.0 freezes when accessing Preferences Message-ID: <6EA6BD6B-11B0-4E25-B7CB-3FA3267726B6@northeastern.edu> Hello, I hope this is the correct address to report bugs. I have two to report. I am using IDLE 3.7.0 and came across these bugs on several Macs, all running OS X v 10.13.5. Bug A: 1. From the shell select Preferences in the IDLE menu. 2. Cancel the Preferences to get back to the Shell 3. The shell is frozen. It doesn?t even react to CONTROL-D. The only way I found to resurrect it is to control-click the shell window and select ?Go to file/line? causing an error message to appear. Click OK and the shell comes back to life. Note: This doesn?t only happen when accessing preferences. It also happens when selecting ?About IDLE? in the IDLE menu. Bug B: IDLE 3.7.0 doesn?t display tooltips anymore: 1. On the prompt type print( >>> print( No tooltip appears. Regards, Walter Schnyder Associate Teaching Professor College of Computer and Information Science Northeastern University From tjreedy at udel.edu Mon Jul 9 09:19:18 2018 From: tjreedy at udel.edu (Terry Reedy) Date: Mon, 9 Jul 2018 09:19:18 -0400 Subject: [Idle-dev] Mac IDLE 3.7.0 freezes when accessing Preferences In-Reply-To: <6EA6BD6B-11B0-4E25-B7CB-3FA3267726B6@northeastern.edu> References: <6EA6BD6B-11B0-4E25-B7CB-3FA3267726B6@northeastern.edu> Message-ID: On 7/8/2018 8:05 PM, Schnyder, Walter wrote: > I hope this is the correct address to report bugs. I have two to report. It is a place to start. I am sending the reply to you as well as the list because I need more information and don't know if you are reading the list. Please send responses to the list and not my email. I am guessing that you are not registered with our tracker, bugs.python.org. I can post these issues there, but need more info to do anything. > I am using IDLE 3.7.0 and came across these bugs on several Macs, all running OS X v 10.13.5. Unfortunately, tk, tkinter, and hence IDLE are the most troublesome on Mac, but they are the least well tested there. Which of the two installers did you use. Have you used previous versions of Python and IDLE? If so, which, and are these problems new for you on 3.7.0? If you start python and IDLE with 'python3 -m idlelib' in a terminal, and repeat the actions reported below, do you see any error messages in the terminal? What happens if you run 'python3 -m test.test_idle'? If there are any errors, please run 'python3 -m test -v -ugui test_idle' and report the specific error messages. > Bug A: > 1. From the shell select Preferences in the IDLE menu. > 2. Cancel the Preferences to get back to the Shell > 3. The shell is frozen. It doesn?t even react to CONTROL-D. > > The only way I found to resurrect it is to control-click the shell window and select ?Go to file/line? causing an error message to appear. Click OK and the shell comes back to life. > > Note: This doesn?t only happen when accessing preferences. It also happens when selecting ?About IDLE? in the IDLE menu. This makes me think that the problem is with the new version of tcl/tk installed with python or its interaction with tkinter. Neither of these have been touched since last September or Octover. Please run 'python3 -m idlelib.configdialog'. After the unittests repeat, an 'htest' (human-judged test) box appears. Follow the instructions. Does [cancel] hang the test? Do any error messages appear in the terminal? Repeat with 'python3 -m idlelib.help_about'. > Bug B: > IDLE 3.7.0 doesn?t display tooltips anymore: > 1. On the prompt type print( > >>> print( > No tooltip appears. Repeat with 'python3 -m idlelib.calltip_w' -- Terry Jan Reedy From w.schnyder at northeastern.edu Mon Jul 9 20:50:11 2018 From: w.schnyder at northeastern.edu (Schnyder, Walter) Date: Tue, 10 Jul 2018 00:50:11 +0000 Subject: [Idle-dev] Mac IDLE 3.7.0 freezes when accessing Preferences In-Reply-To: References: <6EA6BD6B-11B0-4E25-B7CB-3FA3267726B6@northeastern.edu> Message-ID: Thanks for your reply. I am addressing your points below.. On Jul 9, 2018, at 9:19 AM, Terry Reedy > wrote: On 7/8/2018 8:05 PM, Schnyder, Walter wrote: I hope this is the correct address to report bugs. I have two to report. It is a place to start. I am sending the reply to you as well as the list because I need more information and don't know if you are reading the list. Please send responses to the list and not my email. I am guessing that you are not registered with our tracker, bugs.python.org. I can post these issues there, but need more info to do anything. I just registered to the tracker as walters with email wscghnyder at yahoo.com. I am adding the info below. I am using IDLE 3.7.0 and came across these bugs on several Macs, all running OS X v 10.13.5. Unfortunately, tk, tkinter, and hence IDLE are the most troublesome on Mac, but they are the least well tested there. Which of the two installers did you use. Have you used previous versions of Python and IDLE? If so, which, and are these problems new for you on 3.7.0? I used the 64-bit installer for Python 3.0.7. Yes I have used Python and IDLE before, the last version being 3.4. The problems are entirely new. (They are not due to conflicts with earlier versions as one of the test machines is brand new.) The installed version is: Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 26 2018, 23:26:24) [Clang 6.0 (clang-600.0.57)] on darwin If you start python and IDLE with 'python3 -m idlelib' in a terminal, and repeat the actions reported below, do you see any error messages in the terminal? The same problems occur (both bugs A and B). There is no error in the terminal window. But I learned something new: after running the steps for bug A, IDLE is frozen (no blinking cursor, not responding to Control+D. However, if I bring another application?s window to the front (by clicking on it) then click back on IDLE?s window, this resurrects IDLE, the cursor blinks and Control+D quits. What happens if you run 'python3 -m test.test_idle'? If there are any errors, please run 'python3 -m test -v -ugui test_idle' and report the specific error messages. python3 -m test.test_idle: OK (skipped=1) python3 -m test -v -ugui test_idle: Test result: SUCCESS Bug A: 1. From the shell select Preferences in the IDLE menu. 2. Cancel the Preferences to get back to the Shell 3. The shell is frozen. It doesn?t even react to CONTROL-D. The only way I found to resurrect it is to control-click the shell window and select ?Go to file/line? causing an error message to appear. Click OK and the shell comes back to life. Note: This doesn?t only happen when accessing preferences. It also happens when selecting ?About IDLE? in the IDLE menu. This makes me think that the problem is with the new version of tcl/tk installed with python or its interaction with tkinter. Neither of these have been touched since last September or Octover. Please run 'python3 -m idlelib.configdialog'. After the unittests repeat, an 'htest' (human-judged test) box appears. Follow the instructions. Does [cancel] hang the test? Do any error messages appear in the terminal? The test does not hang. No error message. Repeat with 'python3 -m idlelib.help_about?. Same as above. No freeze, no error message. Bug B: IDLE 3.7.0 doesn?t display tooltips anymore: 1. On the prompt type print( >>> print( No tooltip appears. Repeat with 'python3 -m idlelib.calltip_w? The h test fails. No calltip appears. Regards, Walter Schnyder -------------- next part -------------- An HTML attachment was scrubbed... URL: From dbegin at yahoo.com Sun Jul 15 18:50:21 2018 From: dbegin at yahoo.com (=?UTF-8?Q?Don_B=C3=A9gin?=) Date: Sun, 15 Jul 2018 22:50:21 +0000 (UTC) Subject: [Idle-dev] Python 3.7 Launcher (RESOLUTION) In-Reply-To: <1531359349.48.965@mint-julep.mondoinfo.com> References: <2120443261.1946871.1531265070930.ref@mail.yahoo.com> <2120443261.1946871.1531265070930@mail.yahoo.com> <2008628750.2354713.1531329527123@mail.yahoo.com> <1531333286.4.965@mint-julep.mondoinfo.com> <264357178.2588257.1531358356291@mail.yahoo.com> <1531359349.48.965@mint-julep.mondoinfo.com> Message-ID: <2096577631.4476260.1531695022420@mail.yahoo.com> Hi, Matt.? I am using the latest version of Windows 10 (i.e., version 1803 [OS Build 17134.165; 2018-07-10 -- KB4331819]). (Thanks for your suggestion regarding "installing for all users" -- whenever a software package displays a choice of that type, I always select it, even though I am the Administrator of my [one-user] laptop.) (a) After doing some research, I realized that the desktop icon I was looking for is actually the Python 3.7.0 Shell, not the "Python Launcher".------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- (b) When I (left-)click the Start button (lower-left corner of the Windows display), I can right-click on the "Python 3.7 (32-bit)" entry in the "Recently Added" section at the top of the Start menu. (If one instead [left]-clicks that entry, a [Windows] "Command Prompt" opens [see Python - Command Prompt.png] -- is it possible that this is the "Python Launcher" entry that displays in [Windows] "Control Panel > Programs > Programs?and Features"?) (c) From there, I can (left-)click "More > Open file location" from the context menu?(see the Python - Start Menu.png attachment below). (d) In the resulting (Windows Explorer) display, there are 4 entries (see the Python - File Locations.png attachment). (e) I then copied the IDLE (Python 3.7 32-bit) shortcut to "This PC > Desktop" in Windows Explorer (see Python 3.7 Shell.png).*************************************************************************************************************************************************************** (f) "Help > About IDLE" in the Shell shows an e-mail contact (idle-dev at python.org) -- I opted to "CC" them on this message in case their configuration for the (2018-06-27) "package" of version 3.7 was supposed to include the creation of a desktop Shell icon (for Windows users)._______________________________________________________________________________________________________________ On Wednesday, July 11, 2018, 7:43:35 p.m. MDT, Matthew Dixon Cowles wrote: Dear Don, > Thanks very much for writing to me -- I haven't heard anything > further, so I will check out that python-win32 list you > mentioned! Here at python-help we're glad to help. But we're just a few volunteers and so there are inevitable gaps in what we know. I wish I had a Windows machine here to fiddle around with. I think that the folks on python-win32 ought to be able to help but if for any reason they can't, let us know and I'll try to scratch my head some more. Your question was admirably clear but you might want to add the version of Windows you're using. That wouldn't help me answer your question because they're all equally mysterious to me, but it might help them. Oh, and if you haven't installed Python for all users, you might try that. I don't have a theory why that might work, but I think I've heard that it sometimes does. Regards, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Python - Command Prompt.png Type: image/png Size: 10793 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Python -Start Menu.png Type: image/png Size: 304345 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Python - File Locations.png Type: image/png Size: 91583 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Python 3.7 Shell.png Type: image/png Size: 82014 bytes Desc: not available URL: