First time here? Check out the FAQ!
1

Python shell crashing in Wing 101
 

Hello everyone, I've been a casual Python editor now for 10+ years, but this past winter I had to factory reset my computer resulting in losing all my configuration settings.

I'm having an issue now trying to get the new version of Wing 8.3.0.4 (rev bd71a1fe9ed3) running on my macOS laptop (12.3.1), running Python 3.10.4

Originally I was trying to run my script but I was getting an error, so then I tried running some basic import

import pandas
import xlrd
import openpyxl

Which gives me the exact same error as what I was getting when running my script - the following error gets printed to the shell:

aborted (disconnected)

I also get the "Python has crashed, report the problem to Apple" dialog box

I am able to run my script without any issues through the macOS Terminal (using the command python3 filename.py), so it does not seem to be related to my Python installation but with the Wing IDE installation.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
belzgausstd's avatar
11
belzgausstd
asked 2 years ago
Wingware Support's avatar
4.2k
Wingware Support
updated 2 years ago

Comments

Could you please try each of the above imports one at a time, to see which one is crashing it? Once that's known, please let us know what version of that package you have and please also email your preferences file (from ~/.wingpro8/preferences) to us at support@wingware.com so we can try to replicate this here. Thanks for reporting this problem!

Wingware Support's avatar Wingware Support (2 years ago)

I have tried each independently and not one particularly is crashing it ... although I just tried a different order and it seems to have worked successfully

pandas/xlrd/openpyxl crashes it ... openpyxl/xlrd/pandas did not crash it

belzgausstd's avatar belzgausstd (2 years ago)

Interesting. We'll try to replicate this here. If you can provide the versions of the packages pandas, xlrd, and openpyxl that might be relevant. It could be a bug in specific versions, possibly something our debugger somehow brings out. Thanks!

Wingware Support's avatar Wingware Support (2 years ago)

so casual programmer here... how would I get the version numbers for the packages? 😳 :)

more than happy to get it - just need some guidance on how to collect

belzgausstd's avatar belzgausstd (2 years ago)

The standard is to have the version in the __version__ attribute of the top-level package. Not all do that but it looks like these three all do: pandas.__version__, xlrd.__version__, and openpyxl.__version__. Thanks!

Wingware Support's avatar Wingware Support (2 years ago)
see more comments

2 Answers

1

I managed to replicate this with Wing 8.3.0.4. It does not occur in 8.3.1, which should be out later today. Thanks very much for reporting this problem.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.2k
Wingware Support
answered 2 years ago
link

Comments

yup I confirm it is working on my side as well - thanks for the help!

belzgausstd's avatar belzgausstd (2 years ago)
see more comments
0

Do you use python version supplied by Apple or did you installed your own? Have you tried to use python installed by your own? I've heard that python version shipped with macOS is not the same as the one from python.org.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
KhazAkar's avatar
124
KhazAkar
answered 2 years ago, updated 2 years ago
link

Comments

As far as I know we never got a reply from the original poster, but just FYI and/or in case you meant the Python that Wing uses: We have our own private Python build that Wing itself runs on (it's mostly written in Python). Of course the user can run with any Python installation within the constraints of what we support and that includes the Python provided by Apple: https://wingware.com/doc/install/supp...

Wingware Support's avatar Wingware Support (2 years ago)

sorry I've been away from computer - as noted in my ticket I'm using Python 3.10.4 - not the version installed on macOS

belzgausstd's avatar belzgausstd (2 years ago)

I've meant python version shipped with system for python shell, not for Wing itself. I know that wing uses internally 3.9 :)

Okay, so if it's not the version shipped by Apple, have you tried for example 3.8 or 3.9 instead of 3.10?

KhazAkar's avatar KhazAkar (2 years ago)

I installed Python 3.10.4 and Wing 101 8.3.0

belzgausstd's avatar belzgausstd (2 years ago)
see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)