maas django app won't start "ImportError: No module named apt_pkg"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Mike Pontillo | ||
maas (Ubuntu) |
Fix Released
|
Undecided
|
Andres Rodriguez |
Bug Description
Installed MAAS fresh into an LXC container using stable PPA:
https:/
sudo apt-get install maas maas-dhcp maas-dns
Then I check http://<host>/MAAS and get a 500 error:
[Tue Apr 21 21:43:16.219698 2015] [:error] [pid 11958:tid 140276131022592] [remote 10.38.36.4:1205] ImportError: No module named apt_pkg
[Tue Apr 21 21:43:18.218545 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] mod_wsgi (pid=11959): Exception occurred processing WSGI script '/usr/share/
[Tue Apr 21 21:43:18.218587 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] Traceback (most recent call last):
[Tue Apr 21 21:43:18.218612 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.218648 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] self.load_
[Tue Apr 21 21:43:18.218663 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.218685 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] mw_instance = mw_class()
[Tue Apr 21 21:43:18.218698 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.218718 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] reverse('login'),
[Tue Apr 21 21:43:18.218731 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.218751 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] return iri_to_
[Tue Apr 21 21:43:18.218775 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.218798 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] self._populate()
[Tue Apr 21 21:43:18.218811 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.218831 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] for pattern in reversed(
[Tue Apr 21 21:43:18.218844 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.218887 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] patterns = getattr(
[Tue Apr 21 21:43:18.218910 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.218935 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] self._urlconf_
[Tue Apr 21 21:43:18.218949 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.218970 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] __import__(name)
[Tue Apr 21 21:43:18.218983 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/share/
[Tue Apr 21 21:43:18.219003 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] url(r'^', include(
[Tue Apr 21 21:43:18.219016 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.219037 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] urlconf_module = import_
[Tue Apr 21 21:43:18.219049 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.219069 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] __import__(name)
[Tue Apr 21 21:43:18.219081 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.219101 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] (r'^api/1\\.0/', include(
[Tue Apr 21 21:43:18.219114 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.219133 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] urlconf_module = import_
[Tue Apr 21 21:43:18.219145 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.219164 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] __import__(name)
[Tue Apr 21 21:43:18.219177 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.219197 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] from maasserver.
[Tue Apr 21 21:43:18.219218 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.219241 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] from maasserver.
[Tue Apr 21 21:43:18.219254 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] File "/usr/lib/
[Tue Apr 21 21:43:18.219274 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] import apt_pkg
[Tue Apr 21 21:43:18.219296 2015] [:error] [pid 11959:tid 140276131022592] [remote 10.38.36.4:1205] ImportError: No module named apt_pkg
I can then install python-apt and fix this issue.
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 23 lines (+2/-0)2 files modifieddebian/changelog (+1/-0)
debian/control (+1/-0)
Changed in maas (Ubuntu): | |
status: | Fix Committed → In Progress |
assignee: | Mike Pontillo (mpontillo) → Andres Rodriguez (andreserl) |
Changed in maas: | |
assignee: | nobody → Mike Pontillo (mpontillo) |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in maas: | |
status: | Fix Committed → Fix Released |
no longer affects: | maas/1.7 |
I thought we recently fixed this. Either the version under test doesn't have the fix yet, or we missed the fix for some subset of MAAS packages. I will check tomorrow.