Skip to content

SettingUpEclipse

Ricardo Ferraz Leal edited this page Mar 31, 2019 · 12 revisions

<html><body>

Setting up a Windows IDE in Eclipse

(with thanks to Pete Jemian, APS)

NB: Eclipse requires Java SE!

  • Once these are installed load up Eclipse. It will ask for a workspace directory to store the project files in, you can choose anywhere.
  • Make sure that you are in PyDev mode. You can see this in the top right corner of Eclipse.
  • Setup a new project. File ‣ New ‣ PyDev Project . Name it something sensible like SasView? Project. Leave all options as default but make sure the option "Create 'src' folder and add it to the PYTHONPATH" is selected.
  • Then, you have to go to File ‣ Import , and choose the File System option:

<img src="http://1.bp.blogspot.com/_SDci0Pf3tzU/SVokhZBDNfI/AAAAAAAAEbg/_2sVRjA-PCM/s400/Import+Eclipse.jpg" alt="http://1.bp.blogspot.com/_SDci0Pf3tzU/SVokhZBDNfI/AAAAAAAAEbg/_2sVRjA-PCM/s400/Import+Eclipse.jpg" title="http://1.bp.blogspot.com/_SDci0Pf3tzU/SVokhZBDNfI/AAAAAAAAEbg/_2sVRjA-PCM/s400/Import+Eclipse.jpg" />

  • Select the directory where your files are located and the input Folder, and click finish.
  • Add the directory where the external packages are stored to the PyDev settings. Window ‣ Preferences ‣ PyDev ‣ Interpreter-Python ‣ Libraries ‣ New Folder .
  • If you still have errors with wxPython then remove your interpreter and add it again. After a restart of Eclipse the errors should have disappeared.
  • Finally right click on the project, properties and then change the PyDev PYTHONPATH so that it contains the build directory. This is needed for debugging purposes.
  • Open sansview.py and hit the run button.

<img width="800px" alt="http://i.imgur.com/DTu5A.png" title="http://i.imgur.com/DTu5A.png" src="http://i.imgur.com/DTu5A.png" />

</body></html>

Clone this wiki locally