[gobolinux-users] RootLess on FreeBSD

Jonas Karlsson jonka750 at student.liu.se
Thu Mar 8 22:21:41 UTC 2007


2007/3/8, Benjamin Bruheim <grolgh at gmail.com>:
> > > > > cd lib/python2.3/site-packages &&  for f in *.py;  do python -c
> > > > > "import `basename $f .py`";  done
> > > > > Syntax error: Bad substitution
> > > > > Syntax error: Bad substitution
> > > > > Syntax error: Bad substitution
> > > > What happens when you run 'basename
> > > > lib/python2.3/site-packages/GuessLatest.py' from inside your Scripts
> > > > dir?
> > > [phed at web ~/Programs/Scripts/Current]$ basename
> > > lib/python2.3/site-packages/GuessLatest.py
> > > GuessLatest.py
> > Strange, maybe the problem is in '*.py'? I don't know.
>
> Yeah, it's in the pythonscripts somewhere, some scripts yield the
> Syntax Error. eg.:
>
> >>> import CheckDependencies
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Syntax error: Bad substitution
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "CheckDependencies.py", line 43, in ?
>     os.makedirs(global_dependencies_cache_dir)
>   File "/usr/local/lib/python2.4/os.py", line 159, in makedirs
>     mkdir(name, mode)
> OSError: [Errno 13] Permission denied: '/dependencies_cache/'
>
>
Some search made me think that the Bad substitution message may come
from the "shebang" line:
http://ubuntuforums.org/showpost.php?s=96b47628c3978442c752a389661de8bf&p=1678067&postcount=214

About that last error, it seems like the variable
'global_dependencies_cache_dir' is set wrong. It should be the user
settings + '/dependencies_cache/'. From CheckDependencies:
global_dependencies_cache_dir =
os.path.expanduser(getGoboVariable('goboUserSettings')+'/dependencies_cache/')

Somehow getGoboVariable isn't run correctly or goboUserSettings isn't available.

-- 
/Jonas
> > > Is it required for operation of rootless?
> > No, it's just a fancy "ls".
>
> ok
> _______________________________________________
> gobolinux-users mailing list
> gobolinux-users at lists.gobolinux.org
> http://lists.gobolinux.org/mailman/listinfo/gobolinux-users
>


More information about the gobolinux-users mailing list