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

a small problem in new version 0.3.6! #38

Closed
Lagikna opened this issue May 28, 2018 · 1 comment
Closed

a small problem in new version 0.3.6! #38

Lagikna opened this issue May 28, 2018 · 1 comment

Comments

@Lagikna
Copy link
Contributor

Lagikna commented May 28, 2018

System and QuLab version:

  • win7
  • Python 3.6.3
  • QuLab 0.3.6

Steps to reproduce:

  • Code:
import lab
lab.login('lzy','12345678')

Expected behavior:

Actual behavior:

  • Crash report:
ImportError                               Traceback (most recent call last)
<ipython-input-3-6a894e955054> in <module>()
----> 1 import lab
      2 lab.login('lzy','12345678')

b:\winpython-64bit-3.6.3.0qt5\python-3.6.3.amd64\lib\site-packages\lab\__init__.py in <module>()
----> 1 from . import admin, util, waveform
      2 from ._app import (Application, Sweep, exportApps, getAppClass, importApps,
      3                    make_app)
      4 from ._bootstrap import (connect_db, get_current_notebook, get_current_user,
      5                          get_inputCells, listApps, listOneApp, listDrivers,

b:\winpython-64bit-3.6.3.0qt5\python-3.6.3.amd64\lib\site-packages\lab\admin.py in <module>()
      1 import getpass
      2 
----> 3 from . import _bootstrap, db
      4 
      5 

b:\winpython-64bit-3.6.3.0qt5\python-3.6.3.amd64\lib\site-packages\lab\_bootstrap.py in <module>()
     10 from mongoengine.connection import connect, disconnect
     11 
---> 12 from . import _importer, db, ui
     13 from .config import config
     14 

b:\winpython-64bit-3.6.3.0qt5\python-3.6.3.amd64\lib\site-packages\lab\_importer.py in <module>()
      5 import sys
      6 
----> 7 from lab.config import caches_dir
      8 
      9 from . import db

ImportError: cannot import name 'caches_dir'
@Lagikna
Copy link
Contributor Author

Lagikna commented May 29, 2018

lab.config里加上导入caches_dir就可以了

@Lagikna Lagikna closed this as completed May 29, 2018
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