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

conversion2to3_error #108

Open
palmiragomez opened this issue Jun 16, 2020 · 0 comments
Open

conversion2to3_error #108

palmiragomez opened this issue Jun 16, 2020 · 0 comments

Comments

@palmiragomez
Copy link

Updated the code format using 2to3 tool and getting these errors.
Had previously fixed the code with 0 error but came across a problem --- code once ran wouldn't start nothing would happen using both the CLI and GUI
Im writing about it now because I was able to run the code without errors. Hoping someone has come across similar issue or translated this RAT. This rat its a great project and has cool features would be nice to have an updated version.

here is error 1

Traceback (most recent call last):
File "start.py", line 14, in
from server.handler import start_server
File "/Users/name/Desktop/EvilOSX/server/handler.py", line 8, in
import urllib.parse
ImportError: No module named parse

as a SOLUTION CODED: on EvilOSX/server/handler.py
import json
import shutil
import urllib
import urllib.parse (---- not sure if this is necessary tried without got same Traceback.)

from urllib import parse
from urllib.parse import unquote_plus

try:
from urllib.parse import unquote_plus
except ImportError:
# Python2 support.
from urllib.parse import unquote_plus

2nd issue:
File "start.py", line 14, in
from server.handler import start_server
on this one everything seems ok

from server.handler import start_server

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

1 participant