Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on Python3.4.2 #22

Open
gmatesunny opened this issue Jan 10, 2019 · 3 comments
Open

Fails on Python3.4.2 #22

gmatesunny opened this issue Jan 10, 2019 · 3 comments

Comments

@gmatesunny
Copy link

roshanmk@roshanmk-train ~ $ python3
Python 3.4.2 (default, Oct  8 2014, 13:14:40) 
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from telnetsrv.threaded import TelnetHandler, command
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.4/dist-packages/telnetsrv/threaded.py", line 8, in <module>
    from telnetsrvlib import TelnetHandlerBase, command
ImportError: No module named 'telnetsrvlib'
>>> 

roshanmk@roshanmk-train ~ $ sudo -H pip3 install telnetsrv
Requirement already satisfied: telnetsrv in /usr/local/lib/python3.4/dist-packages (0.4)
@fenglwh
Copy link

fenglwh commented Jan 24, 2019

this may fixed by change
from telnetsrvlib import TelnetHandlerBase, command
to:
from .telnetsrvlib import TelnetHandlerBase, command

@fenglwh
Copy link

fenglwh commented Jan 24, 2019

to solve the No module named 'SocketServer' error:

import sys
if sys.version_info.major ==3:
import socketserver as SocketServer
else:
import SocketServer

@sambonator
Copy link

Are these Bugs in the telnetsrv library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants