Ticket #1209 (closed check: worksforme)

Opened 2 years ago

Last modified 21 months ago

Problem while developing Orange in Eclipse

Reported by: debugging_maniac Owned by: matija
Milestone: Component: other
Severity: immediate Keywords: Eclipse error development cannot import name Orange
Cc: Blocking:
Blocked By:

Description

Hi.

I am trying to contribute as a developer for orange. I followed instructions at http://orange.biolab.si/trac/wiki/DevEnvironment Everything worked fine till "Setting Up The Eclipse IDE" step. In "Enabling Running and Debugging" step, while testing those three configurations, they are giving me errors. I have attached the sceenshots of the errors.

For python(orange project) I am getting the error: (a) (See 1 Python error1.png & 2 Python error2.png)

Traceback (most recent call last):

File "/home/abhinav/ORANGE-DEVELEOPMENT/orange/Orange/OrangeCanvas/orngCanvas.pyw", line 7, in <module>

import Orange

File "/home/abhinav/ORANGE-DEVELEOPMENT/orange/Orange/init.py", line 9, in <module>

from . import Orange

ImportError: cannot import name Orange

For C++(source project), I am getting:

(b) 3 Local C C++ application.png : When I run as Local C/C++ application, I get build error

(c) 4 orange-canvas-cpp.png: When I run as configuration->orange-canvas-cpp, I get:

Traceback (most recent call last):

File "/home/abhinav/ORANGE-DEVELEOPMENT/orange/Orange/OrangeCanvas/orngCanvas.pyw", line 7, in <module>

import Orange

ImportError: No module named Orange

(d) 5 orange-cpp.png: When I run as configuration->orange-cpp, I get:

Python 2.7.2+ (default, Oct 4 2011, 20:03:08) [GCC 4.6.1] on linux2 Type "help", "copyright", "credits" or "license" for more information.

Hence a python shell starts up.

I would be very grateful if you can sort this problem.. I am unable to proceed . Thank you

Attachments

1 Python error1.png Download (239.7 KB) - added by debugging_maniac 2 years ago.
3 Local C C++ application.png Download (211.7 KB) - added by debugging_maniac 2 years ago.
2 Python error2.png Download (258.3 KB) - added by debugging_maniac 2 years ago.
4 orange-canvas-cpp.png Download (209.0 KB) - added by debugging_maniac 2 years ago.
5 orange-cpp.png Download (140.0 KB) - added by debugging_maniac 2 years ago.

Change History

Changed 2 years ago by debugging_maniac

Changed 2 years ago by debugging_maniac

Changed 2 years ago by debugging_maniac

Changed 2 years ago by debugging_maniac

Changed 2 years ago by debugging_maniac

comment:1 Changed 2 years ago by debugging_maniac

  • Severity changed from minor to immediate

comment:2 Changed 2 years ago by marko

  • Owner set to matija
  • Status changed from new to assigned

comment:3 Changed 21 months ago by matija

  • Status changed from assigned to closed
  • Resolution set to worksforme

Setting up development environment as per our instructions works for me.

Yes, eclipse gives some errors in the Python code, but when ran, the code actually works. Also, debugging Python and C++ code works as expected and described.

I also cleared the parts of the instructions you added, because it ruined the structure of the document and added nothing of value – except for the obvious "helios -> indigo" change in the URL, with which I have updated the pre-existing instructions.

Note: See TracTickets for help on using tickets.