fsociety
fsociety copied to clipboard
Error in fsociety.py line 1194 paranthesis () missing
Run in python2 not python3
I have the some issue. What do you mean by running in python 2?
It really doesn't work! I run in python2. It gives me the same error
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 "-------------------------"
Please use Python2 not python3 - or upgrade to the new f society tool kit that uses python3.
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
Thank you ! I'm gonna try it and then let you know
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!
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
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.
Hi ! Thanks for answering me back ! I'll be waiting until you fix it !
@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
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 :)
Hi there ! Can you make it a bit more clear to understand in order what to to ? I didn't succeeded it !
@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
Thank you for the answer ! It's more clear now !
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
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
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
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
└─$ 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
└─$ 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/
└─$ 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
Thanks. I upgraded fsociety. Now working
Run in python2 not python3
thankuuu my brooo<333333