When I run python2.7 setup.py install, then...UnknownTimeZoneError

57 views
Skip to first unread message

Ong Willie

unread,
Mar 5, 2014, 1:43:11 AM3/5/14
to erpnext-dev...@googlegroups.com
It is a Blank New CentOS 6.4 and yum -y update to 6.5(Final), Please help , Thank you very much
 Please take a Look the result

and 

the following is my install procedure

ln -sf /usr/share/zoneinfo/Hongkong /etc/localtime
yum groupinstall -y development
yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel
yum install xz-libs
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
xz -d Python-2.7.6.tar.xz
tar -xvf Python-2.7.6.tar
cd Python-2.7.6
./configure --prefix=/usr/local
make
make altinstall
export PATH="/usr/local/bin:$PATH"
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
tar -xvf setuptools-1.4.2.tar.gz
cd setuptools-1.4.2
python2.7 setup.py install
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python2.7 -
pip install virtualenv
pip install werkzeug
easy_install --upgrade pytz

yum install passwd


wget https://raw.github.com/webnotes/erpnext/master/install_erpnext.py


python2.7 install_erpnext.py --create_user

Pratik Vyas

unread,
Mar 5, 2014, 1:46:48 AM3/5/14
to erpnext-dev...@googlegroups.com
Hi Ong,

Can you try to re install pytz or install a different version?
> --
> Note:
>
> If you are posting an issue,
> 1. We should be able to replicate it at our end. So please give us as much
> information as you can. Please see it from the point of view of the person
> receiving the communication.
> 2. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 3. For sending images, use http://imgur.com or other similar services. Do
> not send images as attachments. Links are good. Same goes for any file you
> are going to send.
>
> End of Note
> ---
> You received this message because you are subscribed to the Google Groups
> "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to erpnext-developer...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/a09fa738-b555-490c-9fc7-23da493dfde9%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Pratik
erpnext

Ong Willie

unread,
Mar 5, 2014, 6:08:37 AM3/5/14
to erpnext-dev...@googlegroups.com
Hi Pratik,

Thank you for the reply, 
I was uninstall the pytz by using:
 rm -rf pytz
 rm -rf pytz-2013d-py2.7.egg-info/
and 
install again
easy_install pytz
it shows:

--------------------------------------------------------------------------------
Installing Packages: (This may take some time)
gcc MySQL-python git memcached ntp vim-enhanced screen
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Installing Python Modules: (This may take some time)
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Pre-requisites Installed
--------------------------------------------------------------------------------
Traceback (most recent call last):
  File "install_erpnext.py", line 299, in <module>
    os.mkdir(install_path)
OSError: [Errno 17] File exists: '/home/erpnext/erpnext'

Reply all
Reply to author
Forward
0 new messages