Re: How to reinstall Python Interpreters?

2011-02-22 Thread LJ
Yes.  I used the apt-get install command to install dajaxice, but it
installs an older version, and the installer for the newer version
isn't done.
The installer for the older version does not put anything in the dist-
packages directory.  I'm trying to figure out how to manually install
it, but I'm not making any progress.

On Feb 18, 8:07 pm, lduros <loic.du...@gmail.com> wrote:
> Did you install dajaxice through apt-get? From the command line: sudo
> apt-get install python-django-dajaxice
> If not, you might want to try it it might do the trick of installing
> it in a much easier way than from the sources.
>
> On Feb 18, 5:04 pm, LJ <ljayad...@gmail.com> wrote:
>
> > Just adding a note for anyone else struggling with a similar
> > 'unresolved import' problem...
> > This article explains in details how to modify the PYTHONPATH if you
> > decide to go that route.
> >  http://www.stereoplex.com/blog/understanding-imports-and-pythonpath
> > I don't prefer to use this method, but I now understand how django is
> > able to find imported libraries.
>
> > I am still looking for a good article on how to install/configure a
> > 3rd party app in site packages--or dist-packages on Ubuntu (Python
> > 2.6).
>
> > On Feb 18, 12:39 pm, LJ <ljayad...@gmail.com> wrote:
>
> > > I am on Ubuntu 10, using Python 2.6 and Django 1.2.3.
> > > Mike Ramirez suggested that I look at the site packages (in my case
> > > dist-packages) in my python lib dir.
> > > I did not see anything in there that references dajaxice.  I may need
> > > to manually edit the PYTHONPATH once I figure out how and where.
>
> > > My errors are:
> > > Unresolved import: dajaxice_autodiscover
> > > Unresolved import: dajaxice_functions
>
> > > On Feb 18, 7:17 am, CrabbyPete <pete.do...@gmail.com> wrote:
>
> > > > I wouldn't reinstall python because of an unresolved import error.
> > > > What's unresolved and what type of system are you on PC/Linux?
>
> > > > On Feb 17, 7:48 pm, LJ <ljayad...@gmail.com> wrote:
>
> > > > > I installed the latest version of dajaxice, but I am still getting
> > > > > Unresolved import errors.
> > > > > My guess is that I need to remove and reinstall the Python
> > > > > Interpreters.
> > > > > Is there a some documentation somewhere that explains how to reinstall
> > > > > the Python Interpreters, so I can resolve all of my Unresolved Import
> > > > > errors?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to reinstall Python Interpreters?

2011-02-19 Thread CrabbyPete
Why not just use virtualenv and then just easy_install

I'm using it with python 2.5 and it works great.

On Feb 18, 8:07 pm, lduros <loic.du...@gmail.com> wrote:
> Did you install dajaxice through apt-get? From the command line: sudo
> apt-get install python-django-dajaxice
> If not, you might want to try it it might do the trick of installing
> it in a much easier way than from the sources.
>
> On Feb 18, 5:04 pm, LJ <ljayad...@gmail.com> wrote:
>
> > Just adding a note for anyone else struggling with a similar
> > 'unresolved import' problem...
> > This article explains in details how to modify the PYTHONPATH if you
> > decide to go that route.
> >  http://www.stereoplex.com/blog/understanding-imports-and-pythonpath
> > I don't prefer to use this method, but I now understand how django is
> > able to find imported libraries.
>
> > I am still looking for a good article on how to install/configure a
> > 3rd party app in site packages--or dist-packages on Ubuntu (Python
> > 2.6).
>
> > On Feb 18, 12:39 pm, LJ <ljayad...@gmail.com> wrote:
>
> > > I am on Ubuntu 10, using Python 2.6 and Django 1.2.3.
> > > Mike Ramirez suggested that I look at the site packages (in my case
> > > dist-packages) in my python lib dir.
> > > I did not see anything in there that references dajaxice.  I may need
> > > to manually edit the PYTHONPATH once I figure out how and where.
>
> > > My errors are:
> > > Unresolved import: dajaxice_autodiscover
> > > Unresolved import: dajaxice_functions
>
> > > On Feb 18, 7:17 am, CrabbyPete <pete.do...@gmail.com> wrote:
>
> > > > I wouldn't reinstall python because of an unresolved import error.
> > > > What's unresolved and what type of system are you on PC/Linux?
>
> > > > On Feb 17, 7:48 pm, LJ <ljayad...@gmail.com> wrote:
>
> > > > > I installed the latest version of dajaxice, but I am still getting
> > > > > Unresolved import errors.
> > > > > My guess is that I need to remove and reinstall the Python
> > > > > Interpreters.
> > > > > Is there a some documentation somewhere that explains how to reinstall
> > > > > the Python Interpreters, so I can resolve all of my Unresolved Import
> > > > > errors?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to reinstall Python Interpreters?

2011-02-18 Thread lduros
Did you install dajaxice through apt-get? From the command line: sudo
apt-get install python-django-dajaxice
If not, you might want to try it it might do the trick of installing
it in a much easier way than from the sources.

On Feb 18, 5:04 pm, LJ <ljayad...@gmail.com> wrote:
> Just adding a note for anyone else struggling with a similar
> 'unresolved import' problem...
> This article explains in details how to modify the PYTHONPATH if you
> decide to go that route.
>  http://www.stereoplex.com/blog/understanding-imports-and-pythonpath
> I don't prefer to use this method, but I now understand how django is
> able to find imported libraries.
>
> I am still looking for a good article on how to install/configure a
> 3rd party app in site packages--or dist-packages on Ubuntu (Python
> 2.6).
>
> On Feb 18, 12:39 pm, LJ <ljayad...@gmail.com> wrote:
>
> > I am on Ubuntu 10, using Python 2.6 and Django 1.2.3.
> > Mike Ramirez suggested that I look at the site packages (in my case
> > dist-packages) in my python lib dir.
> > I did not see anything in there that references dajaxice.  I may need
> > to manually edit the PYTHONPATH once I figure out how and where.
>
> > My errors are:
> > Unresolved import: dajaxice_autodiscover
> > Unresolved import: dajaxice_functions
>
> > On Feb 18, 7:17 am, CrabbyPete <pete.do...@gmail.com> wrote:
>
> > > I wouldn't reinstall python because of an unresolved import error.
> > > What's unresolved and what type of system are you on PC/Linux?
>
> > > On Feb 17, 7:48 pm, LJ <ljayad...@gmail.com> wrote:
>
> > > > I installed the latest version of dajaxice, but I am still getting
> > > > Unresolved import errors.
> > > > My guess is that I need to remove and reinstall the Python
> > > > Interpreters.
> > > > Is there a some documentation somewhere that explains how to reinstall
> > > > the Python Interpreters, so I can resolve all of my Unresolved Import
> > > > errors?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to reinstall Python Interpreters?

2011-02-18 Thread LJ
Just adding a note for anyone else struggling with a similar
'unresolved import' problem...
This article explains in details how to modify the PYTHONPATH if you
decide to go that route.
  http://www.stereoplex.com/blog/understanding-imports-and-pythonpath
I don't prefer to use this method, but I now understand how django is
able to find imported libraries.

I am still looking for a good article on how to install/configure a
3rd party app in site packages--or dist-packages on Ubuntu (Python
2.6).

On Feb 18, 12:39 pm, LJ <ljayad...@gmail.com> wrote:
> I am on Ubuntu 10, using Python 2.6 and Django 1.2.3.
> Mike Ramirez suggested that I look at the site packages (in my case
> dist-packages) in my python lib dir.
> I did not see anything in there that references dajaxice.  I may need
> to manually edit the PYTHONPATH once I figure out how and where.
>
> My errors are:
> Unresolved import: dajaxice_autodiscover
> Unresolved import: dajaxice_functions
>
> On Feb 18, 7:17 am, CrabbyPete <pete.do...@gmail.com> wrote:
>
> > I wouldn't reinstall python because of an unresolved import error.
> > What's unresolved and what type of system are you on PC/Linux?
>
> > On Feb 17, 7:48 pm, LJ <ljayad...@gmail.com> wrote:
>
> > > I installed the latest version of dajaxice, but I am still getting
> > > Unresolved import errors.
> > > My guess is that I need to remove and reinstall the Python
> > > Interpreters.
> > > Is there a some documentation somewhere that explains how to reinstall
> > > the Python Interpreters, so I can resolve all of my Unresolved Import
> > > errors?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to reinstall Python Interpreters?

2011-02-18 Thread LJ
I am on Ubuntu 10, using Python 2.6 and Django 1.2.3.
Mike Ramirez suggested that I look at the site packages (in my case
dist-packages) in my python lib dir.
I did not see anything in there that references dajaxice.  I may need
to manually edit the PYTHONPATH once I figure out how and where.

My errors are:
Unresolved import: dajaxice_autodiscover
Unresolved import: dajaxice_functions

On Feb 18, 7:17 am, CrabbyPete <pete.do...@gmail.com> wrote:
> I wouldn't reinstall python because of an unresolved import error.
> What's unresolved and what type of system are you on PC/Linux?
>
> On Feb 17, 7:48 pm, LJ <ljayad...@gmail.com> wrote:
>
> > I installed the latest version of dajaxice, but I am still getting
> > Unresolved import errors.
> > My guess is that I need to remove and reinstall the Python
> > Interpreters.
> > Is there a some documentation somewhere that explains how to reinstall
> > the Python Interpreters, so I can resolve all of my Unresolved Import
> > errors?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to reinstall Python Interpreters?

2011-02-18 Thread CrabbyPete
I wouldn't reinstall python because of an unresolved import error.
What's unresolved and what type of system are you on PC/Linux?

On Feb 17, 7:48 pm, LJ <ljayad...@gmail.com> wrote:
> I installed the latest version of dajaxice, but I am still getting
> Unresolved import errors.
> My guess is that I need to remove and reinstall the Python
> Interpreters.
> Is there a some documentation somewhere that explains how to reinstall
> the Python Interpreters, so I can resolve all of my Unresolved Import
> errors?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to reinstall Python Interpreters?

2011-02-17 Thread Mike Ramirez
On Thursday, February 17, 2011 04:48:31 pm LJ wrote:
> I installed the latest version of dajaxice, but I am still getting
> Unresolved import errors.
> My guess is that I need to remove and reinstall the Python
> Interpreters.
> Is there a some documentation somewhere that explains how to reinstall
> the Python Interpreters, so I can resolve all of my Unresolved Import
> errors?

I would first and foremost check out the PYTHONPATH [1] and make sure that is 
all kosher.  This is something very important to understand about python. 

defining kosher as the modules you are trying to import are located within the 
PYTHONPATH.  By default the packages should been installed by to site-packages 
within the python lib dir.

in *nix this is normally /usr/lib/python$VERSION}/site-packages i.e. 
/usr/lib/python2.6/site-packages/ for python 2.6

in Windows this would be C:\Python${VERSION}\Lib\site-packages

the python interpretter will search these by default for 3rd party modules and 
install them to this directory if using python install or easy_install/pip 

If your modules still aren't importing correctly make sure that if you do have 
different versions of python installed then you're using the one you installed 
it with.

if you installed the broken modules to another path, you'll need to set the 
PYTHONPATH manually in your environment.

After all this, if it's still broken (and youre 100% you've done this all 
correctly), then reinstall according to your operating systems needs.

*note apple/macs have a default interpretter that's apple specific and in the 
past people have installed pythong from macports. if you've done this, go back 
and make sure you're using the correct python interpretter version, or 
reinstall your broken modules with this version. *DISCLAIMER: I do not use or 
own a mac, this is mostly hersay and you can find other posts on this list or 
blogs for macs." 

IF none of this fixes your problem (which I doubt you should get here, unless 
you just don't understand your operating system), reinstall python according 
to the operating system in question, i.e. in  redhat use yum reinstall python, 
apt-get for ubuntu/debian, for windows use the installer from python.org, mac 
I'm not sure for macs what is best, see disclaimer above,


[1] http://docs.python.org/using/cmdline.html#envvar-PYTHONPATH
-- 
People need good lies.  There are too many bad ones.
-- Bokonon, "Cat's Cradle" by Kurt Vonnegut, Jr.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to reinstall Python Interpreters?

2011-02-17 Thread Shawn Milochik

On 02/17/2011 07:48 PM, LJ wrote:

I installed the latest version of dajaxice, but I am still getting
Unresolved import errors.
My guess is that I need to remove and reinstall the Python
Interpreters.
Is there a some documentation somewhere that explains how to reinstall
the Python Interpreters, so I can resolve all of my Unresolved Import
errors?

Why is that your guess? Exactly what is failing to import properly? What 
operating system are you on? What version of Python are you using?



--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



How to reinstall Python Interpreters?

2011-02-17 Thread LJ
I installed the latest version of dajaxice, but I am still getting
Unresolved import errors.
My guess is that I need to remove and reinstall the Python
Interpreters.
Is there a some documentation somewhere that explains how to reinstall
the Python Interpreters, so I can resolve all of my Unresolved Import
errors?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.