AttributeError: 'list' object has no attribute 'find'

Issue #21 resolved
Slavek Kabrda repo owner created an issue
pyp2rpm -n pkginfo -v "1.2b1"

Traceback (most recent call last):
  File "/usr/bin/pyp2rpm", line 9, in <module>
    load_entry_point('pyp2rpm==1.1.1', 'console_scripts', 'pyp2rpm')()
  File "/usr/lib/python3.4/site-packages/pyp2rpm/bin.py", line 115, in main
    converted = convertor.convert()
  File "/usr/lib/python3.4/site-packages/pyp2rpm/convertor.py", line 75, in convert
    data = self.metadata_extractor.extract_data()
  File "/usr/lib/python3.4/site-packages/pyp2rpm/metadata_extractors.py", line 296, in extract_data
    data.set_from(self.data_from_archive)
  File "/usr/lib/python3.4/site-packages/pyp2rpm/metadata_extractors.py", line 214, in data_from_archive
    archive_data['scripts'] = self.scripts
  File "/usr/lib/python3.4/site-packages/pyp2rpm/metadata_extractors.py", line 180, in scripts
    equal_sign = script.find('=')
AttributeError: 'list' object has no attribute 'find'

Comments (3)

  1. Robert Kuska

    Looking at the source code of pkginfo setup.py:

     45     entry_points={                                                                                  
     46       'console_scripts': [                                                                          
     47         ['pkginfo = pkginfo.commandline:main']                                                      
     48       ]                                                                                             
     49     }, 
    

    I don't really see the point of enclosing the console_scripts values into nested list. I will look into that.

  2. Log in to comment