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

Problem when running torBot binary #116

Closed
DocKali opened this issue Aug 14, 2018 · 14 comments
Closed

Problem when running torBot binary #116

DocKali opened this issue Aug 14, 2018 · 14 comments
Assignees

Comments

@DocKali
Copy link

DocKali commented Aug 14, 2018

Hi,
When I try to run TorBot binary, I obtain an error and the tool stop. Here is the traceback :

Traceback (most recent call last):
  File "torBot.py", line 5, in <module>
    import settings
  File "/tmp/pip-install-Xz8Ej3/pyinstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "settings.py", line 4, in <module>
    load_dotenv(dotenv_path=env_path)
  File "dotenv/main.py", line 255, in load_dotenv
  File "dotenv/main.py", line 95, in set_as_environment_variables
  File "dotenv/main.py", line 74, in dict
  File "collections.py", line 69, in __init__
  File "_abcoll.py", line 571, in update
  File "dotenv/main.py", line 79, in parse
  File "dotenv/main.py", line 60, in _get_stream
  File "genericpath.py", line 26, in exists
TypeError: coercing to Unicode: need string or buffer, PosixPath found
[2568] Failed to execute script torBot

Do you know how to solve this?

Thanks for your help!

@PSNAppz PSNAppz assigned PSNAppz and KingAkeem and unassigned PSNAppz Aug 14, 2018
@PSNAppz
Copy link
Member

PSNAppz commented Aug 16, 2018

@KingAkeem Please take a look at this.

@PSNAppz
Copy link
Member

PSNAppz commented Aug 16, 2018

@DocKali Its not the issue of binary.
Could you provide us the exact option/input you gave to torBot ?

@DocKali
Copy link
Author

DocKali commented Aug 16, 2018

@PSNAppz Of course, it was a classical test of your tool. The syntax was python3 torBot.py -u sitename.onion
It test this input with several sites, and I have the result described above everytime.

@PSNAppz
Copy link
Member

PSNAppz commented Aug 16, 2018

@DocKali I cannot reproduce this.

@DocKali
Copy link
Author

DocKali commented Aug 16, 2018

Strange... I'll make more test to see if I can reproduce that.
Oups, I made a mistake in my first response to your demand. The syntax I used is of course ./torBot -u siteadresse.onion, not python3 -u siteadresse.onion.

@PSNAppz
Copy link
Member

PSNAppz commented Aug 17, 2018

@DocKali Ok but both has the same effect.

@KingAkeem
Copy link
Member

KingAkeem commented Aug 18, 2018

@DocKali Have you tried installing the requirements via pip3 install -r requirements.txt? If you get another error with dot_env then check your requirements.txt and make sure you have the latest requirements. If not, try git pull && pip3 install -r requirements.txt.

@DocKali
Copy link
Author

DocKali commented Aug 28, 2018

Thanks @KingAkeem for your help.

I did a python3 -m pip install -r requirements.txt and all requirements were already satisfied.
I try to run your tool with some random onion sites but always the same error that I described in my first message...

@KingAkeem
Copy link
Member

Did you do a git pull beforehand, because I think the requirement was added after your issue was opened. Also try using pip3 install -r requirements.txt rather than python3 -m pip install -r reqiurements.txt

@DocKali
Copy link
Author

DocKali commented Sep 3, 2018

I just made a git pull and it appears that the version I had of TorBot is up-to-date. Following your recommandations I use pip3 install -r requirements.txt and all requirements are already satisfied. If you need screenshots, I can provide them of course.

@KingAkeem
Copy link
Member

KingAkeem commented Sep 3, 2018

Could you provide some more information? Here' some relevant information from our new bug request template.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

@DocKali
Copy link
Author

DocKali commented Sep 11, 2018

Hey @KingAkeem Sorry for this late answer. Here are the requested informations :

  • OS : kali-rolling
  • Browser : Firefox ESR

Hope this will help you...

@KingAkeem
Copy link
Member

The problem should no longer exists, we removed the module using python-dotenv from TorBot. Do you have any files that stlll using python-dotenv? If so then you need to perform a git pull. Does that make sense? If you take a look at the error message, it's tell you that it's an issue with dotenv but we're no longer using this so that message doesn't make sense if you have the latest version of TorBot.

@PSNAppz
Copy link
Member

PSNAppz commented Sep 15, 2018

@DocKali #119 Should fix this issue. Please let us know if the problem still exists. Thank you.

@PSNAppz PSNAppz closed this as completed Sep 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants