Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Jan 21, 2014 · 8 comments
Closed

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

ghost opened this issue Jan 21, 2014 · 8 comments

Comments

@ghost
Copy link

ghost commented Jan 21, 2014

Originally reported by: josegonzalez (Bitbucket: josegonzalez, GitHub: josegonzalez)


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'

@ghost
Copy link
Author

ghost commented Jan 30, 2014

Original comment by Piotr_Dobrogost (Bitbucket: Piotr_Dobrogost, GitHub: Unknown):


I was also hit by this.
cc @philip_thiem

@ghost
Copy link
Author

ghost commented Jan 30, 2014

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Has this functionality ever worked? Any idea when it stopped working?

@ghost
Copy link
Author

ghost commented Jan 30, 2014

Original comment by Piotr_Dobrogost (Bitbucket: Piotr_Dobrogost, GitHub: Unknown):


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

@ghost
Copy link
Author

ghost commented Feb 5, 2014

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


The failure seems to have happened in 7538cd99ffcd.

@ghost
Copy link
Author

ghost commented Feb 6, 2014

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Implement self.find. Fixes #139.

@ghost
Copy link
Author

ghost commented Feb 6, 2014

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Released as 2.1.1. Please test that this fixes the issue.

Edit: release failed. Standby...

@ghost
Copy link
Author

ghost commented Feb 6, 2014

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Okay. It's now released, but without a wheel due to #143.

@ghost
Copy link
Author

ghost commented Feb 20, 2014

Original comment by Piotr_Dobrogost (Bitbucket: Piotr_Dobrogost, GitHub: Unknown):


I confirm version 2.1.1 fixes issue. Thank you.

@ghost ghost added critical bug labels Mar 29, 2016
@ghost ghost closed this as completed Mar 29, 2016
jaraco added a commit that referenced this issue Mar 29, 2016
--HG--
extra : amend_source : 98be824b4f846eb5fa8a8b046c3ef52a9fc2af4d
jaraco added a commit that referenced this issue Jun 12, 2022
Test that find_library_file works with Cygwin libraries
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants