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

Pip Install Error #159

Open
egecemkirci opened this issue Dec 21, 2019 · 4 comments
Open

Pip Install Error #159

egecemkirci opened this issue Dec 21, 2019 · 4 comments

Comments

@egecemkirci
Copy link

I tried pip install scapy-ssl_tls for quick installation. However, I receive an error and I cannot come up with a fix.

cwd: /tmp/pip-install-r0kr9z_r/scapy-ssl-tls/ Complete output (6 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-r0kr9z_r/scapy-ssl-tls/setup.py", line 31 except AttributeError, ex: ^ SyntaxError: invalid syntax ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I cannot understand the problem because it is supposedly from an invalid syntax. Do you have any ideas?

@huangbj16
Copy link

Easy Solution, use the second installation method, first download the code, then correct the code by deleting ", ex" and the next print line. It will build successfully.

@Zeal-Zhu
Copy link

modify File "setup.py" in line 32
except AttributeError, ex -> except AttributeError as ex
this should solve it.

roytu pushed a commit to roytu/scapy-ssl_tls that referenced this issue Feb 27, 2020
@roytu roytu mentioned this issue Feb 27, 2020
tintinweb added a commit that referenced this issue Jun 30, 2021
@dewebdes
Copy link

I know that you update setup.py....
But there is still a possible mistake for most users like me
SCAPY has best compatibility with Python2.7
and if you try to install this package or other scapy related repo with python3 then maybe simply faced on various errors...

Then best way to install and use scapy-ssl-tls is:

  1. python2.7 -m pip install -U cryptography
  2. pip2.7 install --pre scapy[basic]
  3. pip2.7 install scapy-ssl_tls

@milanraf
Copy link

milanraf commented May 14, 2024

I report the issue as still present when installing with Python 3.10.12 and pip 22.0.2:

Collected: scapy-ssl_tls-2.0.0.tar.gz

        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-mmji30wr/scapy-ssl-tls_87acac1301f14212a1dbed2d444318f6/setup.py", line 31
          except AttributeError, ex:
                 ^^^^^^^^^^^^^^^^^^
      SyntaxError: multiple exception types must be parenthesized

The source installation method works (scapy-2.4.5.tar.gz is collected) but the following deprecation message is displayed during installation:

setup.py install is deprecated. Use build and pip and other standards-based tools

althought installation completes successfully

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

5 participants