okpy / ok

ok.py supports programming projects by running tests, tracking progress, and assisting in debugging.
Apache License 2.0
331 stars 83 forks source link

ModuleNotFoundError: No module named 'client' #1380

Closed mzarei closed 4 years ago

mzarei commented 4 years ago

Last few days I was playing around with jupyterhub and okpy, and everything was working fine. Today, I opened the same notebook that I was working on a incognito mode (using different jupyterhub user) to make sure I can sign in with other account as well, but when I run

from client.api.notebook import Notebook ok = Notebook('lab01.ok') _ = ok.auth(inline=True)

I face the following error right at the first line:

ModuleNotFoundError: No module named 'client'

However, still I can sign using the same notebook (as jupyter admin) in with the account that I used to sign in in the normal window! I assume because of cookies or something like that maybe!

mzarei commented 4 years ago

I just realized I have to install okpy for each user separately! After installing for the new user it works!