On Tue, Mar 20, 2012 at 2:45 PM, Michael Havens <bmi...@gmail.com> wrote:
> On Tue, Mar 20, 2012 at 2:21 PM, Lisa Kachold <lisakach...@obnosis.com> > wrote: > > Great... > > So when you enter as bmike1 > > > > $ python > > > > you should be able to see it run? > > Yep... 2.7.2 runs. > > >> > > try: > > $ ls -al /usr/bin/python > > > I ran the ls command but how is that supposed to fix anything? It returned > with: > bmike1@Michaels-Laptop ~ $ ls -al /usr/bin/python > lrwxrwxrwx 1 root root 9 2012-03-17 13:33 /usr/bin/python -> python2.7 > okay so that's a symlink to python2.7 Can you (as bmike1) run: $ /usr/bin/python -v > > Now try your original failing commands and see if you still get a python > > error? > I still get the same error but it appears whenever I open a shell. I > don't issue any commands. > > Is that when you run a root /bin/bash or shell? Or is that when you run a bmike1 /bin/bash? Did you do this step: > It looks like your .bashrc is messed up: > Please move your .bashrc to a backup file: > > # cd ~ | mv .bashrc bashrc-old > # sudo su Does sudo su also give you the error? You can obviously ignore the error? Python is used for a great number of things, so you can't remove it. You can have more that one. The reason you get the bash errors is due to the virtvenv errors (which are a known issue). Did you do an apt-get update, etc? > > > > > >> > >> ls: cannot access > >> > >> > /home/bmike1/.pythonbrew/bin:/home/bmike1/.pythonbrew/pythons/Python-2.7.2/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games/python: > >> No such file or directory > >> bmike1@Michaels-Laptop ~ $ > >> > >> > >> On Tue, Mar 20, 2012 at 12:04 PM, Lisa Kachold <lisakach...@obnosis.com > > > >> wrote: > >> > This is all basic linux user group file permissions, I think. > >> > > >> > On Sun, Mar 18, 2012 at 10:52 AM, Michael Havens <bmi...@gmail.com> > >> > wrote: > >> >> > >> >> Welp.... none of that worked. (see below) Maybe I should apt-get > >> >> remove python. But what about the one I got with curl? > >> >> > >> >> > 1) How many python installs do you find? > >> >> > > >> >> > # locate python |more > >> > > >> > > >> > # sudo locate python | more > >> > > >> > You should see the location and version of your python. > >> > > >> > # sudo which python > >> > > >> > You should see the python and path. > >> > > >> > # ls -al $PATH/python > >> > > >> > You should see if you have user permissions to run it (drop the > results > >> > into > >> > this email reply): > >> > > >> > > >> >> > >> >> nothing returned? How strange! I know there must be at least one > >> >> because: > >> >> > >> >> bmike1@Michaels-Laptop ~ $ sudopybrew install -n -v -j2 2.7.2 > >> >> You are already installed `Python-2.7.2` > >> >> > >> >> Do you want me to apt-get python? > >> > > >> > > >> > No it says you are already installed. > >> >> > >> >> > >> >> > > >> >> > 2) What is your PATH now? After you edited your .bashrc to add the > >> >> > environmental variable did you invoke it? > >> >> > > >> >> > # /bin/bash > >> >> > > >> >> bmike1@Michaels-Laptop ~ $ sudo /bin/bash > >> >> Traceback (most recent call last): > >> >> File "<string>", line 1, in <module> > >> >> ImportError: No module named virtualenvwrapper.hook_loader > >> >> virtualenvwrapper.sh: There was a problem running the initialization > >> >> hooks. If Python could not import the module > >> >> virtualenvwrapper.hook_loader, check that virtualenv has been > >> >> installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH > >> >> is set properly. > >> >> Michaels-Laptop ~ # su bmike1 > >> >> Traceback (most recent call last): > >> >> File "<string>", line 1, in <module> > >> >> ImportError: No module named virtualenvwrapper.hook_loader > >> >> virtualenvwrapper.sh: There was a problem running the initialization > >> >> hooks. If Python could not import the module > >> >> virtualenvwrapper.hook_loader, check that virtualenv has been > >> >> installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH > >> >> is set properly. > >> >> bmike1@Michaels-Laptop ~ $ $PATH > >> >> bash: > >> >> > >> >> > /home/bmike1/.pythonbrew/bin:/home/bmike1/.pythonbrew/pythons/Python-2.7.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: > >> >> No such file or directory > >> >> bmike1@Michaels-Laptop ~ $ > >> >> > >> > It looks like your .bashrc is messed up: > >> > Please move your .bashrc to a backup file: > >> > > >> > # cd ~ | mv .bashrc bashrc-old > >> > # sudo su > >> > > >> > What do you see now - please drop it into this email. > >> > > >> >> > >> >> > 3) A child process can't fork here, so bash can't run or write to > >> >> > venv.run > >> >> > (known error). I would try it simply with: > >> >> > > >> >> > sudo pythonbrew venv use proj > >> >> > >> >> bmike1@Michaels-Laptop ~ $ sudo pythonbrew venv use proj > >> >> sudo: pythonbrew: command not found > >> >> bmike1@Michaels-Laptop ~ $ sudopybrew venv use proj > >> >> # Using `proj` environment (found in > >> >> /home/bmike1/.pythonbrew/venvs/Python-2.7.2) > >> >> # To leave an environment, simply run `deactivate` > >> >> bash: /home/bmike1/.pythonbrew/etc/venv.run: Permission denied > >> >> (proj)bmike1@Michaels-Laptop ~ $ > >> >> > >> > # sudo locate pythonbrew > >> > > >> > # sudo /pathyouseeabove/pythonbrew venv use proj > >> > > >> > Looks like your home permissions are all fouled up? > >> > > >> > # cd ~/bmike1 | chown -R bmike1:bmike1 . > >> > # cd ~bmike1 | chown -r ug+rwx . > >> > # cd ~bmike1 | chmod -r ug+rwx .pythonbrew/ > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > --------------------------------------------------- > >> > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > >> > To subscribe, unsubscribe, or to change your mail settings: > >> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > >> > >> > >> > >> -- > >> :-)~MIKE~(-: > >> --------------------------------------------------- > >> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > >> To subscribe, unsubscribe, or to change your mail settings: > >> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > > > > > > > > > -- > > (503) 754-4452 Android > > (623) 239-3392 Skype > > (623) 688-3392 Google Voice > > ** > > it-clowns.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------- > > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > > To subscribe, unsubscribe, or to change your mail settings: > > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > > > -- > :-)~MIKE~(-: > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change your mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > -- (503) 754-4452 Android (623) 239-3392 Skype (623) 688-3392 Google Voice ** it-clowns.com
--------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss