Dump in click build . in Ubuntu Xenial alpha2

Bug #1539862 reported by costales
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Client Developer Experience
Fix Released
Undecided
Unassigned
click-reviewers-tools (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hi! When I try to run click build ., I'm getting this dump:

Traceback (most recent call last):
  File "/usr/bin/click-review", line 138, in <module>
    main()
  File "/usr/bin/click-review", line 132, in main
    results.run_all_checks()
  File "/usr/bin/click-review", line 105, in run_all_checks
    self._run_module_checks(module)
  File "/usr/bin/click-review", line 90, in _run_module_checks
    review = modules.init_main_class(module, self.click_fn)
  File "/usr/lib/python3/dist-packages/clickreviews/modules.py", line 70, in init_main_class
    init_object = find_main_class(module_name)
  File "/usr/lib/python3/dist-packages/clickreviews/modules.py", line 48, in find_main_class
    module_name))
  File "/usr/lib/python3.4/imp.py", line 171, in load_source
    module = methods.load()
  File "<frozen importlib._bootstrap>", line 1220, in load
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/clickreviews/cr_lint.py", line 18, in <module>
    from apt import apt_pkg
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ImportError: No module named 'apt_pkg'

I think is because of python3 doesn't find the library. I fixed with this link:
sudo ln -s /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-i386-linux-gnu.so /usr/lib/python3/dist-packages/apt_pkg.so

Thanks in advance!

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
Revision history for this message
Josh Arenson (josharenson) wrote :

I'm receiving the same error, but adding a symlink isn't fixing it for me.

Revision history for this message
Andrea Bernabei (faenil) wrote :

This is not a UITK specific issue, it's more likely a click issue, hence I added the click package to the "affected" ones, to that click developers can have a look

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → Confirmed
affects: qtcreator-plugin-ubuntu → qtcreator-plugin-ubuntu (Ubuntu)
Revision history for this message
Colin Watson (cjwatson) wrote :

Not directly a problem in click; click just calls into click-reviewers-tools, and the problem is there.

affects: click (Ubuntu) → click-reviewers-tools (Ubuntu)
Changed in click-reviewers-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

BTW the problem is that click-review is using /usr/bin/python3.4 explicitly, rather than /usr/bin/python3.

Revision history for this message
Benjamin Zeller (zeller-benjamin) wrote :

Not a problem in the QtCreator plugins

no longer affects: qtcreator-plugin-ubuntu (Ubuntu)
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

I can't reproduce this on 16.04. What system did you see this on? /usr/bin/click-review is using python3, not python3.4. click-reviewers-tools was rebuilt since python3.5 was the default, so perhaps try again?

Changed in click-reviewers-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Seems fixed with 3.5, which btw is still explicitly used by click-review

Changed in canonical-developer-experience:
status: New → Fix Released
no longer affects: ubuntu-ui-toolkit (Ubuntu)
Changed in click-reviewers-tools (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.