Search code examples
pythoneclipsepydevpep8

pep8 not running. pydev ubuntu?


enter image description hereI have been using LiClipse on my windows machine for python development and get warnings about code line lengths etc. I am currently trying to set up a similar environment on my Ubuntu machine. I have installed eclipse, the pydev plugin, and managed to get my workspace set up. I have the suggested code analysis settings (well I think I do), but pep8 does not seem to work as it did in my LiCplise IDE. Side note, so far the Ubuntu development experience is not what it has been betrayed to me over the years, would go as far as damn poor TBH!

Edit: Folders do have a "__init__.py" file.

Edit: Additional image

enter image description here

Taking pops in the dark also played with PyLint settings, both active and inactive.

enter image description here


Solution

  • The problem is that the directory with the sources is not a valid python module because the folder that has the __init__.py has spaces in it.

    i.e.: /project/section2 is valid whereas /project/section 2 is not (and PyDev does not analyze files which are not valid python modules).