Skip to content
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

fix perl file access error on win skeleton cpan #1414

Merged
merged 1 commit into from
Sep 30, 2016

Conversation

msarahan
Copy link
Contributor

Fixes errors as shown in https://ci.appveyor.com/project/ContinuumAnalyticsFOSS/conda-build/build/1.0.783/job/pcj1jjhfkqce8xxl#L996 :

_______________________ test_repo[perl-cpan-Shell-Cmd-] _______________________
[gw0] win32 -- Python 3.5.2 C:\Miniconda35-x64\python.exe
Traceback (most recent call last):
  File "C:\projects\conda-build\tests\test_api_skeleton.py", line 21, in test_repo
    api.skeletonize(package, repo, version=version, output_dir=testing_workdir, config=test_config)
  File "C:\projects\conda-build\conda_build\api.py", line 192, in skeletonize
    recursive=recursive, config=config, **kwargs)
  File "C:\projects\conda-build\conda_build\skeletons\cpan.py", line 215, in skeletonize
    package = dist_for_module(meta_cpan_url, package, perl_version, config=config)
  File "C:\Miniconda35-x64\lib\site-packages\conda\utils.py", line 45, in __call__
    value = self.func(*args, **kw)
  File "C:\projects\conda-build\conda_build\skeletons\cpan.py", line 547, in dist_for_module
    rel_dict = get_cpan_api_url('{0}/v0/release/{1}'.format(cpan_url, module), colons=False)
  File "C:\projects\conda-build\conda_build\skeletons\cpan.py", line 167, in get_cpan_api_url
    rel_dict = json.loads(open(json_path).read())
  File "C:\Miniconda35-x64\lib\site-packages\conda\fetch.py", line 487, in __exit__
    shutil.rmtree(self.tmp_dir)
  File "C:\Miniconda35-x64\lib\shutil.py", line 488, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\Miniconda35-x64\lib\shutil.py", line 383, in _rmtree_unsafe
    onerror(os.unlink, fullname, sys.exc_info())
  File "C:\Miniconda35-x64\lib\shutil.py", line 381, in _rmtree_unsafe
    os.unlink(fullname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\tmp6aemqixh\\Shell-Cmd'

@msarahan msarahan merged commit 71273ed into conda:master Sep 30, 2016
@msarahan msarahan deleted the fix_perl_win_access branch September 30, 2016 12:16
@github-actions
Copy link

Hi there, thank you for your contribution!

This pull request has been automatically locked because it has not had recent activity after being closed.

Please open a new issue or pull request if needed.

Thanks!

@github-actions github-actions bot added the locked [bot] locked due to inactivity label May 11, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant