Issue #16 resolved

MIssing description causes pyroma error

Ned Batchelder
created an issue

This setup.py:

from setuptools import setup

setup(
    name="codejail",
    version="0.1",
    packages=['codejail'],
)

causes this stack trace:

------------------------------
Checking .
Found codejail
Traceback (most recent call last):
  File "/home/ned/mitx_all/python/bin/pyroma", line 9, in <module>
    load_entry_point('pyroma==1.4', 'console_scripts', 'pyroma')()
  File "/home/ned/mitx_all/python/local/lib/python2.7/site-packages/pyroma/__init__.py", line 58, in main
    run(sys.argv[1])
  File "/home/ned/mitx_all/python/local/lib/python2.7/site-packages/pyroma/__init__.py", line 37, in run
    rating = ratings.rate(data)
  File "/home/ned/mitx_all/python/local/lib/python2.7/site-packages/pyroma/ratings.py", line 321, in rate
    res = test.test(data)
  File "/home/ned/mitx_all/python/local/lib/python2.7/site-packages/pyroma/ratings.py", line 103, in test
    return len(description) > 10
TypeError: object of type 'NoneType' has no len()

Comments (3)

  1. Alex Clark

    Same here:

    aclark@Alexs-MacBook-Pro:~/Developer/rpi.asthma_files_site/ > pyroma .

    Checking . Found rpi.asthma_files_site Traceback (most recent call last): File "/usr/local/bin/pyroma", line 9, in <module> load_entry_point('pyroma==1.4', 'console_scripts', 'pyroma')() File "/usr/local/lib/python2.7/site-packages/pyroma/init.py", line 58, in main run(sys.argv[1]) File "/usr/local/lib/python2.7/site-packages/pyroma/init.py", line 37, in run rating = ratings.rate(data) File "/usr/local/lib/python2.7/site-packages/pyroma/ratings.py", line 321, in rate res = test.test(data) File "/usr/local/lib/python2.7/site-packages/pyroma/ratings.py", line 103, in test return len(description) > 10 TypeError: object of type 'NoneType' has no len()

  2. Alex Clark

    Same here, again:

    Checking .
    Found Redshift shift-reduce dependency parser
    Traceback (most recent call last):
      File "bin/pyroma", line 9, in <module>
        load_entry_point('pyroma==1.4', 'console_scripts', 'pyroma')()
      File "/private/var/folders/3g/l24jm5w15314gy8hv48kbzrw0000gn/T/tmp70i9wL/redshift/lib/python2.7/site-packages/pyroma/__init__.py", line 58, in main
        run(sys.argv[1])
      File "/private/var/folders/3g/l24jm5w15314gy8hv48kbzrw0000gn/T/tmp70i9wL/redshift/lib/python2.7/site-packages/pyroma/__init__.py", line 37, in run
        rating = ratings.rate(data)
      File "/private/var/folders/3g/l24jm5w15314gy8hv48kbzrw0000gn/T/tmp70i9wL/redshift/lib/python2.7/site-packages/pyroma/ratings.py", line 321, in rate
        res = test.test(data)
      File "/private/var/folders/3g/l24jm5w15314gy8hv48kbzrw0000gn/T/tmp70i9wL/redshift/lib/python2.7/site-packages/pyroma/ratings.py", line 103, in test
        return len(description) > 10
    TypeError: object of type 'NoneType' has no len()
    

    :-)

  3. Log in to comment