Skip to content

Windows: Access Denied Error in loose.py while removing #37

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
stuertz opened this issue Mar 10, 2017 · 1 comment
Closed

Windows: Access Denied Error in loose.py while removing #37

stuertz opened this issue Mar 10, 2017 · 1 comment

Comments

@stuertz
Copy link
Contributor

stuertz commented Mar 10, 2017

Hi, while using gitdb from within conda_smithy on windows i do get the follwoing traceback.

Seems to me that the file handle was not closed before removing the file, which is not an issue on other platforms but on windows :-(

[Traceback (most recent call last):
  File "C:\Users\js\AppData\Local\Continuum\Miniconda2\Scripts\conda-smithy-script.py", line 5, in <module>
    sys.exit(conda_smithy.cli.main())
  File "C:\Users\js\AppData\Local\Continuum\Miniconda2\lib\site-packages\conda_smithy\cli.py", line 271, in main
    args.subcommand_func(args)
  File "C:\Users\js\AppData\Local\Continuum\Miniconda2\lib\site-packages\conda_smithy\cli.py", line 182, in __call__
    configure_feedstock.main(args.feedstock_directory)
  File "C:\Users\js\AppData\Local\Continuum\Miniconda2\lib\site-packages\conda_smithy\configure_feedstock.py", line 703, in main
    copy_feedstock_content(forge_dir)
  File "C:\Users\js\AppData\Local\Continuum\Miniconda2\lib\site-packages\conda_smithy\configure_feedstock.py", line 589, in copy_feedstock_content
    'README'
  File "C:\Users\js\AppData\Local\Continuum\Miniconda2\lib\site-packages\conda_smithy\configure_feedstock.py", line 580, in copytree
    copy_file(s, d)
  File "C:\Users\js\AppData\Local\Continuum\Miniconda2\lib\site-packages\conda_smithy\feedstock_io.py", line 87, in copy_file
    repo.index.add([dst])
  File "C:\Users\js\AppData\Local\Continuum\Miniconda2\lib\site-packages\git\index\base.py", line 750, in add
    entries_added.extend(self._entries_for_paths(paths, path_rewriter, fprogress, entries))
  File "C:\Users\js\AppData\Local\Continuum\Miniconda2\lib\site-packages\git\util.py", line 75, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\js\AppData\Local\Continuum\Miniconda2\lib\site-packages\git\index\util.py", line 91, in set_git_working_dir
    return func(self, *args, **kwargs)
  File "C:\Users\js\AppData\Local\Continuum\Miniconda2\lib\site-packages\git\index\base.py", line 636, in _entries_for_paths
    entries_added.append(self._store_path(filepath, fprogress))
  File "C:\Users\js\AppData\Local\Continuum\Miniconda2\lib\site-packages\git\index\base.py", line 605, in _store_path
    istream = self.repo.odb.store(IStream(Blob.type, st.st_size, stream))
  File "C:\Users\js\AppData\Local\Continuum\Miniconda2\lib\site-packages\gitdb\db\loose.py", line 233, in store
    remove(obj_path)
WindowsError: [Error 5] Zugriff verweigert: u'C:\\work\\conda\\conda-feedstocks\\parse_type-feedstock\\.git\\objects\\28\\8029dca17ee2d73d8415761cbc1da2c449ef94'](url)
@stuertz
Copy link
Contributor Author

stuertz commented Nov 4, 2017

Seems to be closed withe #38

@stuertz stuertz closed this as completed Nov 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants