<div dir="ltr">Paolo I cannot replicate this, I just created a new venv and installed geonode in it and I see the pep8 violations.<div>here my versions 2.3.0 (pep8: 1.6.2, pyflakes: 0.8.1, mccabe: 0.3) CPython 2.7.6 on Linux</div>
</div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-10 14:15 GMT+01:00 Paolo Corti <span dir="ltr"><<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">They are already in my virtualenv, installed by the geonode setup<br>
process. I updated pep8 to 1.6.2 but no joy:<br>
<br>
flake8==2.3.0<br>
mccabe==0.3<br>
pep8==1.6.2<br>
pyflakes==0.8.1<br>
<br>
Simone, can you replicate this in your development computer?<br>
Try to recreate a virtualenv and see if it happens to you as well<br>
p<br>
<br>
On Tue, Mar 10, 2015 at 2:01 PM, Simone Dalmasso<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:simone.dalmasso@gmail.com">simone.dalmasso@gmail.com</a>> wrote:<br>
> Do you think that we should specify all the components? pyflakes and mccabe.<br>
><br>
> 2015-03-10 13:52 GMT+01:00 Paolo Corti <<a href="mailto:pcorti@gmail.com">pcorti@gmail.com</a>>:<br>
>><br>
>> for what is worth not even updating pep from 1.5.7 to 1.6.2 seems to fix<br>
>> things.<br>
>> cheers<br>
>> p<br>
>><br>
>> On Tue, Mar 10, 2015 at 1:49 PM, Simone Dalmasso<br>
>> <<a href="mailto:simone.dalmasso@gmail.com">simone.dalmasso@gmail.com</a>> wrote:<br>
>> > The strange thing is that we have specified the pep8 version in setup.py<br>
>> > <a href="https://github.com/GeoNode/geonode/blob/master/setup.py#L146" target="_blank">https://github.com/GeoNode/geonode/blob/master/setup.py#L146</a>, I'm sure<br>
>> > that<br>
>> > the reason of the issue si the old version of pep8 but why is not<br>
>> > installed<br>
>> > with setup.py?<br>
>> ><br>
>> > 2015-03-10 12:36 GMT+01:00 Paolo Corti <<a href="mailto:pcorti@gmail.com">pcorti@gmail.com</a>>:<br>
>> >><br>
>> >> Hi devs<br>
>> >><br>
>> >> today I am experiencing a weird problem with the flake8 and its<br>
>> >> dependencies that come installed with GeoNode in a virtualenv. This<br>
>> >> flake8 seems not to be able to recognize unused imports.<br>
>> >><br>
>> >> How to replicate:<br>
>> >> $ virtualenv --no-site-packages env<br>
>> >> $ . env/bin/activate<br>
>> >> $ pip install -e .<br>
>> >><br>
>> >> now if I run flake8 the unused imports are not detected.<br>
>> >><br>
>> >> This is what I have:<br>
>> >> $ flake8 --version<br>
>> >> 2.3.0 (pep8: 1.5.7) CPython 2.7.3 on Linux<br>
>> >><br>
>> >> Instead if I create a fresh virtualenv and I just install flake8 it<br>
>> >> seems to work (note the output of flake8 --version, it is different<br>
>> >> and seems containing references to pyflakes and mccabe):<br>
>> >><br>
>> >> $ virtualenv --no-site-packages env_flake8<br>
>> >> $ . env_flake8/bin/activate<br>
>> >> $ pip install flake8==2.3.0<br>
>> >> $ flake8 --version<br>
>> >> 2.3.0 (pep8: 1.6.2, pyflakes: 0.8.1, mccabe: 0.3) CPython 2.7.3 on<br>
>> >> Linux<br>
>> >> $ flake8 geonode<br>
>> >> geonode/geoserver/tests.py:10:1: F401 'Client' imported but unused<br>
>> >> geonode/tests/smoke.py:22:1: F401 'Client' imported but unused<br>
>> >> geonode/documents/tests.py:10:1: F401 'Client' imported but unused<br>
>> >> geonode/people/tests.py:21:1: F401 'Client' imported but unused<br>
>> >> geonode/tests/integration.py:32:1: F401 'Client' imported but unused<br>
>> >><br>
>> >> any idea of what can be causing the failure?<br>
>> >> thanks<br>
>> >> p<br>
>> >><br>
>> >> --<br>
>> >> Paolo Corti<br>
>> >> Geospatial software developer<br>
>> >> web: <a href="http://www.paolocorti.net" target="_blank">http://www.paolocorti.net</a><br>
>> >> twitter: @capooti<br>
>> >> skype: capooti<br>
>> >> _______________________________________________<br>
>> >> geonode-devel mailing list<br>
>> >> <a href="mailto:geonode-devel@lists.osgeo.org">geonode-devel@lists.osgeo.org</a><br>
>> >> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-devel" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-devel</a><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Simone<br>
>><br>
>><br>
>><br>
>> --<br>
>> Paolo Corti<br>
>> Geospatial software developer<br>
>> web: <a href="http://www.paolocorti.net" target="_blank">http://www.paolocorti.net</a><br>
>> twitter: @capooti<br>
>> skype: capooti<br>
><br>
><br>
><br>
><br>
> --<br>
> Simone<br>
<br>
<br>
<br>
--<br>
Paolo Corti<br>
Geospatial software developer<br>
web: <a href="http://www.paolocorti.net" target="_blank">http://www.paolocorti.net</a><br>
twitter: @capooti<br>
skype: capooti<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">SimoneĀ </div>
</div>