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

Error when running "from translate import Translator" #81

Open
JPH71 opened this issue Jul 16, 2021 · 0 comments
Open

Error when running "from translate import Translator" #81

JPH71 opened this issue Jul 16, 2021 · 0 comments

Comments

@JPH71
Copy link

JPH71 commented Jul 16, 2021

I am writing a plex agent which uses python 2.7 and I get the following error:

` File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-186bae04e\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\core.py", line 608, in start
self.sandbox.execute(self.init_code)

File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-186bae04e\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 256, in execute
exec(code) in self.environment

File "C:\Users\jphud\AppData\Local\Plex Media Server\Plug-ins\GEVI.bundle\Contents\Code_init_.py", line 107, in
import utils

File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-186bae04e\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 333, in import
return mod.load_module(_name)

File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-186bae04e\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 44, in load_module
module = RestrictedModule(name, path, sandbox)

File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-186bae04e\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\loader.py", line 30, in init
exec(code) in self.dict

File "C:\Users\jphud\AppData\Local\Plex Media Server\Plug-ins\GEVI.bundle\Contents\Code\utils.py", line 17, in
from translate import Translator

File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-186bae04e\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 345, in import
raise e

ImportError: cannot import name request
`

Please help! It is failing on this line
from translate import Translator

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