fsociety icon indicating copy to clipboard operation
fsociety copied to clipboard

Error in fsociety.py line 1194 paranthesis () missing

Open GH057-TX opened this issue 4 years ago • 26 comments

GH057-TX avatar Jun 26 '20 20:06 GH057-TX

Run in python2 not python3

CRO-THEHACKER avatar Jun 28 '20 23:06 CRO-THEHACKER

I have the some issue. What do you mean by running in python 2?

Eliza-Seli avatar Aug 25 '20 16:08 Eliza-Seli

It really doesn't work! I run in python2. It gives me the same error

Eliza-Seli avatar Aug 25 '20 16:08 Eliza-Seli

root@kali:/home/kali/fsociety# fsociety File "/root/.fsociety/fsociety.py", line 1194 print "-------------------------" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("-------------------------")? root@kali:/home/kali/fsociety# fsociety File "/root/.fsociety/fsociety.py", line 1194 print "-------------------------"

Eliza-Seli avatar Aug 25 '20 16:08 Eliza-Seli

Please use Python2 not python3 - or upgrade to the new f society tool kit that uses python3.

CRO-THEHACKER avatar Aug 25 '20 16:08 CRO-THEHACKER

sudo apt-get install python python-dev git && git clone https://github.com/Manisso/fsociety \

Test your useing py2 with

python -v

(Make sure it says 2.x) If your running py3 then install py2 from the pipy/ppa or get py3 of f society -> https://fsociety.dev

CRO-THEHACKER avatar Aug 25 '20 16:08 CRO-THEHACKER

Thank you ! I'm gonna try it and then let you know

Eliza-Seli avatar Aug 25 '20 16:08 Eliza-Seli

It works now ! I have been using the commands you gave me. Thank you very much for the answer ! You were right , I was using python 3. Have a nice day!

Eliza-Seli avatar Aug 25 '20 17:08 Eliza-Seli

Screenshot 2020-08-25 13^%42^%58 Hi there ! I have a new question here ! When I open Fsociety , I do not get numbers next to the passwords, web_apps, etc. Why is that? Do I have to choose it manually by using the keyboard? Or is there something else that has to be installed? I've attached you a screenshot so that you can see better what i'm talking about. Thank you

Eliza-Seli avatar Aug 26 '20 13:08 Eliza-Seli

Well I just played around with it and it looks like one of the pkg's updated their version so I'm going to make a PR and (hopefully) get that checked to fix, I'll be back sortly to tell you how to fix this.

CRO-THEHACKER avatar Aug 26 '20 14:08 CRO-THEHACKER

Hi ! Thanks for answering me back ! I'll be waiting until you fix it !

Eliza-Seli avatar Aug 26 '20 14:08 Eliza-Seli

@Eliza-Seli Okay, This is how to fix it:

Find your install dir, first go to /home/YOURUSER/.local/lib/python3.xxx/site-packages/fsociety/core/menu.py python3.xxx change to your installed python3 version, mine is 3.7 so: python3.7/

so my file is: /home/MYUSER/.local/lib/python3.7/site-packages/fsociety/core/menu.py

89>    tools_dict = dict()
90>    for tool in tools:
91>        tools_dict[str(tool)] = tool
92>        args = [str(tool), tool.description]
93>        if links:
94>            text_link = Text(f"{tool.path}")
95>            text_link.stylize(Style(link=f"https://github.com/{tool.path}"))
96>            args.append(text_link)
97>        table.add_row(*args)

Please note: I only am really changing line 95 to one line and changing one word, stylize_all to stylize

CRO-THEHACKER avatar Aug 26 '20 15:08 CRO-THEHACKER

My version is 3.8. From what I understood I need to have the version 3.7. I've downloaded it but I did not understood what I have to do next. I'm sorry for being slow in catching it but I'm not that experienced as you are , most probably :)

Eliza-Seli avatar Aug 26 '20 16:08 Eliza-Seli

Hi there ! Can you make it a bit more clear to understand in order what to to ? I didn't succeeded it !

Eliza-Seli avatar Aug 27 '20 08:08 Eliza-Seli

@Eliza-Seli In my experience it worked just fine for python 3.8, as for the above fix just navigate to the installation directory and edit the menu.py file using a text editor Change text_link.stylize_all to text_link.stylize on line 95

Shreyas-Kamath avatar Sep 01 '20 17:09 Shreyas-Kamath

Thank you for the answer ! It's more clear now !

Eliza-Seli avatar Sep 01 '20 18:09 Eliza-Seli

This pull request should fix that error as well as convert over to using python3, if anyone can test it and let me know if there are any issues I would appreciate it https://github.com/Manisso/fsociety/pull/159

jay13jay avatar Mar 05 '22 21:03 jay13jay

Hi, sorry I'm kinda new to this. I've read the previous comments and I installed both python 2 and 3 but still, I have this same error.

File "/home/ap/.fsociety/fsociety.py", line 1194 print "-------------------------" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("-------------------------")?

@nottheallanyourelookingfor make sure you are calling the right python. type python --version if that doesn't give a version that's 2.X, try python2 --version

That being said, you may wish to use the new version the repo authors have. I have 0 clue whatsoever why they just up and changed to a new repo, but you can find it here: https://github.com/fsociety-team/fsociety

If you have trouble updating to the new version let me know and I can try to throw together a tutorial, but it might be as easy as running pip to upgrade: pip install --upgrade fsociety

jay13jay avatar Mar 11 '22 18:03 jay13jay

thank you for the quick reply, so sorry if i seem like such a noob but i followed all commands word for word and i even updated to the latest version using pip install --upgrade fsociety but i still get the same error

image

Okay so that's what the issue is, your main python is pointed to python3, so when you run the command, try using python2: python2 $(which fsociety)

I have a feeling you have an old version of the script, so you might remove the python2 version and install with pip3 instead: pip uninstall fsociety pip3 install fsociety

jay13jay avatar Mar 11 '22 19:03 jay13jay

└─$ fsociety File "/home/kali/.fsociety/fsociety.py", line 1194 print "-------------------------" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

someone to help me? also not working with: pip uninstall fsociety pip3 install fsociety

igorkolev avatar Aug 08 '22 18:08 igorkolev

└─$ fsociety File "/home/kali/.fsociety/fsociety.py", line 1194 print "-------------------------" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

someone to help me? also not working with: pip uninstall fsociety pip3 install fsociety

Please just update to the new f society version. Https://fsociety.dev/

CRO-THEHACKER avatar Aug 08 '22 18:08 CRO-THEHACKER

└─$ fsociety File "/home/kali/.fsociety/fsociety.py", line 1194 print "-------------------------" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? someone to help me? also not working with: pip uninstall fsociety pip3 install fsociety

Please just update to the new f society version. Https://fsociety.dev/

thanks for answer, but also not working: ERROR: Could not find a version that satisfies the requirement fsociety (from versions: none) ERROR: No matching distribution found for fsociety

igorkolev avatar Aug 08 '22 18:08 igorkolev

Thanks. I upgraded fsociety. Now working

juniorohanyere avatar Dec 20 '22 15:12 juniorohanyere

Run in python2 not python3

thankuuu my brooo<333333

BUNTY070 avatar Dec 21 '22 05:12 BUNTY070