Opened 11 years ago
Closed 8 years ago
#1215 closed defect (fixed)
ossim ipython profile not working from chroot
Reported by: | hamish | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | OSGeoLive8.0 |
Component: | OSGeoLive | Keywords: | ossim, ipython |
Cc: | epifanio |
Description
Hi,
the install_ipython.sh script pre-seeds a profile for ossim, but the funny thing insists on writing to $HOME but doesn't like being run as sudo -u. So the workaround for 6.5 was to run as root in the install script then move the files over to $USER_HOME. that isn't working anymore.
mkdir -p "$USER_HOME"/.config/ ipython profile create osgeolive mv ~/.ipython "$USER_HOME"/.config/ipython
but it is causing an error: (chroot's "root" home dir is /roots/)
/usr/lib/python2.7/dist-packages/IPython/utils/path.py:296: UserWarning: IPython parent '/roots' is not a writable location, using a temp directory. " using a temp directory."%parent) [ProfileCreate] Generating default config file: u'/tmp/tmpTWZYb5/profile_osgeolive/ipython_config.py' [ProfileCreate] Generating default config file: u'/tmp/tmpTWZYb5/profile_osgeolive/ipython_qtconsole_config.py' [ProfileCreate] Generating default config file: u'/tmp/tmpTWZYb5/profile_osgeolive/ipython_notebook_config.py' mv: cannot stat `/roots/.ipython': No such file or directory sed: can't read /home/user/.config/ipython/profile_osgeolive/*.py: No such file or directory cp: cannot stat `/home/user/.config/ipython': No such file or directory ./install_ipython.sh: 72: ./install_ipython.sh: cannot create /home/user/.config/ipython/profile_osgeolive/ipython_notebook_config.py: Directory nonexistent cp: cannot stat `/home/user/.config/ipython/profile_osgeolive/ipython_notebook_config.py': No such file or directory
maybe "su -" as the $USER would work instead? someone with access to the chroot environ might have to play to see what works..
thanks, Hamish
Change History (10)
follow-up: 2 comment:1 by , 11 years ago
comment:2 by , 11 years ago
comment:4 by , 11 years ago
Priority: | major → normal |
---|
comment:5 by , 11 years ago
The new message in build log is:
2013-08-26 19:24:59 URL:http://download.osgeo.org/livedvd/data/ossim//ipython-notebook.desktop [246/246] -> "/usr/local/share/ossim/quickstart/workspace/ipython-notebook.desktop" [1] [ProfileCreate] Generating default config file: u'/home/user/.ipython/profile_osgeolive/ipython_config.py' [ProfileCreate] Generating default config file: u'/home/user/.ipython/profile_osgeolive/ipython_qtconsole_config.py' [ProfileCreate] Generating default config file: u'/home/user/.ipython/profile_osgeolive/ipython_notebook_config.py' cp: cannot stat `/home/user/.config/ipython': No such file or directory ./install_ipython.sh: 73: ./install_ipython.sh: cannot create /home/user/.config/ipython/profile_osgeolive/ipython_notebook_config.py: Directory nonexistent cp: cannot stat `/home/user/.config/ipython/profile_osgeolive/ipython_notebook_config.py': No such file or directory Cloning into '/usr/local/share/ossim/quickstart/workspace/geo-notebook'...
I assume that this is now fixed.
comment:6 by , 11 years ago
> [ProfileCreate] Generating default config file: > u'/home/user/.ipython/profile_osgeolive/ipython_config.py' ... > cp: cannot stat `/home/user/.config/ipython': No such file or directory
if ~/.config/ exists it should create a ~/.config/ipython/ dir in there. if ~/.config/ does not exist it uses ~/.ipython instead. Line 61 of install_ipython.sh should make ~/.config/, so I'm not sure why ~/.ipython is being used.
The error message in comment:5 happens when it tries to copy the result to /etc/skel, so the result is that the profile doesn't survive the live user creation method. Workaround committed to trunk in r10837 to try copying it from both possible dirs.
Hamish
comment:7 by , 11 years ago
Milestone: | OSGeoLive7.0 → OSGeoLive7.9 |
---|
comment:8 by , 11 years ago
Current builds put the profile in ~/.ipython/ via work-around in comment:6.
is everything working now?
Hamish
comment:9 by , 11 years ago
Milestone: | OSGeoLive7.9 → OSGeoLive8.0 |
---|
now the ipython_grass startup script is copying from app-data/ossim/, and rewritten a bit.
the osgeolive profile is still there, but unused?
after running the ipython_grass.sh script in a terminal, http://localhost:12345 in firefox seems to be working, and import grass.script as grass
works, but I didn't take it any further.
Continued along the way...
Hamish
comment:10 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
OSGeoLive has moved to Jupyter.
wondering if that has something to do with http://trac.osgeo.org/osgeo/ticket/1203