Comments (17)
Bizarre... I've never gotten this before. How many repos does it take for the error to trigger? Smells like a bug in gitdb or GitPython – it's possible I need to let something get GC'd that's being missed, but I need to look more carefully at how gitdb's internals work first.
Looks like GitPython has an update out, so can you check if that changes anything?
from git-repo-updater.
I have 46 repositories and it fails at about 32 repos
from git-repo-updater.
That's weird... I has the same issue yesterday (with only 17 repos) but today it works fine again...
from git-repo-updater.
yeah it doesn't always fail, just most of the time
from git-repo-updater.
I'm not able to reproduce this...
Edit: I still can't reproduce it, even when setting the open file limit absurdly low (ulimit -n 16
) and having gitup operate on ~50 repos.
from git-repo-updater.
I updated git-python to the newest version
GitPython (1.0.1)
and am now running Python 2.7.9 and it seems to be working fine
from git-repo-updater.
I still had this issue this morning. I updated GitPyhon and now I get this:
File "/usr/local/bin/gitup", line 9, in <module>
load_entry_point('gitup==0.2.2', 'console_scripts', 'gitup')()
File "build/bdist.macosx-10.10-intel/egg/gitup/script.py", line 90, in run
File "build/bdist.macosx-10.10-intel/egg/gitup/script.py", line 85, in main
File "build/bdist.macosx-10.10-intel/egg/gitup/update.py", line 280, in update_bookmarks
File "build/bdist.macosx-10.10-intel/egg/gitup/update.py", line 267, in _update_directory
File "build/bdist.macosx-10.10-intel/egg/gitup/update.py", line 248, in _update_subdirectories
File "build/bdist.macosx-10.10-intel/egg/gitup/update.py", line 231, in _update_repository
File "build/bdist.macosx-10.10-intel/egg/gitup/update.py", line 90, in _fetch_remotes
File "/Library/Python/2.7/site-packages/git/remote.py", line 651, in fetch
res = self._get_fetch_info_from_stderr(proc, progress or RemoteProgress())
File "/Library/Python/2.7/site-packages/git/remote.py", line 557, in _get_fetch_info_from_stderr
for pline in progress_handler(line):
File "/Library/Python/2.7/site-packages/git/util.py", line 277, in handler
return self._parse_progress_line(line.rstrip())
File "/Library/Python/2.7/site-packages/git/util.py", line 267, in _parse_progress_line
message)
File "build/bdist.macosx-10.10-intel/egg/gitup/update.py", line 44, in update
TypeError: object of type 'float' has no len()
from git-repo-updater.
@Xaelias That was fixed a couple months ago. You need to update the gitup.
from git-repo-updater.
Oh my bad >< I thought I was up to date for some reason...
from git-repo-updater.
Having the same issue :(
push:
Fetching originTraceback (most recent call last):
File "/usr/local/Cellar/gitup/0.3/libexec/bin/gitup", line 9, in <module>
load_entry_point('gitup==0.3', 'console_scripts', 'gitup')()
File "/usr/local/Cellar/gitup/0.3/libexec/lib/python2.7/site-packages/gitup/script.py", line 100, in run
main()
File "/usr/local/Cellar/gitup/0.3/libexec/lib/python2.7/site-packages/gitup/script.py", line 92, in main
update_directories(args.directories_to_update, update_args)
File "/usr/local/Cellar/gitup/0.3/libexec/lib/python2.7/site-packages/gitup/update.py", line 220, in update_directories
_update_directory(full_path, update_args)
File "/usr/local/Cellar/gitup/0.3/libexec/lib/python2.7/site-packages/gitup/update.py", line 201, in _update_directory
_update_subdirectories(path, update_args)
File "/usr/local/Cellar/gitup/0.3/libexec/lib/python2.7/site-packages/gitup/update.py", line 185, in _update_subdirectories
_update_repository(repo, *update_args)
File "/usr/local/Cellar/gitup/0.3/libexec/lib/python2.7/site-packages/gitup/update.py", line 166, in _update_repository
_fetch_remotes(remotes)
File "/usr/local/Cellar/gitup/0.3/libexec/lib/python2.7/site-packages/gitup/update.py", line 75, in _fetch_remotes
results = remote.fetch(progress=_ProgressMonitor())
File "/usr/local/Cellar/gitup/0.3/libexec/vendor/lib/python2.7/site-packages/git/remote.py", line 643, in fetch
kwargs = add_progress(kwargs, self.repo.git, progress)
File "/usr/local/Cellar/gitup/0.3/libexec/vendor/lib/python2.7/site-packages/git/remote.py", line 51, in add_progress
v = git.version_info
File "/usr/local/Cellar/gitup/0.3/libexec/vendor/lib/python2.7/site-packages/git/cmd.py", line 462, in version_info
return self._version_info
File "/usr/local/Cellar/gitup/0.3/libexec/vendor/lib/python2.7/site-packages/git/cmd.py", line 439, in __getattr__
return LazyMixin.__getattr__(self, name)
File "/usr/local/Cellar/gitup/0.3/libexec/vendor/lib/python2.7/site-packages/gitdb/util.py", line 237, in __getattr__
self._set_cache_(attr)
File "/usr/local/Cellar/gitup/0.3/libexec/vendor/lib/python2.7/site-packages/git/cmd.py", line 445, in _set_cache_
version_numbers = self._call_process('version').split(' ')[2]
File "/usr/local/Cellar/gitup/0.3/libexec/vendor/lib/python2.7/site-packages/git/cmd.py", line 834, in _call_process
return self.execute(make_call(), **_kwargs)
File "/usr/local/Cellar/gitup/0.3/libexec/vendor/lib/python2.7/site-packages/git/cmd.py", line 576, in execute
raise GitCommandNotFound(str(err))
git.exc.GitCommandNotFound: [Errno 24] Too many open files
$ gitup --version
gitup 0.3
from git-repo-updater.
@wilrnh I found gitpython-developers/GitPython#60. I'm taking a guess here, but it looks like smmap needs an update to 0.9.0. Can you try pip install -U smmap
?
from git-repo-updater.
Hey @earwig seems like that didnt help :(
from git-repo-updater.
Btw, I'm on OSX, and:
$ python --version
Python 2.7.10
from git-repo-updater.
Just tried python 3.4
in virtualenv with smmap 0.9.0
and got the same issue fyi
from git-repo-updater.
I can definitely confirm that GitPython/gitdb/smmap is leaking file objects. I'll try to see if there's a way to fix it but I may need to report this upstream.
from git-repo-updater.
@wilrnh Can you please see if this still happens on the current master version of https://github.com/gitpython-developers/GitPython? Based on gitpython-developers/GitPython#60 this may be a fix.
from git-repo-updater.
I have tried and it seems to fix the problem, thanks!
from git-repo-updater.
Related Issues (20)
- “PackingType of packed-Refs not understood” HOT 5
- Homebrew Installation Requires Python@2 HOT 3
- Quiet mode - hide repos that are already up to date HOT 2
- Option to ignore some folders on recursive search for git repositories HOT 1
- [feature request] Package Manager Install HOT 4
- PyPI install? HOT 2
- git push? HOT 2
- Add a command to list repositories which have commits recently HOT 3
- Prune and current directory doesn't work? HOT 4
- new release HOT 2
- running tests HOT 1
- clean up deleted repo's? HOT 6
- Is there a way we can set which branch to pull update? HOT 2
- ImportError: No module named configparser HOT 5
- Incompatible with PyOxidizer HOT 3
- Earwig/git-repo-updater
- error: Could not read from remote repository - fails at different point each time HOT 3
- [Suggestion] Add topics to the GitHub repo HOT 1
- Migration to Github Action HOT 2
- [FEATURE] - Option to exclude directory / directories HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-repo-updater.