Menu

Has this been configured correctly?

k-82
2011-08-07
2013-03-15
  • k-82

    k-82 - 2011-08-07

    Hi,

    I'm new to linux, eclipse and python. I'm using Mint 11, I installed python 3.2 from synaptic, eclipse 3.5.2 from the software manager and installed pydev from within eclipse. I have added the python 3.2 interpreter as usr/bin/python3.2 (but it was automatically changed to python3.2mu) and it added five folders to the libraries tab. Python 2.7 is also there, but I didn't add it manually.

    When I tried a hello world program, it didn't do anything:

    Finding files… done.
    Importing test modules … done.


    Ran 0 tests in 0.000s

    OK

    So I renamed the file from "test" to "test.py" and it worked:

    Finding files… done.
    Importing test modules … hello
    done.


    Ran 0 tests in 0.000s

    OK

    I ran a line of code to print the version of python and it is 3.2. However there is no code highlighting or code completion. Is this normal or am I missing steps to configure pydev?

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-08-07

    You said it worked, but in the 2nd place it's the same print from the first (is that right?)

    Also, you need actual python modules (i.e.: files that can be imported) as the test files, so, if you had only 'test' and not 'test.py', it's expected that it wouldn't work.

    Also, your files need to be in the pythonpath… have you followed the steps from: http://pydev.org/manual_101_root.html to configure pydev?

    Cheers,

    Fabio

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.