Solved

eclipse giving error when test program exits

Posted on 2014-11-28
6
127 Views
Last Modified: 2015-06-03
I upgraded my Eclipse IDE version Kepler by downloading the new version (Luna) and replacing the old C:\Program FIles\Eclipse with the new (since there's no installer).

Now when I run a test program which displays a spinner, it runs fine until I close the window to exit the program. Then Eclipse Console Window displays:
Traceback (most recent call last):
  File "C:\Python27_x64\lib\site-packages\py2exe\boot_common.py", line 92, in <module>
ImportError: No module named linecache
Traceback (most recent call last):
  File "boot_com_servers.py", line 4, in <module>
ImportError: No module named win32api
I have no C:\Python27_x64... folder, I have no file named boot_common.py anywhere on my hard drive, nor do I have a file named boot_com_servers.py anywhere on my hard drive. I'm not sure why my Eclipse IDE is trying to run some Python code when I close the test program.

Here's my test code:
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSpinner;


public class Test2 extends JPanel {

	  public static void main(String[] args) {
			JFrame frame = new JFrame();
			frame.setTitle("Test Spinner");
			frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
			frame.setSize(230, 90);
			frame.add(new JSpinner());
			frame.setVisible(true);
	  }
}

Open in new window

Test program runningAfter clicking the big red X in upper right corner to close Test windowWhat's this error message all about?
0
Comment
Question by:deleyd
  • 3
  • 2
6 Comments
 
LVL 61

Accepted Solution

by:
gheist earned 333 total points
ID: 40471932
That python cannot import win32api, so you must use setuptools or something to install.
0
 

Author Comment

by:deleyd
ID: 40472140
I don't understand.

Why is Eclipse trying to run Python in the first place?
0
 
LVL 20

Assisted Solution

by:Amitkumar Panchal
Amitkumar Panchal earned 167 total points
ID: 40472246
Please check the following:

1. Check eclipse config and search for python or jython.
2. Also search for a jar in the lib with name like jython.

Share the outcome, so that we can move ahead.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:deleyd
ID: 40485242
I searched everywhere. The only *.py file found is:

C:\Program Files\eclipse\plugins\org.apache.ant_1.9.2.v201404171502\bin\runant.py

No .jar files anywhere with "ython" in the name.
0
 
LVL 61

Assisted Solution

by:gheist
gheist earned 333 total points
ID: 40485245
So install win32api in your python environment and live happy.
Normally eclipse would use builtin jython in absence of external python.
0
 

Author Comment

by:deleyd
ID: 40514408
I tried installing Python 2.7, to see if that would make it happy, but it still complains.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now