Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Issue
#5
(Aug-28-2018, 01:29 PM)radharani1306 Wrote: I am new to python and Kali linux. I have installed Kali linux on virtual box to practice Python. But I am unable to execute python programs which imports pandas,scapy etc. I observed the following things in my Kali environment 1) when executed "which Python", it lists (same for Python3) /usr/bin 2) when executed "which pip", it lists (same for pip3) /usr/local/bin /usr/bin 3) When tried to install scapy/ pandas using "apt-get install pandas/scapy", it is giving the following pip3 install scapy Requirement already satisfied: scapy in /root/.local/lib/python3.6/site-packages (2.4.0) 4) But when I execute python file which has "import scapy" statement is not executing. I am getting the following error after this command python dummy.py Traceback (most recent call last): File "dummy.py", line 1, in <module> import scapy.all as scapyall File "/usr/local/lib/python2.7/dist-packages/scapy/all.py", line 10, in <module> from .config import * File "/usr/local/lib/python2.7/dist-packages/scapy/config.py", line 11, in <module> from .data import * File "/usr/local/lib/python2.7/dist-packages/scapy/data.py", line 184, in <module> TCP_SERVICES,UDP_SERVICES=load_services("/etc/services") File "/usr/local/lib/python2.7/dist-packages/scapy/data.py", line 109, in load_services f=open(filename, errors='ignore') TypeError: 'errors' is an invalid keyword argument for this function Please help me, I am struggling with this from 5 days. thanks, Radha


Hi Radha,

I have vast experience in Python and Linux and I feel we can assist you on this mandate.

Would be glad to discuss and take this forward.

Look forward to hearing from you.

Gmail: karen.cis10gmail.com
Skype: cisin.karen

Regards,
Karen

User has been warned for this post. Reason: Offering paid services, not in Jobs section.
Reply


Messages In This Thread
Python Issue - by radharani1306 - Aug-28-2018, 01:29 PM
RE: Python Issue - by Axel_Erfurt - Aug-28-2018, 02:36 PM
RE: Python Issue - by radharani1306 - Aug-28-2018, 05:16 PM
RE: Python Issue - by Gribouillis - Aug-28-2018, 07:56 PM
RE: Python Issue - by Karenm - Aug-29-2018, 06:22 AM
RE: Python Issue - by buran - Aug-29-2018, 06:49 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020