FileNotFoundError: [Errno 2] No such file or directory: '.pc'

Bug #1746594 reported by Andreas Hasenack on 2018-01-31
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
usd-importer
Critical
Unassigned

Bug Description

Got this backtrace when linting a branch:
(bionic-switch-to-nss-onlatestDebian)andreas@nsnx:~/git/packages/chrony$ git ubuntu lint
01/31/2018 18:30:59 - WARNING:Not linting a remote-tracking branch, assuming no namespace for branches and tags. Pass --lint-namespace if this is incorrect.
01/31/2018 18:31:03 - WARNING:pristine-tar data found for both debian and ubuntu, using ubuntu
Traceback (most recent call last):
  File "/snap/git-ubuntu/354/bin/git-ubuntu", line 11, in <module>
    load_entry_point('gitubuntu==0.6.2', 'console_scripts', 'git-ubuntu')()
  File "/snap/git-ubuntu/354/lib/python3.6/site-packages/gitubuntu/__main__.py", line 243, in main
    sys.exit(args.func(args))
  File "/snap/git-ubuntu/354/lib/python3.6/site-packages/gitubuntu/lint.py", line 213, in cli_main
    verbose=args.verbose,
  File "/snap/git-ubuntu/354/lib/python3.6/site-packages/gitubuntu/lint.py", line 790, in do_lint
    pkg_remote_branch_string,
  File "/snap/git-ubuntu/354/lib/python3.6/site-packages/gitubuntu/lint.py", line 634, in do_change_lint
    repo.maybe_quiltify_tree_hash(commitish_string),
  File "/snap/git-ubuntu/354/lib/python3.6/site-packages/gitubuntu/git_repository.py", line 2217, in maybe_quiltify_tree_hash
    return self._maybe_quiltify_tree_hash(commit_hash)
  File "/snap/git-ubuntu/354/lib/python3.6/site-packages/gitubuntu/git_repository.py", line 2110, in _maybe_quiltify_tree_hash
    regenerated_pc_path,
  File "/snap/git-ubuntu/354/usr/lib/python3.6/shutil.py", line 309, in copytree
    names = os.listdir(src)
FileNotFoundError: [Errno 2] No such file or directory: '.pc'

To reproduce, as of this moment:

git ubuntu clone chrony
cd chrony
git ubuntu remote add paelzer
git checkout paelzer/bionic-switch-to-nss-onlatestDebian
git ubuntu lint

Andreas Hasenack (ahasenack) wrote :

Also getting this in another branch now, with snap r360:
(release-18.01)andreas@nsnx:~/git/packages/landscape-client$ git push ahasenack release-18.01
Everything up-to-date
(release-18.01)andreas@nsnx:~/git/packages/landscape-client$ git st
On branch release-18.01
nothing to commit, working tree clean
(release-18.01)andreas@nsnx:~/git/packages/landscape-client$ git ubuntu lint
02/23/2018 09:31:34 - WARNING:Not linting a remote-tracking branch, assuming no namespace for branches and tags. Pass --lint-namespace if this is incorrect.
Traceback (most recent call last):
  File "/snap/git-ubuntu/360/bin/git-ubuntu", line 11, in <module>
    load_entry_point('gitubuntu==0.6.2', 'console_scripts', 'git-ubuntu')()
  File "/snap/git-ubuntu/360/lib/python3.6/site-packages/gitubuntu/__main__.py", line 243, in main
    sys.exit(args.func(args))
  File "/snap/git-ubuntu/360/lib/python3.6/site-packages/gitubuntu/lint.py", line 213, in cli_main
    verbose=args.verbose,
  File "/snap/git-ubuntu/360/lib/python3.6/site-packages/gitubuntu/lint.py", line 790, in do_lint
    pkg_remote_branch_string,
  File "/snap/git-ubuntu/360/lib/python3.6/site-packages/gitubuntu/lint.py", line 634, in do_change_lint
    repo.maybe_quiltify_tree_hash(commitish_string),
  File "/snap/git-ubuntu/360/lib/python3.6/site-packages/gitubuntu/git_repository.py", line 2360, in maybe_quiltify_tree_hash
    return self._maybe_quiltify_tree_hash(commit_hash)
  File "/snap/git-ubuntu/360/lib/python3.6/site-packages/gitubuntu/git_repository.py", line 2253, in _maybe_quiltify_tree_hash
    regenerated_pc_path,
  File "/snap/git-ubuntu/360/usr/lib/python3.6/shutil.py", line 309, in copytree
    names = os.listdir(src)
FileNotFoundError: [Errno 2] No such file or directory: '.pc'

That's a landscape-client branch: https://code.launchpad.net/~ahasenack/ubuntu/+source/landscape-client/+git/landscape-client/+ref/release-18.01

Also affects build-source, see bug 1751254 for details.

tags: added: build lint
Changed in usd-importer:
importance: Undecided → Critical

By breaking two functions now I marked it crit until triaged and understood at least.

bug 1751254 was for ethtool.
BUt it seems to be a wider issue.
I wanted to reproduce something else, but hit it with hello today.

Details: http://paste.ubuntu.com/p/3V6ZxjtBmC/

Repro as easy as:
  mkdir /tmp/test
  cd /tmp/test
  git ubuntu clone hello
  cd hello/
  git ubuntu build-source --verbose --sign

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers