Python easy_install fails when second of two python parts builds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Adam Collard | ||
Snapcraft |
Fix Released
|
High
|
Sergio Schvezov | ||
Ubuntu |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When two python parts are used and one uses after: the dependent part fails to
build when easy_install gets confused about PYTHON pathing.
snapcraft.yaml
name: mojo
version: 0.1
summary: A deployment workflow system for Juju
description: A deployment workflow system for Juju
confinement: devmode
apps:
mojo:
command: usr/bin/mojo
codetree:
command: usr/bin/codetree
parts:
codetree:
plugin: python2
source: lp:codetree
source-type: bzr
build-packages: [bzr, python-setuptools, python-requests]
stage-packages: [python-bzrlib, git, rsync, unzip, bzr]
mojo:
plugin: python2
source-type: bzr
source: lp:mojo
after: [codetree]
build-packages: [gcc, python-dev]
stage-packages: [juju-1.25, juju-deployer, python-jujuclient]
python2 /home/ubuntu/
TEST FAILED:
/home/ubuntu/
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/home/
and your PYTHONPATH environment variable currently contains:
'/home/
Here are some of your options for correcting the problem:
* You can choose a different installation directory, i.e., one that is
on PYTHONPATH or supports .pth files
* You can add the installation directory to the PYTHONPATH environment
variable. (It must then also be on PYTHONPATH whenever you run
Python and want to use the package(s) you are installing.)
* You can set up the installation directory to support ".pth" files by
using one of the approaches described here:
https:/
Please make the appropriate changes for your system and try again. Command '['/bin/sh', '/tmp/tmpemzbmknq', 'python2',
'/home/
Related branches
- MAAS Lander: Approve
- Alberto Donato (community): Approve
-
Diff: 15 lines (+4/-0)1 file modifiedsnap/snapcraft.yaml (+4/-0)
Changed in snapcraft: | |
milestone: | 2.17 → 2.18 |
Changed in snapcraft: | |
milestone: | 2.18 → 2.19 |
Changed in snapcraft: | |
milestone: | 2.19 → 2.20 |
tags: | added: plugin |
Changed in snapcraft: | |
milestone: | 2.20 → 2.21 |
Changed in snapcraft: | |
milestone: | 2.21 → 2.22 |
Changed in snapcraft: | |
milestone: | 2.22 → none |
affects: | snapcraft → extreme-citadel-208123 |
Changed in extreme-citadel-208123: | |
assignee: | Sergio Schvezov (sergiusens) → Rohit travels & tours (rtatnet2) |
affects: | extreme-citadel-208123 → snapcraft |
Changed in snapcraft: | |
assignee: | Rohit travels & tours (rtatnet2) → Sergio Schvezov (sergiusens) |
Changed in maas: | |
status: | New → Fix Released |
assignee: | nobody → Adam Collard (adam-collard) |
importance: | Undecided → High |
milestone: | none → 2.8.0b1 |
With https:/ /github. com/snapcore/ snapcraft/ pull/771
sergiusens@bree:~$ sudo snap install ipython_ 0_amd64. snap
ipython 0 installed
sergiusens@bree:~$ which ipython
/snap/bin/ipython
sergiusens@bree:~$ ipython
Python 3.5.2 (default, Jul 5 2016, 12:43:10)
Type "copyright", "credits" or "license" for more information.
IPython 5.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: