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

further errors #13

Closed
arogl opened this issue Jan 21, 2020 · 8 comments
Closed

further errors #13

arogl opened this issue Jan 21, 2020 · 8 comments
Assignees
Labels
bug Something isn't working fixed Issue is fixed

Comments

@arogl
Copy link
Contributor

arogl commented Jan 21, 2020

arogl@MSI-GE62 H:\Git\P4S
$ pipenv install
Warning: Your Pipfile requires python_version 3.6, but you are using 3.7.3 (C:\Users\arogl\.\P\S\python.exe).
  $ pipenv --rm and rebuilding the virtual environment may resolve the issue.
  $ pipenv check will surely fail.
Installing dependencies from Pipfile.lock (2b1daf)…
  ================================ 21/21 - 00:00:04
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.

arogl@MSI-GE62 H:\Git\P4S
$ pipenv run
arogl@MSI-GE62 H:\Git\P4S
$ cd src

arogl@MSI-GE62 H:\Git\P4S\src
$ pipenv run python manage.py migrate
Warning: Your Pipfile requires python_version 3.6, but you are using 3.7.3 (C:\Users\arogl\.\P\S\python.exe).
  $ pipenv --rm and rebuilding the virtual environment may resolve the issue.
  $ pipenv check will surely fail.
Python-dotenv could not parse statement starting at line 8
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, newshows, sessions
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying auth.0010_alter_group_name_max_length... OK
  Applying auth.0011_update_proxy_permissions... OK
  Applying newshows.0001_initial... OK
  Applying newshows.0002_setting_profile... OK
  Applying newshows.0003_setting_addmonitored... OK
  Applying newshows.0004_auto_20200112_1950... OK
  Applying sessions.0001_initial... OK

arogl@MSI-GE62 H:\Git\P4S\src
$ pipenv run python manage.py loaddata settings.json
Warning: Your Pipfile requires python_version 3.6, but you are using 3.7.3 (C:\Users\arogl\.\P\S\python.exe).
  $ pipenv --rm and rebuilding the virtual environment may resolve the issue.
  $ pipenv check will surely fail.
Python-dotenv could not parse statement starting at line 8
Installed 1 object(s) from 1 fixture(s)

arogl@MSI-GE62 H:\Git\P4S\src
$ pipenv run python manage.py firstrun
Warning: Your Pipfile requires python_version 3.6, but you are using 3.7.3 (C:\Users\arogl\.\P\S\python.exe).
  $ pipenv --rm and rebuilding the virtual environment may resolve the issue.
  $ pipenv check will surely fail.
Python-dotenv could not parse statement starting at line 8
2020-01-21 11:47:00,149 INFO [newshows.helpers:27] Trying http://127.0.0.1:8989/api/system/status/?apikey=ee480c7c174a4d628ee951a6a5ee3bd0
2020-01-21 11:47:00,161 INFO [newshows.helpers:64] Connection to Sonarr established.
Successfully connected to Sonarr
2020-01-21 11:47:00,162 INFO [newshows.management.commands.firstrun:29] Empty db found.
2020-01-21 11:47:00,163 INFO [newshows.management.commands.firstrun:31] Initial Setup starting.

arogl@MSI-GE62 H:\Git\P4S\src
$ pipenv run python manage.py runserver
Warning: Your Pipfile requires python_version 3.6, but you are using 3.7.3 (C:\Users\arogl\.\P\S\python.exe).
  $ pipenv --rm and rebuilding the virtual environment may resolve the issue.
  $ pipenv check will surely fail.
Python-dotenv could not parse statement starting at line 8
Python-dotenv could not parse statement starting at line 8
2020-01-21 11:47:10,578 INFO [django.utils.autoreload:598] Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
January 21, 2020 - 11:47:10
Django version 3.0.2, using settings 'new_shows.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
2020-01-21 11:47:15,151 INFO [django.server:157] "GET /settings/ HTTP/1.1" 200 3704
2020-01-21 11:47:18,825 INFO [newshows.helpers:27] Trying http://127.0.0.1:8989/api/history/?apikey=ee480c7c174a4d628ee951a6a5ee3bd0
2020-01-21 11:47:19,028 INFO [newshows.helpers:44] History from Sonarr fetched.
2020-01-21 11:47:19,029 INFO [newshows.helpers:51] [{'episode': 'Pequenas.Coincidencias.S01E08.WEBRip.x264-ION10', 'date': DateTime(2020, 1, 20, 22, 53, 35, 366981, tzinfo=Timezone('+00:00'))}, {'episode': 'Pequenas.Coincidencias.S01E07.WEBRip.x264-ION10', 'date': DateTime(2020, 1, 20, 22, 53, 22, 44983, tzinfo=Timezone('+00:00'))}, {'episode': 'Pequenas.Coincidencias.S01E06.WEBRip.x264-ION10', 'date': DateTime(2020, 1, 20, 22, 53, 5, 381990, tzinfo=Timezone('+00:00'))}, {'episode': 'Pequenas.Coincidencias.S01E04.WEBRip.x264-ION10', 'date': DateTime(2020, 1, 20, 22, 52, 53, 40982, tzinfo=Timezone('+00:00'))}, {'episode': 'Pequenas.Coincidencias.S01E03.WEBRip.x264-ION10', 'date': DateTime(2020, 1, 20, 22, 52, 40, 461980, tzinfo=Timezone('+00:00'))}, {'episode': 'Pequenas.Coincidencias.S01E02.WEBRip.x264-ION10', 'date': DateTime(2020, 1, 20, 22, 52, 28, 310980, tzinfo=Timezone('+00:00'))}, {'episode': 'Pequenas.Coincidencias.S01E01.WEBRip.x264-ION10', 'date': DateTime(2020, 1, 20, 22, 52, 11, 183979, tzinfo=Timezone('+00:00'))}, {'episode': 'Batwoman.S01E10.720p.x265-ZMNT', 'date': DateTime(2020, 1, 20, 20, 52, 34, 499806, tzinfo=Timezone('+00:00'))}, {'episode': 'D:\\TV Shows\\Batwoman\\Season 01\\Batwoman - S01E10 - How Queer Everything is Today!.mkv', 'date': DateTime(2020, 1, 20, 20, 52, 30, 675799, tzinfo=Timezone('+00:00'))}, {'episode': 'Batwoman.S01E10.720p.x265-ZMNT', 'date': DateTime(2020, 1, 20, 20, 38, 29, 184798, tzinfo=Timezone('+00:00'))}]
2020-01-21 11:47:19,041 INFO [django.server:157] "GET /downloads/ HTTP/1.1" 200 3993
C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\views\generic\list.py:88: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'newshows.models.Show'> QuerySet.
  allow_empty_first_page=allow_empty_first_page, **kwargs)
2020-01-21 11:47:21,577 INFO [django.server:157] "GET /shows/ HTTP/1.1" 200 9619

Aborted!

arogl@MSI-GE62 H:\Git\P4S\src
$ pipenv run python manage.py run_huey
Warning: Your Pipfile requires python_version 3.6, but you are using 3.7.3 (C:\Users\arogl\.\P\S\python.exe).
  $ pipenv --rm and rebuilding the virtual environment may resolve the issue.
  $ pipenv check will surely fail.
Python-dotenv could not parse statement starting at line 8
[2020-01-21 11:49:17,977] INFO:huey.consumer:MainThread:Huey consumer started with 1 thread, PID 26508 at 2020-01-21 01:49:17.977784
2020-01-21 11:49:17,977 INFO [huey.consumer:360] Huey consumer started with 1 thread, PID 26508 at 2020-01-21 01:49:17.977784
[2020-01-21 11:49:17,978] INFO:huey.consumer:MainThread:Scheduler runs every 1 second(s).
2020-01-21 11:49:17,978 INFO [huey.consumer:362] Scheduler runs every 1 second(s).
[2020-01-21 11:49:17,979] INFO:huey.consumer:MainThread:Periodic tasks are enabled.
2020-01-21 11:49:17,979 INFO [huey.consumer:364] Periodic tasks are enabled.
[2020-01-21 11:49:17,980] INFO:huey.consumer:MainThread:The following commands are available:
+ newshows.helpers.HelperUpdateSonarr
+ newshows.helpers.HelperUpdateTVMaze
+ huey.api.inner
+ newshows.helpers.HelperUpdateShows
+ newshows.helpers.helperGetSonarrProfiles
2020-01-21 11:49:17,980 INFO [huey.consumer:370] The following commands are available:
+ newshows.helpers.HelperUpdateSonarr
+ newshows.helpers.HelperUpdateTVMaze
+ huey.api.inner
+ newshows.helpers.HelperUpdateShows
+ newshows.helpers.helperGetSonarrProfiles
[2020-01-21 11:49:17,988] INFO:huey:Worker-1:Executing huey.api.inner: 7f9204c7-82e6-4e4a-bdbf-2255a3f7d6c5
2020-01-21 11:49:17,988 INFO [huey:327] Executing huey.api.inner: 7f9204c7-82e6-4e4a-bdbf-2255a3f7d6c5
[2020-01-21 11:49:17,989] INFO:huey:Worker-1:huey.api.inner: 7f9204c7-82e6-4e4a-bdbf-2255a3f7d6c5 executed in 0.001s
2020-01-21 11:49:17,989 INFO [huey:364] huey.api.inner: 7f9204c7-82e6-4e4a-bdbf-2255a3f7d6c5 executed in 0.001s
[2020-01-21 11:49:17,989] ERROR:huey.consumer.Worker:Worker-1:Unhandled error during execution of task 7f9204c7-82e6-4e4a-bdbf-2255a3f7d6c5.
Traceback (most recent call last):
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\consumer.py", line 102, in loop
    self.huey.execute(task, now)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 329, in execute
    return self._execute(task, timestamp)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 378, in _execute
    self.put_result(task.id, task_value)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 293, in put_result
    return self.storage.put_data(key, self.serializer.serialize(data),
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\serializer.py", line 62, in serialize
    data = self._serialize(data)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\serializer.py", line 56, in _serialize
    return pickle.dumps(data, pickle.HIGHEST_PROTOCOL)
TypeError: can't pickle _ConnectionLocal objects
2020-01-21 11:49:17,989 ERROR [huey.consumer.Worker:105] Unhandled error during execution of task 7f9204c7-82e6-4e4a-bdbf-2255a3f7d6c5.
Traceback (most recent call last):
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\consumer.py", line 102, in loop
    self.huey.execute(task, now)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 329, in execute
    return self._execute(task, timestamp)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 378, in _execute
    self.put_result(task.id, task_value)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 293, in put_result
    return self.storage.put_data(key, self.serializer.serialize(data),
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\serializer.py", line 62, in serialize
    data = self._serialize(data)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\serializer.py", line 56, in _serialize
    return pickle.dumps(data, pickle.HIGHEST_PROTOCOL)
TypeError: can't pickle _ConnectionLocal objects
[2020-01-21 11:49:18,017] INFO:huey:Worker-1:Executing newshows.helpers.HelperUpdateTVMaze: c3c79857-b88f-4eaf-a767-4efe62dad713
2020-01-21 11:49:18,017 INFO [huey:327] Executing newshows.helpers.HelperUpdateTVMaze: c3c79857-b88f-4eaf-a767-4efe62dad713
2020-01-21 11:49:18,020 INFO [newshows.helpers:27] Trying http://api.tvmaze.com/shows?page=0
2020-01-21 11:49:22,091 INFO [newshows.helpers:194] New show added: Under the Dome
2020-01-21 11:49:23,654 INFO [newshows.helpers:194] New show added: Person of Interest
2020-01-21 11:49:25,441 INFO [newshows.helpers:194] New show added: Bitten
2020-01-21 11:49:26,994 INFO [newshows.helpers:194] New show added: Arrow
2020-01-21 11:49:28,325 INFO [newshows.helpers:194] New show added: True Detective
2020-01-21 11:49:29,579 INFO [newshows.helpers:194] New show added: The 100
2020-01-21 11:49:30,810 INFO [newshows.helpers:194] New show added: Homeland
2020-01-21 11:49:31,964 INFO [newshows.helpers:194] New show added: Glee
2020-01-21 11:49:33,173 INFO [newshows.helpers:194] New show added: Revenge

Added about 20 shows

2020-01-21 11:50:13,790 INFO [newshows.helpers:194] New show added: Brooklyn Nine-Nine
2020-01-21 11:50:14,879 INFO [newshows.helpers:194] New show added: The Lottery
2020-01-21 11:50:16,454 INFO [newshows.helpers:194] New show added: The Knick
2020-01-21 11:50:17,429 INFO [newshows.helpers:194] New show added: How to Get Away with Murder
[2020-01-21 11:50:17,978] INFO:huey.consumer.Scheduler:Scheduler:Enqueueing periodic task newshows.helpers.HelperUpdateSonarr: c9bf6884-8aa4-4c0d-88e7-6ce851a129e5.
2020-01-21 11:50:17,978 INFO [huey.consumer.Scheduler:163] Enqueueing periodic task newshows.helpers.HelperUpdateSonarr: c9bf6884-8aa4-4c0d-88e7-6ce851a129e5.
[2020-01-21 11:50:17,980] INFO:huey.consumer.Scheduler:Scheduler:Enqueueing periodic task newshows.helpers.helperGetSonarrProfiles: 33836246-4275-4b8f-bac2-1a412d314fe7.
2020-01-21 11:50:17,980 INFO [huey.consumer.Scheduler:163] Enqueueing periodic task newshows.helpers.helperGetSonarrProfiles: 33836246-4275-4b8f-bac2-1a412d314fe7.
2020-01-21 11:50:18,605 INFO [newshows.helpers:194] New show added: Nashville
2020-01-21 11:50:19,759 INFO [newshows.helpers:194] New show added: Legends
2020-01-21 11:50:20,780 INFO [newshows.helpers:194] New show added: Red Band Society
2020-01-21 11:50:21,689 INFO [newshows.helpers:194] New show added: Chicago P.D.
2020-01-21 11:50:22,466 INFO [newshows.helpers:194] New show added: black-ish
2020-01-21 11:50:23,366 INFO [newshows.helpers:194] New show added: New Girl
2020-01-21 11:50:24,186 INFO [newshows.helpers:194] New show added: Chicago Fire

added about 190 shows in total

2020-01-21 11:53:18,178 INFO [newshows.helpers:194] New show added: Long Shadow
2020-01-21 11:53:19,098 INFO [newshows.helpers:194] New show added: The Colbert Report
2020-01-21 11:53:19,944 INFO [newshows.helpers:194] New show added: Transporter: The Series
2020-01-21 11:53:20,732 INFO [newshows.helpers:194] New show added: The Daily Show with Jon Stewart
[2020-01-21 11:53:21,109] ERROR:huey:Worker-1:Unhandled exception in task c3c79857-b88f-4eaf-a767-4efe62dad713.
Traceback (most recent call last):
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\options.py", line 581, in get_field
    return self.fields_map[field_name]
KeyError: 'page'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 345, in _execute
    task_value = task.execute()
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 697, in execute
    return func(*args, **kwargs)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\contrib\djhuey\__init__.py", line 132, in inner
    return fn(*args, **kwargs)
  File "H:\Git\P4S\src\newshows\helpers.py", line 202, in HelperUpdateTVMaze
    q = Show.objects.filter(Q(pk=1)).update(page=page)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\query.py", line 748, in update
    query.add_update_values(kwargs)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\sql\subqueries.py", line 117, in add_update_values
    field = self.get_meta().get_field(name)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\options.py", line 583, in get_field
    raise FieldDoesNotExist("%s has no field named '%s'" % (self.object_name, field_name))
django.core.exceptions.FieldDoesNotExist: Show has no field named 'page'
2020-01-21 11:53:21,109 ERROR [huey:360] Unhandled exception in task c3c79857-b88f-4eaf-a767-4efe62dad713.
Traceback (most recent call last):
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\options.py", line 581, in get_field
    return self.fields_map[field_name]
KeyError: 'page'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 345, in _execute
    task_value = task.execute()
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 697, in execute
    return func(*args, **kwargs)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\contrib\djhuey\__init__.py", line 132, in inner
    return fn(*args, **kwargs)
  File "H:\Git\P4S\src\newshows\helpers.py", line 202, in HelperUpdateTVMaze
    q = Show.objects.filter(Q(pk=1)).update(page=page)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\query.py", line 748, in update
    query.add_update_values(kwargs)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\sql\subqueries.py", line 117, in add_update_values
    field = self.get_meta().get_field(name)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\options.py", line 583, in get_field
    raise FieldDoesNotExist("%s has no field named '%s'" % (self.object_name, field_name))
django.core.exceptions.FieldDoesNotExist: Show has no field named 'page'
[2020-01-21 11:53:21,124] INFO:huey:Worker-1:Executing newshows.helpers.HelperUpdateSonarr: c9bf6884-8aa4-4c0d-88e7-6ce851a129e5
2020-01-21 11:53:21,124 INFO [huey:327] Executing newshows.helpers.HelperUpdateSonarr: c9bf6884-8aa4-4c0d-88e7-6ce851a129e5
[2020-01-21 11:53:21,125] INFO:huey:Worker-1:newshows.helpers.HelperUpdateSonarr: c9bf6884-8aa4-4c0d-88e7-6ce851a129e5 executed in 0.000s
2020-01-21 11:53:21,125 INFO [huey:364] newshows.helpers.HelperUpdateSonarr: c9bf6884-8aa4-4c0d-88e7-6ce851a129e5 executed in 0.000s
[2020-01-21 11:53:21,126] INFO:huey:Worker-1:Executing newshows.helpers.helperGetSonarrProfiles: 33836246-4275-4b8f-bac2-1a412d314fe7
2020-01-21 11:53:21,126 INFO [huey:327] Executing newshows.helpers.helperGetSonarrProfiles: 33836246-4275-4b8f-bac2-1a412d314fe7
2020-01-21 11:53:21,127 INFO [newshows.helpers:27] Trying http://127.0.0.1:8989/api/profile/?apikey=ee480c7c174a4d628ee951a6a5ee3bd0
[2020-01-21 11:53:21,819] INFO:huey:Worker-1:newshows.helpers.helperGetSonarrProfiles: 33836246-4275-4b8f-bac2-1a412d314fe7 executed in 0.692s
2020-01-21 11:53:21,819 INFO [huey:364] newshows.helpers.helperGetSonarrProfiles: 33836246-4275-4b8f-bac2-1a412d314fe7 executed in 0.692s
^C
arogl@MSI-GE62 H:\Git\P4S\src

During the runserver section, I can see the default settings have been loaded, no shows and query the last downloads

@faulander
Copy link
Owner

Looks like a problem with pipenv. I am on a business trip the next 2 days, so i cannot check it. If you need it running, reverse to an earlier commit. I‘ll look into it on friday.

@arogl
Copy link
Contributor Author

arogl commented Jan 21, 2020

Thanks will rollback and try

I also run Python 3.7.3 rather than 3.6.

@faulander
Copy link
Owner

change "pipfile":
[requires] python_version >= "3.6"

if it works, make a cr and i'll merge it.

@faulander faulander self-assigned this Jan 21, 2020
@faulander
Copy link
Owner

ok, here is the correct solution:

pipenv update --python 3.7

and then:

[requires] python_version = "3.7"

just checked it with pipenv team.

@arogl
Copy link
Contributor Author

arogl commented Jan 22, 2020

I am now getting the same error again

2020-01-22 20:07:14,012 INFO [newshows.helpers:196] Show already in DB: Sorcerous Stabber Orphen
[2020-01-22 20:07:14,742] ERROR:huey:Worker-1:Unhandled exception in task 2469f3c5-3481-441e-ae13-3835ffda4298.
Traceback (most recent call last):
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\options.py", line 581, in get_field
    return self.fields_map[field_name]
KeyError: 'page'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 345, in _execute
    task_value = task.execute()
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 697, in execute
    return func(*args, **kwargs)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\contrib\djhuey\__init__.py", line 132, in inner
    return fn(*args, **kwargs)
  File "H:\Git\P4S\src\newshows\helpers.py", line 202, in HelperUpdateTVMaze
    q = Show.objects.filter(Q(pk=1)).update(page=page)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\query.py", line 748, in update
    query.add_update_values(kwargs)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\sql\subqueries.py", line 117, in add_update_values
    field = self.get_meta().get_field(name)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\options.py", line 583, in get_field
    raise FieldDoesNotExist("%s has no field named '%s'" % (self.object_name, field_name))
django.core.exceptions.FieldDoesNotExist: Show has no field named 'page'
2020-01-22 20:07:14,742 ERROR [huey:360] Unhandled exception in task 2469f3c5-3481-441e-ae13-3835ffda4298.
Traceback (most recent call last):
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\options.py", line 581, in get_field
    return self.fields_map[field_name]
KeyError: 'page'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 345, in _execute
    task_value = task.execute()
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\api.py", line 697, in execute
    return func(*args, **kwargs)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\huey\contrib\djhuey\__init__.py", line 132, in inner
    return fn(*args, **kwargs)
  File "H:\Git\P4S\src\newshows\helpers.py", line 202, in HelperUpdateTVMaze
    q = Show.objects.filter(Q(pk=1)).update(page=page)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\query.py", line 748, in update
    query.add_update_values(kwargs)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\sql\subqueries.py", line 117, in add_update_values
    field = self.get_meta().get_field(name)
  File "C:\Users\arogl\.virtualenvs\P4S-7tjkeV1a\lib\site-packages\django\db\models\options.py", line 583, in get_field
    raise FieldDoesNotExist("%s has no field named '%s'" % (self.object_name, field_name))
django.core.exceptions.FieldDoesNotExist: Show has no field named 'page'

It seems the main database is either corrupt or encrypted:

image

I then used the sqlite3 command line to open and check the database and all OK and working again.

The error occurs when running "run_huey", and the HelperUpdateTVMaze() runs and a page increment needs to be saved back to the database.

@faulander
Copy link
Owner

faulander commented Jan 22, 2020 via email

@faulander
Copy link
Owner

@all-contributors please add @arogl for testing

@allcontributors
Copy link
Contributor

@faulander

File README.md was not found in the repository (faulander/P4S).

@faulander faulander added the fixed Issue is fixed label Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed Issue is fixed
Projects
None yet
Development

No branches or pull requests

2 participants