Results 1 to 9 of 9

Thread: no such file or directory error

  1. #1
    Join Date
    Sep 2009
    Beans
    467

    no such file or directory error

    rcon@li121-251:~/b3$ ./b3_run.py
    : No such file or directory
    rcon@li121-251:~/b3$ l;
    CHANGELOG b3/ ez_setup.py* setup.py*
    ChangeLogDetailed.txt b3.egg-info/ listversions.py setupPy2exe.py
    MANIFEST.in b3_debug.py* logs/ update*
    PKG-INFO b3_run.py* py2exe_builder/ versions.txt
    README.md cache/ setup.cfg xlr sql/
    rcon@li121-251:~/b3$

    as you can see up top it gives me an error when i try to run the file. it is a Ubuntu error and i don't what the heck is causing it. had it before but don't remember how i resolved it.
    Just hand me my pitchfork and torch.

  2. #2
    Join Date
    Jan 2010
    Location
    Australia
    Beans
    544
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: no such file or directory error

    What is l? A bash alias for ls? What do the asterisks mean?

    Is the file executable? chmod +x b3_run.py

  3. #3
    Join Date
    Sep 2009
    Beans
    467

    Re: no such file or directory error

    the file is executable, thats what the asterisks are for. i set the alias for l something like ls -als , forgot already.
    Just hand me my pitchfork and torch.

  4. #4
    Join Date
    Nov 2009
    Beans
    10

    Re: no such file or directory error

    Is it executing python for that file?

    What's the shebang?

    head -n1 b3_run.py

    Paul.

  5. #5
    Join Date
    Sep 2009
    Beans
    467

    Re: no such file or directory error

    it is executing python.
    #!/usr/bin/env python
    the problem is when i actually try to run the script. ubuntu does not see it. (or so i think)
    Last edited by v1ad; May 11th, 2011 at 12:02 PM.
    Just hand me my pitchfork and torch.

  6. #6
    Join Date
    Nov 2009
    Beans
    10

    Re: no such file or directory error

    yes, but the "No such file or directory" could actually be coming from the script!

    If python isn't working then you'll get that error, through I'd expect "/usr/bin/env: python: No such file or directory". But I'm guess it's not that, as python is installed by default. Do you have execute permission on the home volume?

    mount -v

    and look for noexec for the mount.

    Paul.

  7. #7
    Join Date
    Sep 2009
    Beans
    467

    Re: no such file or directory error

    don't think it's that, maybe it cant find python under that directory?


    rcon@li121-251:~$ mount -v
    /dev/xvda on / type ext3 (rw,noatime,errors=remount-ro)
    proc on /proc type proc (rw)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
    none on /sys type sysfs (rw,noexec,nosuid,nodev)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    /dev on /dev type devtmpfs (rw)
    none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    none on /dev/shm type tmpfs (rw,nosuid,nodev)
    none on /var/run type tmpfs (rw,nosuid,mode=0755)
    none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
    none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
    rcon@li121-251:~$
    Just hand me my pitchfork and torch.

  8. #8
    Join Date
    Sep 2009
    Beans
    467

    Re: no such file or directory error

    problem seems to be that it can't find the interpreter under /usr/bin/env considering the env directory does not exist.

    env seems to be some kind of file..
    Last edited by v1ad; May 11th, 2011 at 07:19 PM.
    Just hand me my pitchfork and torch.

  9. #9
    Join Date
    Sep 2009
    Beans
    467

    Re: no such file or directory error

    bump?
    Just hand me my pitchfork and torch.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •