bash claims I need to install a program that is installed

Bug #346701 reported by szarak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found
Incomplete
Undecided
Unassigned
python-django (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

My system is Ubuntu Intrepid 64bit.

In Ubuntu repository there is a package for Django - python web framework. It provides the same functionality as .tar.gz downloaded from project's web page. The main difference is that installed from source it provides utility called django-admin.py. Ubuntu package provides django-admin (no .py extension).

The problem occurs when you decide to install newer software version from svn or web page, instead of Ubuntu package. Bash gives an error:
"$ django-admin.py
Program django-admin nie jest obecnie zainstalowany. Można go zainstalować wpisując:
sudo apt-get install python-django
bash: django-admin: polecenie nieodnalezione"

 wich means, that a program django-admin is not installed and explains how to install it. It happens even if you use "django-admin.py" (with .py extension) which is installed and works well in other shells, like zsh.

Using full path to that program (/usr/bin/django-admin.py) works.
which django-admin gives no output.
which django-admin.py gives correct path of that script.

I'm not sure wich package provides functionality, which give's hints what software to install for the command to work.

affects: ubuntu → python-django (Ubuntu)
Revision history for this message
Andrea Corbellini (andrea.corbellini) wrote :

Hi and thanks for helping making Ubuntu better. Please, could you paste here the output of this command:

    ls -l /usr/bin/django-admin.py

I suspect that it hasn't the executable bit set and that should be why it doesn't work as expected.

Thanks,
Andrea

Changed in python-django (Ubuntu):
status: New → Incomplete
Revision history for this message
James Bennett (ubernostrum) wrote : Re: [Bug 346701] Re: bash claims I need to install a program that is installed

IIRC, the Debian package renames "django-admin.py" to "django-admin"
due to some sort of policy regarding file extensions on scripts; is it
possible that the same is happening here?

--
James Bennett
<email address hidden>

Revision history for this message
Andrea Corbellini (andrea.corbellini) wrote :

On Tue, 2010-03-23 at 17:25 +0000, James Bennett wrote:
> IIRC, the Debian package renames "django-admin.py" to "django-admin"
> due to some sort of policy regarding file extensions on scripts; is it
> possible that the same is happening here?

That's what happens in Ubuntu too. But the user is not using the package
from APT, but the package from djangoproject.com:

> The problem occurs when you decide to install newer software version
> from svn or web page, instead of Ubuntu package. [...]

Zygmunt Krynicki (zyga)
Changed in command-not-found:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python-django (Ubuntu) because there has been no activity for 60 days.]

Changed in python-django (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.