Найти - Пользователи
Полная версия: Запуск проекта
Начало » Pyramid / Pylons / TurboGears » Запуск проекта
1
Rumato
Сразу извиняюсь за наверное глупый вопрос: пытаюсь запустить проект, делаю:
python setup.py develop

затем:
 pserve development.ini

В результате:
Traceback (most recent call last):
  File "/usr/local/bin/pserve", line 9, in <module>
    load_entry_point('pyramid==1.3.2', 'console_scripts', 'pserve')()
  File "/usr/local/lib/python2.7/dist-packages/pyramid/scripts/pserve.py", line 47, in main
    return command.run()
  File "/usr/local/lib/python2.7/dist-packages/pyramid/scripts/pserve.py", line 288, in run
    relative_to=base, global_conf=vars)
  File "/usr/local/lib/python2.7/dist-packages/pyramid/scripts/pserve.py", line 315, in loadserver
    server_spec, name=name, relative_to=relative_to, **kw)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 255, in loadserver
    return loadobj(SERVER, uri, name=name, **kw)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
    global_conf=global_conf)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 454, in get_context
    section)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 476, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 406, in get_context
    global_conf=global_conf)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 328, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 620, in get_context
    object_type, name=name)
  File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 640, in find_egg_entry_point
    pkg_resources.require(self.spec)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Paste
В чем проблема? И как её решить?

Заранее спасибо, если вопрос глупый прошу извинить так как первый день с этим фреймворком.
fata1ex
pip install Paste
Rumato
fata1ex, Большое спасибо, потом пришлось ещё кучу модулей доустановить.


Но вот теперь, когда делаю
pserve development.ini
Появляется ошибка:
socket.error: [Errno 98] Address already in use

И я ни как не пойму из-за чего она, какой-то процес не до убился и занимает память?
slav0nic
порт уже занят, запусти на другом
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB