GithubHelp home page GithubHelp logo

Comments (8)

lukasmonk avatar lukasmonk commented on July 18, 2024

One reason can be that the program don´t have enough permissions to create files in its folder.
To connect to kibitzers the program creates a file in the installation folder.
Other person writes me today with the same question, it is probably that something I have out of control, but the problem is I don´t know how to replicate the problem (my tests in an standard installation W8.1 64 bits + WXP 32bits are all ok).

from lucaschess.

stolowski avatar stolowski commented on July 18, 2024

I've modified recursively the permissions for LucaChess folder to allow modifications to anyone, but it didn't help. I'm running Win 10 64 bit. I installed LucaChess in a non-standard D:\Programs\LucaChess folder.

However, after reproducing the issue again I noticed a bug.kibitzer log file and it shows the following:
Traceback (most recent call last):
File "lucas.py", line 61, in
File "Code\RunKibitzer.pyo", line 1558, in run
File "Code\RunKibitzer.pyo", line 1452, in run
File "Code\RunKibitzer.pyo", line 1463, in recibe
File "Code\Util.pyo", line 432, in pop
sqlite3.OperationalError: no such table: DATOS

Regarding a potential problem with permissions (whether this applies to this bug or not), may I suggest the following:

  • use Qt's QDesktopServices::storageLocations (may be in a different class depending on major Qt version and PyQt) to find a writable directory for current user (DataLocation or Cache location look like good candidates). This is portable and flexible solution. Writing to the installation directory looks very problematic to me.
  • display an error in a popup dialog, permission issues are common enough to justify that.
  • I'd say displaying popups for all critical errors (such as the sqlite error above) would be a good idea, otherwise when users face "silent" failures, they are in the dark with no clue what happened, this will also make your life easier when they report bugs ;). The popup could just say "a critical error occurded" and point user to the log file for details.

BTW, a great piece of software, thanks for your hard work!

from lucaschess.

stolowski avatar stolowski commented on July 18, 2024

Just a minor update, I've just uninstalled LucaChess, removed its directory and installed it again and I'm still getting the exception about missing DATOS table when trying to use kibitzers.

from lucaschess.

lukasmonk avatar lukasmonk commented on July 18, 2024

Please, say me if you launch the program from sources or a portable or an installable version (and which version).
I could send you some code or binary to test.

from lucaschess.

stolowski avatar stolowski commented on July 18, 2024

I'm running the installable version 9.07c (InsLucaChess907c.exe installer).

from lucaschess.

lukasmonk avatar lukasmonk commented on July 18, 2024

I have done a little change, take into account a fast launch of the kibitzer:

library.zip

To update your program, replace this file = library.zip in the folder of lucaschess.

from lucaschess.

stolowski avatar stolowski commented on July 18, 2024

Yes, that fixes it, I tested with multiple kibitzers, thank you! Looking forward for the next release with that fix included.

from lucaschess.

lukasmonk avatar lukasmonk commented on July 18, 2024

Thank you very much.
I´ll try to publish today (?).

from lucaschess.

Related Issues (20)

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.