Issue #139 resolved

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

Jose Diaz-Gonzalez
created an issue

The method find does not exist in re_finder. I find this bug whenever installing a package from github.

https://bitbucket.org/pypa/setuptools/src/master/setuptools/command/sdist.py?at=default#cl-51

Logs:

[54.224.15.246] out: Downloading/unpacking pycurl from git+git://github.com/seatgeek/PyCurl.git#egg=pycurl (from -r /apps/production/api/current/requirements.txt (line 5))
[54.224.15.246] out:   Cloning git://github.com/seatgeek/PyCurl.git to /mnt/apps/production/api/virtualenvs/api/build/pycurl
[54.224.15.246] out:   Running setup.py (path:/mnt/apps/production/api/virtualenvs/api/build/pycurl/setup.py) egg_info for package pycurl
[54.224.15.246] out:     Using curl-config (libcurl 7.22.0)
[54.224.15.246] out:
[54.224.15.246] out:     Traceback (most recent call last):
[54.224.15.246] out:       File "<string>", line 17, in <module>
[54.224.15.246] out:       File "/mnt/apps/production/api/virtualenvs/api/build/pycurl/setup.py", line 225, in <module>
[54.224.15.246] out:         apply(setup, (), setup_args)
[54.224.15.246] out:       File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
[54.224.15.246] out:         dist.run_commands()
[54.224.15.246] out:       File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
[54.224.15.246] out:         self.run_command(cmd)
[54.224.15.246] out:       File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
[54.224.15.246] out:         cmd_obj.run()
[54.224.15.246] out:       File "<string>", line 15, in replacement_run
[54.224.15.246] out:       File "/apps/production/api/virtualenvs/api/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 186, in find_sources
[54.224.15.246] out:         mm.run()
[54.224.15.246] out:       File "/apps/production/api/virtualenvs/api/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 246, in run
[54.224.15.246] out:         self.add_defaults()
[54.224.15.246] out:       File "/apps/production/api/virtualenvs/api/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 285, in add_defaults
[54.224.15.246] out:         rcfiles = list(walk_revctrl())
[54.224.15.246] out:       File "/apps/production/api/virtualenvs/api/local/lib/python2.7/site-packages/setuptools/command/sdist.py", line 18, in walk_revctrl
[54.224.15.246] out:         for item in ep.load()(dirname):
[54.224.15.246] out:       File "/apps/production/api/virtualenvs/api/local/lib/python2.7/site-packages/setuptools/command/sdist.py", line 58, in _default_revctrl
[54.224.15.246] out:         for item in finder(dirname):
[54.224.15.246] out:       File "/apps/production/api/virtualenvs/api/local/lib/python2.7/site-packages/setuptools/command/sdist.py", line 51, in __call__
[54.224.15.246] out:         for item in self.find(path):
[54.224.15.246] out:     AttributeError: 're_finder' object has no attribute 'find'

Comments (8)

  1. Piotr Dobrogost

    We have a script, which checks out c source code from CVS, drives compilation, makes a list of compiled libs and runs normal setup with this list passed as data_files argument. This is kind of hackish way to get our binary libs installed into virtualenv. Anyway, it was working fine when it was created a few months ago but today when I tried to run it with the newest setuptools (2.1) it broke with the error described by OP in this issue. I tried a few versions of setuptools and from what I can see the first version which broke our script was 1.2 (1.1.7 is ok) but with different error:

      File "/home/users/pdobrogost/venv/lib/python2.7/site-packages/setuptools/command/sdist.py", line 38, in _finder
        if postproc:
    NameError: global name 'postproc' is not defined
    
  2. Log in to comment