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

Broken Install #161

Open
MatthewMcLeod opened this issue Jun 3, 2019 · 3 comments
Open

Broken Install #161

MatthewMcLeod opened this issue Jun 3, 2019 · 3 comments

Comments

@MatthewMcLeod
Copy link

I am installing on a Unbuntu 16.04 system and the adding data script is failing. Running scripts/setup works fine but scripts/seed -f gives an error. The following is the error in console.

$ wget https://s3-us-west-2.amazonaws.com/beaverdam/db.sqlite3 -O db.sqlite3
--2019-06-03 14:37:14-- https://s3-us-west-2.amazonaws.com/beaverdam/db.sqlite3
Resolving s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)... 52.218.160.76
Connecting to s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)|52.218.160.76|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 119808 (117K) [application/octet-stream]
Saving to: ‘db.sqlite3’

db.sqlite3 100%[===================>] 117.00K 413KB/s in 0.3s

2019-06-03 14:37:15 (413 KB/s) - ‘db.sqlite3’ saved [119808/119808]

$ wget https://s3-us-west-2.amazonaws.com/beaverdam/videos/test_vid2.mp4 -O annotator/static/videos/0.mp4
--2019-06-03 14:37:15-- https://s3-us-west-2.amazonaws.com/beaverdam/videos/test_vid2.mp4
Resolving s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)... 52.218.160.76
Connecting to s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)|52.218.160.76|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2063958 (2.0M) [application/octet-stream]
Saving to: ‘annotator/static/videos/0.mp4’

annotator/static/vi 100%[===================>] 1.97M 880KB/s in 2.3s

2019-06-03 14:37:18 (880 KB/s) - ‘annotator/static/videos/0.mp4’ saved [2063958/2063958]

Traceback (most recent call last):
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 363, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 337, in execute
django.setup()
File "/usr/local/lib/python2.7/dist-packages/django/init.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 108, in populate
app_config.import_models()
File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/home/jzelek/Desktop/AnnotationTools/BeaverDam/annotator/models.py", line 49
def from_list(cls, path_to_list, *, source, host, filename_prefix=''):
^
SyntaxError: invalid syntax

When I try to continue on with scripts/serve, the localhost opens with the following error
beaverdam

The software versions are:

Python: 3.5.2
VirtualEnv: 16.4.1

@antingshen
Copy link
Owner

Looks like you're installing with python 2 instead of python 3 somehow

@MatthewMcLeod
Copy link
Author

Any idea how to get the install script to call python 3 instead of python 2?

@clayshieh
Copy link
Collaborator

The seed script assumes that you run it right after the setup script. You have two options:

  1. run the setup script before you run the seed script
  2. execute source venv/bin/activate before running the seed script

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

3 participants