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

ImportError: cannot import name 'Database' #285

Open
DavidDoukhan opened this issue Aug 23, 2019 · 1 comment
Open

ImportError: cannot import name 'Database' #285

DavidDoukhan opened this issue Aug 23, 2019 · 1 comment

Comments

@DavidDoukhan
Copy link

Dear maintainers,

I'm trying to test scanner framework, and I'm facing some difficulties.
It seems I cannot import the "Database" class, which is used in many files I found in examples/apps

Using the following lines of code:

from scannerpy import DeviceType, Job
from scannerpy import Database

I get this error message:

ImportError                               Traceback (most recent call last)
<ipython-input-4-20f54f22a0ce> in <module>()
      1 from scannerpy import DeviceType, Job
----> 2 from scannerpy import Database

ImportError: cannot import name 'Database'

Here are more details on my installation:

Ubuntu 16.04.6 LTS
Docker version 18.09.7, build 2d0083d

I installed scanner using the following commands:

pip install --upgrade docker-compose
wget https://raw.githubusercontent.com/scanner-research/scanner/master/docker/docker-compose.yml
docker-compose run --service-ports cpu /bin/bash

I finally launched jupyter using the following command: docker-compose up cpu

I managed to launch examples/Walkthrough.ipynb and also managed to lauch program apps/walkthroughs/grayscale_conversion.py

Any idea?

Kind regards,

@willcrichton
Copy link
Member

Hi @DavidDoukhan, some of the examples in the apps directory are a little out of date. In this case, Database was renamed to Client. Anything linked from the scanner.run webpage should be valid.

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

2 participants