N
N
nexus02017-05-31 22:02:50
linux
nexus0, 2017-05-31 22:02:50

Why can't python import the smb module?

Python 3.6.1 archlinux. Can't import smb module

>>> from impacket import smb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/site-packages/impacket/smb.py", line 632
    y = t & 0xffffffffL
                      ^
SyntaxError: invalid syntax

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2017-05-31
@nexus0

Because in Python 3 there are no longer separate long integers, and accordingly, the L suffix.
You either need to install Python 2.7 or look for the smb module for Python 3.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question