Giter Club home page Giter Club logo

Comments (8)

faulander avatar faulander commented on July 19, 2024

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.

from p4s.

arogl avatar arogl commented on July 19, 2024

Thanks will rollback and try

I also run Python 3.7.3 rather than 3.6.

from p4s.

faulander avatar faulander commented on July 19, 2024

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

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

from p4s.

faulander avatar faulander commented on July 19, 2024

ok, here is the correct solution:

pipenv update --python 3.7

and then:

[requires] python_version = "3.7"

just checked it with pipenv team.

from p4s.

arogl avatar arogl commented on July 19, 2024

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.

from p4s.

faulander avatar faulander commented on July 19, 2024

from p4s.

faulander avatar faulander commented on July 19, 2024

@all-contributors please add @arogl for testing

from p4s.

allcontributors avatar allcontributors commented on July 19, 2024

@faulander

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

from p4s.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.