From: Anton Gorlov <Pnz.Stalker@mail.ru>
To: community@altlinux.ru
Subject: [Comm] Pyhon or not python
Date: Sat, 9 Jul 2005 11:37:39 +0400
Message-ID: <4710353802.20050709113739@mail.ru> (raw)
Здравствуйте, community.
Вопрос наверное лучше сюда задать, если ошибаюсь -сорри!
В общем разбираюсь с биллингом.. движок у него сделан на питоне.
модуль под постгресс собрал.
Сам радиус-сервер написан тоже на питоне.
Биллинг вроде запускается -веб-морда работает, пользователей можно
добавлять...удалять и тд и тп.
Но по выводу nmap вижу что радиус сервер не работает.
Пытаюсь его запустиь руками:
[root@rcc radius_server]# ./rad_server.py
import: unable to open X server `'.
./rad_server.py: line 2: syntax error near unexpected token `"/usr/local/ibs"'
./rad_server.py: line 2: `sys.path.append("/usr/local/ibs")'
Хм... лезу на сервер физически (до этого -по ssh) -ага... service dm лежит...
Логинюсь в 1 консоли, делаю sudo su -, service dm start, появляются иксы...
логинюсь, запускаю там консоль рутовскую и пытаюсь опять запустить Радиус и вижу:
Xlib: connection to ":0.0" refused by server^M
Xlib: No protocol specified
import: unable to open X server `:0.0'.
./rad_server.py: line 2: syntax error near unexpected token `"/usr/local/ibs"'
./rad_server.py: line 2: `sys.path.append("/usr/local/ibs")'
Вопрос -кто виноват и что делать?
Вот первые строки из rad_server.py
1) import sys
2) sys.path.append("/usr/local/ibs")
3) from lib import *
4) from ibs_exceptions import *
5) import defs
6) from pyrad import dictionary, packet, server
7) import ras
8) import threadpool
9) import ibs_client
10) import socket
...
--
С уважением,
Anton mailto:Pnz.Stalker@mail.ru
FIDO: 2:5059/37
next reply other threads:[~2005-07-09 7:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-09 7:37 Anton Gorlov [this message]
2005-07-22 2:38 ` Ivan Fedorov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4710353802.20050709113739@mail.ru \
--to=pnz.stalker@mail.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git