LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-15-2013, 12:56 PM   #16
NikosGr
Member
 
Registered: Jun 2013
Posts: 63

Original Poster
Rep: Reputation: 0

Thanks habitual this linka ctually worked.

i manages to isntall easy_install and downlaode dna dinstall pymysql but whne it comes to pygeopip i get this:

Code:
root@secure [~/distribute-0.6.35]# easy_install pygeoip
Searching for pygeoip
Reading http://pypi.python.org/simple/pygeoip/
Reading http://code.google.com/p/pygeoip/
Reading https://github.com/appliedsec/pygeoip
Best match: pygeoip 0.3.0
Downloading https://pypi.python.org/packages/source/p/pygeoip/pygeoip-0.3.0.tar.gz#md5=67eaa75053d06f46722eac23dc4e4bb5
Processing pygeoip-0.3.0.tar.gz
Writing /tmp/easy_install-g_gq17nb/pygeoip-0.3.0/setup.cfg
Running pygeoip-0.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-g_gq17nb/pygeoip-0.3.0/egg-dist-tmp-gniwz8ct
Traceback (most recent call last):
  File "/usr/local/bin/easy_install", line 9, in <module>
    load_entry_point('distribute==0.6.35', 'console_scripts', 'easy_install')()
  File "/usr/local/lib/python3.4/site-packages/distribute-0.6.35-py3.4.egg/setuptools/command/easy_install.py", line 1937, in main
    with_ei_usage(lambda:
  File "/usr/local/lib/python3.4/site-packages/distribute-0.6.35-py3.4.egg/setuptools/command/easy_install.py", line 1918, in with_ei_usage
    return f()
  File "/usr/local/lib/python3.4/site-packages/distribute-0.6.35-py3.4.egg/setuptools/command/easy_install.py", line 1941, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/usr/local/lib/python3.4/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/local/lib/python3.4/distutils/dist.py", line 929, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python3.4/distutils/dist.py", line 948, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.4/site-packages/distribute-0.6.35-py3.4.egg/setuptools/command/easy_install.py", line 358, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/local/lib/python3.4/site-packages/distribute-0.6.35-py3.4.egg/setuptools/command/easy_install.py", line 598, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/local/lib/python3.4/site-packages/distribute-0.6.35-py3.4.egg/setuptools/command/easy_install.py", line 628, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/local/lib/python3.4/site-packages/distribute-0.6.35-py3.4.egg/setuptools/command/easy_install.py", line 823, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/local/lib/python3.4/site-packages/distribute-0.6.35-py3.4.egg/setuptools/command/easy_install.py", line 1103, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/local/lib/python3.4/site-packages/distribute-0.6.35-py3.4.egg/setuptools/command/easy_install.py", line 1089, in run_setup
    run_setup(setup_script, args)
  File "/usr/local/lib/python3.4/site-packages/distribute-0.6.35-py3.4.egg/setuptools/sandbox.py", line 34, in run_setup
    lambda: exec(compile(open(
  File "/usr/local/lib/python3.4/site-packages/distribute-0.6.35-py3.4.egg/setuptools/sandbox.py", line 82, in run
    return func()
  File "/usr/local/lib/python3.4/site-packages/distribute-0.6.35-py3.4.egg/setuptools/sandbox.py", line 36, in <lambda>
    ).read(), "setup.py", 'exec'),
  File "/usr/local/lib/python3.4/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1098: ordinal not in range(128)
Why this package cannot be installed?
 
Old 11-15-2013, 01:23 PM   #17
NikosGr
Member
 
Registered: Jun 2013
Posts: 63

Original Poster
Rep: Reputation: 0
I'am afraid i messes up because i have tried to delete previous compiled from source installation of python3.*

i did 'rm -rf /usr/local/bin/python*'

now python 3.* is completely broken

i have tried to

yum remove python33-devel and it did something and then yum install python 33-devel

but that didn't seem to have re-installed python 3.3.2

Please help me out! i shouldn't have gone dleetd folder but i all i wanted was to remove previous python3 installations.

No
 
Old 11-15-2013, 10:17 PM   #18
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
to add to all of the above

CentOS is PYTHON SPECIFIC
gnome and yum DEPEND on the default version installed

if that is replaced then yum and some of gnome will not work


Now a different version of python can be installed "Side-by-Side"
( normally best done BY HAND with a manual install and TAKING YOUR TIME so you do not make a mistake )

then create a shell script to export the location of the different version of python for the program that needs it and launch that program
--i do that for the OLD blender 2.49b it needs a OLDER version of python
(export PYTHONHOME=/location/of/the/different/python)


Quote:
yum remove python33-devel and it did something and then yum install python 33-devel

but that didn't seem to have re-installed python 3.3.2
dose yum give you an error ?
if not what is the output of
Code:
su -
yum info python33
 
Old 11-16-2013, 12:43 AM   #19
NikosGr
Member
 
Registered: Jun 2013
Posts: 63

Original Poster
Rep: Reputation: 0
Hello, here is the output that it says installed but i have certainly have to have it re-installed somehow:

Code:
root@secure [~]# yum info python33
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                                                                                         |  24 kB     00:00     
 * base: ftp.plusline.de
 * epel: mirror.fraunhofer.de
 * extras: mirror.softaculous.com
 * remi: mirror5.layerjet.com
 * updates: mirror2.hs-esslingen.de
IUS                                                                                                                                                                                                                   | 2.1 kB     00:00     
base                                                                                                                                                                                                                  | 3.7 kB     00:00     
extras                                                                                                                                                                                                                | 3.4 kB     00:00     
remi                                                                                                                                                                                                                  | 2.9 kB     00:00     
updates                                                                                                                                                                                                               | 3.4 kB     00:00     
Installed Packages
Name        : python33
Arch        : i686
Version     : 3.3.2
Release     : 1.ius.centos6
Size        : 31 k
Repo        : installed
From repo   : IUS
Summary     : Version 3 of the Python programming language aka Python 3000
URL         : http://www.python.org/
License     : Python
Description : Python 3 is a new version of the language that is incompatible with the 2.x
            : line of releases. The language is mostly the same, but many details, especially
            : how built-in objects like dictionaries and strings work, have changed
            : considerably, and a lot of deprecated features have finally been removed.

root@secure [~]#
 
Old 11-16-2013, 01:27 AM   #20
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well python3 is installed
but it HAS TO BE "out of the system path"
or built so that there is no name conflict

rpm based distros will normally install a program( using the rpm) like python3 as

/usr/bin/python3.3
/usr/bin/python as a link to /usr/bin/python2.7

you need to configure the program that needs it to use python3.3 and NOT the name "python"

and point any source to the /usr/include/python33 folder and NOT to /usr/include
and to link to the python 3 libs and not the python2 libs
 
Old 11-16-2013, 01:32 AM   #21
NikosGr
Member
 
Registered: Jun 2013
Posts: 63

Original Poster
Rep: Reputation: 0
Can you give me specific commands to issue please because i'am totally inexperienced with this procedure.
The only thing i know how to do is:

Code:
root@secure [~]# python -V
Python 2.6.6
root@secure [~]# python3 -V
Python 3.3.2
root@secure [~]# which python
/usr/bin/python
root@secure [~]# which python3
/usr/bin/python3
root@secure [~]#
 
Old 11-16-2013, 02:25 AM   #22
NikosGr
Member
 
Registered: Jun 2013
Posts: 63

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
# 12 .

A) Python 3 :
1) $ su
2) # gedit /etc/yum.repos.d/ius.repo
... Then enter the repo text for i386, and save the file :
[IUS]
name=ius
baseurl=http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/i386
enabled=1
gpgcheck=0

4) # yum list python3*
... To know the available packages. (In case you didn't visit the link.)
5) # yum install python33-devel
6) $ which python3
... The reply is : /usr/bin/python3

7) 'python3-pip' : No repo with this package.

Get pip https://pypi.python.org/packages/sou...p-1.4.1.tar.gz
→ pip-1.4.1.tar.gz : $ tar xvf pip-1.4.1.tar.gz

$ cd pypi/
$ su
# python3 ez_setup.py
$ wget https://raw.github.com/pypa/pip/mast...rib/get-pip.py
# python3 get-pip.py
... and you have /usr/bin/pip*

Using pip, example : # pip-3.3 install htmltag

The current list of available Python3 applications is here ..
https://pypi.python.org/pypi?:action...c=533&show=all

-
I cannot install pip
after step 7 when i extract the pip-1.4.1.tar.gz file a pip-1.4.1 flder is beign created when i cd into it and try:

[code]
root@secure [~]# cd pip-1.4.1
root@secure [~/pip-1.4.1]# ll
total 80
drwxr-xr-x 5 dauwin games 4096 Nov 15 20:52 ./
dr-xr-x--- 18 root root 4096 Nov 16 10:22 ../
-rw-r--r-- 1 dauwin games 1559 Aug 8 03:38 AUTHORS.txt
-rw-r--r-- 1 dauwin games 26391 Aug 8 03:54 CHANGES.txt
-rw-r--r-- 1 dauwin games 1907 Aug 8 03:38 LICENSE.txt
-rw-r--r-- 1 dauwin games 225 Aug 8 03:38 MANIFEST.in
-rw-r--r-- 1 dauwin games 2763 Aug 8 04:11 PKG-INFO
-rw-r--r-- 1 dauwin games 384 Aug 8 03:38 PROJECT.txt
-rw-r--r-- 1 dauwin games 264 Aug 8 03:38 README.rst
drwxr-xr-x 2 dauwin games 4096 Aug 8 04:11 docs/
drwxr-xr-x 6 dauwin games 4096 Aug 8 04:11 pip/
drwxr-xr-x 2 dauwin games 4096 Aug 8 04:11 pip.egg-info/
-rw-r--r-- 1 dauwin games 86 Aug 8 04:11 setup.cfg
-rw-r--r-- 1 dauwin games 2298 Aug 8 03:38 setup.py
root@secure [~/pip-1.4.1]# python3 setup.py
Traceback (most recent call last):
File "setup.py", line 5, in <module>
from setuptools import setup, find_packages
ImportError: No module named 'setuptools'
root@secure [~/pip-1.4.1]#
/code]
 
Old 11-16-2013, 04:21 AM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 22 .

Guess I was some sleepy / tired yesterday night. Sorry.
Post #12 has been edited :

pip : $ mkdir pypi
$ cd pypi/
$ wget https://bitbucket.org/pypa/setuptool...ap/ez_setup.py
$ su
# python3 ez_setup.py
$ wget https://raw.github.com/pypa/pip/mast...rib/get-pip.py
# python3 get-pip.py
... and you have /usr/bin/pip-3.3

-
 
Old 11-16-2013, 05:36 AM   #24
NikosGr
Member
 
Registered: Jun 2013
Posts: 63

Original Poster
Rep: Reputation: 0
Okey, thank you!


but when is: http://superhost.gr i get the error you will like 'pymysql' and 'pymysql' are missing
Since they are install how can they be missing?

root@secure [~]# which python
/usr/bin/python
root@secure [~]# which python3
/usr/bin/python3

The only thing i can think of is that those packages have installed under default
python 2.6.6 and not under Python 3.3.2.

Can this be the case here? How can we make this modules get installed?
 
  


Reply

Tags
pip, python


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I install pip/setuptools and other Python packages without sudo/su privileges? OMouse Linux - Software 2 08-30-2013 11:40 AM
[SOLVED] python, pip --user into a different directory than .local a4z Programming 1 06-16-2013 10:39 AM
Adding an extra python repo for 'yum' & finding 'pip' package NikosGr Linux - Newbie 4 06-04-2013 04:25 AM
Can't build dev-python/pip flebber Sabayon 0 11-16-2012 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration