Posted: Mon Apr 06, 2009 9:47 am |
|
|
slonopotamus |
Отметившийся |
|
|
Joined: 06 Apr 2009 |
Posts: 1 |
|
|
|
|
|
|
|
|
|
|
|
| | |
Posted: Sun May 24, 2009 4:27 pm |
|
|
Sb0y |
Отметившийся |
|
|
Joined: 24 May 2009 |
Posts: 7 |
|
|
|
|
|
|
|
Всем привет.
Проблема с DNSNameError
У меня Gentoo.
Code: | bagrincev j2j # python ./main.py
Traceback (most recent call last):
File "./main.py", line 11, in <module>
import j2j
File "//usr/lib/python2.5/site-packages/j2j/j2j.py", line 14, in <module>
from client import Client
File "/usr/lib/python2.5/site-packages/j2j/client.py", line 10, in <module>
from twisted.names.error import DNSNameError
ImportError: No module named names.error |
Стоит twisted-names-8.2.0.
В консоле питона тоже самое
Code: | bagrincev j2j # python
Python 2.5.4 (r254:67916, May 24 2009, 14:59:16)
[GCC 3.4.6 (Gentoo Hardened 3.4.6-r2 p1.6, ssp-3.4.6-1.0, pie-8.7.10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from twisted.names.error import DNSNameError
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named names.error
>>> |
Конфиг:
Code: | [component]
JID=j2j.bagrincev.ru
Host=localhost
Port=8883
Password=***
[process]
Pid=/var/run/j2jt/j2jt.pid ; pid file
[database]
Host=127.0.0.1
Type=mysql
User=j2j
Name=j2j
Password=***
Prefix=j2j_
[admins]
List=sb0y@bagrincev.ru,alexrett@artweb.pp.ru,alexey@zotikov.com,wkg@wmd.su
[debug]
logfile=/var/log/j2j/j2j.log
registrations=yes
logins=yes
xml_logging=/var/log/j2j/xml.log
component_xml=no
clients_xml=no
clients_jids_to_log=All ;or user1@server,user2@server |
Кто сталкивался? Как такое можно вылечить? |
|
|
|
|
| | |
Posted: Sun May 24, 2009 7:57 pm |
|
|
Binary |
Разработчик |
|
|
Joined: 17 Dec 2004 |
Posts: 1712 |
Location: Омск |
|
|
|
|
|
|
8.1.0, Gentoo, всё в порядке |
|
_________________ And I'm feeling good! |
|
|
|
Posted: Sun May 24, 2009 8:10 pm |
|
|
Sb0y |
Отметившийся |
|
|
Joined: 24 May 2009 |
Posts: 7 |
|
|
|
|
|
|
|
Binary wrote: | 8.1.0, Gentoo, всё в порядке |
Пробовал 8.1.0... болт.
Есть предположения как такое можно исправить? |
|
Last edited by Sb0y on Sun May 24, 2009 8:18 pm; edited 1 time in total |
|
|
|
Posted: Sun May 24, 2009 8:13 pm |
|
|
Binary |
Разработчик |
|
|
Joined: 17 Dec 2004 |
Posts: 1712 |
Location: Омск |
|
|
|
|
|
|
покажите
Code: |
ls -l /usr/lib64/python2.5/site-packages/twisted/names/error.py
|
|
|
_________________ And I'm feeling good! |
|
|
|
Posted: Sun May 24, 2009 8:19 pm |
|
|
Sb0y |
Отметившийся |
|
|
Joined: 24 May 2009 |
Posts: 7 |
|
|
|
|
|
|
|
Binary wrote: | покажите
Code: |
ls -l /usr/lib64/python2.5/site-packages/twisted/names/error.py
|
|
Вот:
Code: |
bagrincev j2j # ls -l /usr/lib/python2.5/site-packages/twisted/names/error.py
-rwxr-xr-x 1 root root 1859 Май 24 16:04 /usr/lib/python2.5/site-packages/twisted/names/error.py
|
|
|
|
|
|
Posted: Sun May 24, 2009 8:22 pm |
|
|
Binary |
Разработчик |
|
|
Joined: 17 Dec 2004 |
Posts: 1712 |
Location: Омск |
|
|
|
|
|
|
а если:
Code: |
python -c "import twisted.names.error"
|
? |
|
_________________ And I'm feeling good! |
|
|
|
Posted: Sun May 24, 2009 8:24 pm |
|
|
Sb0y |
Отметившийся |
|
|
Joined: 24 May 2009 |
Posts: 7 |
|
|
|
|
|
|
|
Binary wrote: | а если:
Code: |
python -c "import twisted.names.error"
|
? |
Тоже самое
Code: | bagrincev j2j # python -c "import twisted.names.error"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named names.error |
|
|
|
|
|
Posted: Sun May 24, 2009 8:27 pm |
|
|
Binary |
Разработчик |
|
|
Joined: 17 Dec 2004 |
Posts: 1712 |
Location: Омск |
|
|
|
|
|
|
Code: | python -c "import sys;print sys.path" |
|
|
_________________ And I'm feeling good! |
|
|
|
Posted: Sun May 24, 2009 8:44 pm |
|
|
Sb0y |
Отметившийся |
|
|
Joined: 24 May 2009 |
Posts: 7 |
|
|
|
|
|
|
|
Binary wrote: | Code: | python -c "import sys;print sys.path" |
|
Code: | bagrincev j2j # python -c "import sys;print sys.path"
['', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/lib/portage/pym', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/site-packages/gst-0.10'] |
|
|
|
|
|
Posted: Sun May 24, 2009 8:50 pm |
|
|
Binary |
Разработчик |
|
|
Joined: 17 Dec 2004 |
Posts: 1712 |
Location: Омск |
|
|
|
|
|
|
как странно, ну последнее, что идёт в голову:
Code: | ls /usr/lib/python2.5/site-packages/twisted/
ls /usr/lib/python2.5/site-packages/twisted/names/ |
|
|
_________________ And I'm feeling good! |
|
|
|
| | |
Posted: Sun May 24, 2009 8:55 pm |
|
|
Sb0y |
Отметившийся |
|
|
Joined: 24 May 2009 |
Posts: 7 |
|
|
|
|
|
|
|
Binary wrote: | как странно, ну последнее, что идёт в голову:
Code: | ls /usr/lib/python2.5/site-packages/twisted/
ls /usr/lib/python2.5/site-packages/twisted/names/ |
|
Code: |
bagrincev j2j # ls /usr/lib/python2.5/site-packages/twisted/
application copyright.pyc enterprise im.pyo __init__.pyo mail news plugin.pyc protocols scripts test _version.pyc words
conch copyright.pyo im.py __init__.py internet manhole persisted plugin.pyo python spread trial _version.pyo
copyright.py cred im.pyc __init__.pyc lore names plugin.py plugins runner tap _version.py web
bagrincev j2j # ls /usr/lib/python2.5/site-packages/twisted/names/
authority.py cache.py client.py common.py dns.py error.py hosts.py __init__.py resolve.py root.py secondary.py server.py srvconnect.py tap.py test _version.pyo
authority.pyc cache.pyc client.pyc common.pyc dns.pyc error.pyc hosts.pyc __init__.pyc resolve.pyc root.pyc secondary.pyc server.pyc srvconnect.pyc tap.pyc _version.py
authority.pyo cache.pyo client.pyo common.pyo dns.pyo error.pyo hosts.pyo __init__.pyo resolve.pyo root.pyo secondary.pyo server.pyo srvconnect.pyo tap.pyo _version.pyc
bagrincev j2j #
|
Ещё светлые идеи? |
|
|
|
|
| | |
Posted: Fri Jun 12, 2009 7:28 pm |
|
|
Sb0y |
Отметившийся |
|
|
Joined: 24 May 2009 |
Posts: 7 |
|
|
|
|
|
|
|
при установке twisted-names выскакивает такое:
Code: |
>>> Installing (1 of 1) dev-python/twisted-names-8.2.0
>>> Installing (1 of 1) dev-python/twisted-names-8.2.0
* Updating twisted plugin cache...
rm: невозможно удалить `/usr/lib/python2.5/site-packages/twisted/plugins/dropin.cache': Нет такого файла или каталога
/usr/lib/python2.5/twisted/plugins/nevow_widget.py:7: DeprecationWarning: mktap and related support modules are deprecated as of Twisted 8.0. Use Twisted Application Plugins with the 'twistd' command directly, as described in 'Writing a Twisted Application Plugin for twistd' chapter of the Developer Guide.
from twisted.scripts.mktap import _tapHelper
|
Может быть это как-то связанно с моей проблемой? |
|
|
|
|
| | |
Posted: Fri Dec 30, 2011 9:17 pm |
|
|
CATMAN |
Отметившийся |
|
|
Joined: 30 Dec 2011 |
Posts: 1 |
|
|
|
|
|
|
|
День добрый. пытаюсь запустить транспорт на CentOS 5.* с ejabberd
питон 2.4.3
Code: | /opt/j2j/main.py
Traceback (most recent call last):
File "/opt/j2j/main.py", line 10, in ?
from ossignal import install_shutdown_handlers
File "/opt/j2j/ossignal.py", line 2
from __future__ import absolute_import
SyntaxError: future feature absolute_import is not defined |
питон 2.6.5
Code: | /usr/lib/python2.6/site-packages/zope/interface/interface.py:156: RuntimeWarning: Python C API versi on mismatch for module _zope_interface_coptimizations: This Python has API version 1013, module _zop e_interface_coptimizations has version 1012.
from _zope_interface_coptimizations import SpecificationBase
Traceback (most recent call last):
File "/opt/j2j/main.py", line 6, in <module>
from twisted.words.protocols.jabber import component
File "/usr/lib/python2.6/site-packages/twisted/words/protocols/jabber/component.py", line 23, in < module>
from twisted.application import service
File "/usr/lib/python2.6/site-packages/twisted/application/service.py", line 20, in <module>
from twisted.python import components
File "/usr/lib/python2.6/site-packages/twisted/python/components.py", line 38, in <module>
from zope.interface.adapter import AdapterRegistry
File "/usr/lib/python2.6/site-packages/zope/interface/adapter.py", line 195
for with, objects in v.iteritems():
^ |
Я с питоном не особо дружен, да и систему курочить пока опасаюсь. Есть предложения как победить проблему? |
|
|
|
|
| | |
JRuDevels Forum Index » Серверная часть [Server-Side] |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT + 3 Hours
Page 26 of 26
Goto page Previous 1, 2, 3 ... 24, 25, 26
|
|
|
|