Etiny的安装
-
想玩玩eTiny,看来不太容易,按照tiny官方网站的安装说明书,出现如下错误,谁给看看!多谢!
[code]~$ tinyerp-client
~$ wget www.turbogears.org/download/tgsetup.py
--20:17:20-- www.turbogears.org/download/tgsetup.py
=> `tgsetup.py'
正在解析主机 www.turbogears.org... 67.15.84.19
正在连接 www.turbogears.org|67.15.84.19|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 15,517 (15K) [text/plain]100%[====================================>] 15,517 27.46K/s
20:17:25 (27.39 KB/s) - `tgsetup.py' 已经保存 [15517/15517]
james@u-server:~$ python2.4 tgsetup.py
TurboGears Installer
Beginning setuptools/EasyInstall installation and TurboGears downloadDownloading cheeseshop.python.org/packages/2.4/s/setuptools/setuptools-0.6c6-py2.4.egg
Traceback (most recent call last):
File "tgsetup.py", line 435, in ?
tg_main()
File "tgsetup.py", line 188, in tg_main
main(args)
File "tgsetup.py", line 361, in main
egg = download_setuptools(version, delay=0)
File "tgsetup.py", line 342, in download_setuptools
src = urllib2.urlopen(url)
File "/usr/lib/python2.4/urllib2.py", line 130, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
File "/usr/lib/python2.4/urllib2.py", line 1021, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.4/urllib2.py", line 996, in do_open
raise URLError(err)
urllib2.URLError: [/code] -
[code]~$ start-tinyerp.py
/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/lib/profiler.py:54: UserWarning: Your installation of Python doesn't have a profile module. If you're on Debian, you can apt-get python2.4-profiler from non-free in a separate step. See www.cherrypy.org/wiki/ProfilingOnDebian for details.
warnings.warn(msg)
Traceback (most recent call last):
File "/usr/bin/start-tinyerp.py", line 5, in ?
pkg_resources.run_script('eTiny==1.0rc2', 'start-tinyerp.py')
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 448, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1166, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/lib/python2.4/site-packages/eTiny-1.0rc2-py2.4.egg/EGG-INFO/scripts/start-tinyerp.py", line 24, in ?
from tinyerp.controllers import Root
File "/usr/lib/python2.4/site-packages/eTiny-1.0rc2-py2.4.egg/tinyerp/controllers.py", line 49, in ?
from tinyerp import subcontrollers
File "/usr/lib/python2.4/site-packages/eTiny-1.0rc2-py2.4.egg/tinyerp/subcontrollers/init.py", line 1, in ?
import actions
File "/usr/lib/python2.4/site-packages/eTiny-1.0rc2-py2.4.egg/tinyerp/subcontrollers/actions.py", line 47, in ?
from form import Form
File "/usr/lib/python2.4/site-packages/eTiny-1.0rc2-py2.4.egg/tinyerp/subcontrollers/form.py", line 46, in ?
from tinyerp import widgets as tw
File "/usr/lib/python2.4/site-packages/eTiny-1.0rc2-py2.4.egg/tinyerp/widgets/init.py", line 1, in ?
import form
File "/usr/lib/python2.4/site-packages/eTiny-1.0rc2-py2.4.egg/tinyerp/widgets/form.py", line 722, in ?
from action import Action
File "/usr/lib/python2.4/site-packages/eTiny-1.0rc2-py2.4.egg/tinyerp/widgets/action.py", line 39, in ?
import screen
File "/usr/lib/python2.4/site-packages/eTiny-1.0rc2-py2.4.egg/tinyerp/widgets/screen.py", line 43, in ?
import tinycalendar
File "/usr/lib/python2.4/site-packages/eTiny-1.0rc2-py2.4.egg/tinyerp/widgets/tinycalendar/init.py", line 1, in ?
from widgets import DayCalendar
File "/usr/lib/python2.4/site-packages/eTiny-1.0rc2-py2.4.egg/tinyerp/widgets/tinycalendar/widgets.py", line 43, in ?
from base import TinyCalendar
File "/usr/lib/python2.4/site-packages/eTiny-1.0rc2-py2.4.egg/tinyerp/widgets/tinycalendar/base.py", line 47, in ?
from tinyerp.tinygraph import choice_colors
File "/usr/lib/python2.4/site-packages/eTiny-1.0rc2-py2.4.egg/tinyerp/tinygraph/init.py", line 33, in ?
from matplotlib.numerix import arange
File "/usr/lib/python2.4/site-packages/matplotlib/numerix/init.py", line 82, in ?
import numpy
ImportError: No module named numpy[/code] -
安装numpy包
[code]
sudo apt-get install python-numpy
[/code] -
这个 状态是启动了?
[code]~$ start-tinyerp.py
/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/lib/profiler.py:54: UserWarning: Your installation of Python doesn't have a profile module. If you're on Debian, you can apt-get python2.4-profiler from non-free in a separate step. See www.cherrypy.org/wiki/ProfilingOnDebian for details.
warnings.warn(msg)[/code]