Code Monkey home page Code Monkey logo

Comments (12)

jfowkes avatar jfowkes commented on August 18, 2024 1

@ragonneau just a heads up for a cache breaking change in the upcoming v1.5.0 release.

from pycutest.

ragonneau avatar ragonneau commented on August 18, 2024 1

Great thanks for the reminder!

from pycutest.

KenZhenLin avatar KenZhenLin commented on August 18, 2024

Hi, I sometimes get this error as well, and I fix it by deleting the folder you mention.

If I do not get this error, does it mean everything works correctly?

Or, I would have to clear out my cache each time I need to run the same code, even if there is no error?

Thanks!

from pycutest.

lindonroberts avatar lindonroberts commented on August 18, 2024

You only need to delete the cache once, when you install the new version (since your previous cache files would have been compiled under an older PyCUTEst version and are incompatible with PyCUTEst>=1.5).

from pycutest.

KenZhenLin avatar KenZhenLin commented on August 18, 2024

You only need to delete the cache once, when you install the new version (since your previous cache files would have been compiled under an older PyCUTEst version and are incompatible with PyCUTEst>=1.5).

Thanks for the fast response!

from pycutest.

KenZhenLin avatar KenZhenLin commented on August 18, 2024

You only need to delete the cache once, when you install the new version (since your previous cache files would have been compiled under an older PyCUTEst version and are incompatible with PyCUTEst>=1.5).

Although I should have mentioned, if this is helpful information: I think the only version I installed is PyCUTEst 1.5.0, so I had no trouble initially. But then I got this error in one of my running programs, and I was able to fix it by deleting that folder.

from pycutest.

jfowkes avatar jfowkes commented on August 18, 2024

You only need to delete the cache once, when you install the new version (since your previous cache files would have been compiled under an older PyCUTEst version and are incompatible with PyCUTEst>=1.5).

Although I should have mentioned, if this is helpful information: I think the only version I installed is PyCUTEst 1.5.0, so I had no trouble initially. But then I got this error in one of my running programs, and I was able to fix it by deleting that folder.

Thank you, if this error re-occurs again please let us know and we will look into it.

from pycutest.

KenZhenLin avatar KenZhenLin commented on August 18, 2024

Hi, while I was trying to fix this error, I deleted my custom cache directory for my running program, but then I recreated that directory shortly. The program seems still be able to finish. Do you know if PyCUTEst created a new folder for cache when my custom directory was not there? I would like to delete the cache folder PyCUTEst if possible. Is there a way to print out the path to it? Also is it possible to print out the path to the default cache folder if I do not specify a custom one? I'm using Linux. Thanks!

from pycutest.

jfowkes avatar jfowkes commented on August 18, 2024

@KenZhenLin PyCUTEst will automatically create a new cache subdirectory for each CUTEst problem when it is first imported, the location for this will be inside $PYCUTEST_CACHE if it has been set. For example, for problem ROSENBR, PyCUTEst will automatically create the directory

$PYCUTEST_CACHE/pycutest_cache_holder/ROSENBR/

If you do not specify a custom cache directory, then pycutest_cache_holder will be created in your current working directory. To locate all the cache directories you can simply search your system for directories with the name pycutest_cache_holder.

from pycutest.

KenZhenLin avatar KenZhenLin commented on August 18, 2024

@KenZhenLin PyCUTEst will automatically create a new cache subdirectory for each CUTEst problem when it is first imported, the location for this will be inside $PYCUTEST_CACHE if it has been set. For example, for problem ROSENBR, PyCUTEst will automatically create the directory

$PYCUTEST_CACHE/pycutest_cache_holder/ROSENBR/

If you do not specify a custom cache directory, then pycutest_cache_holder will be created in your current working directory. To locate all the cache directories you can simply search your system for directories with the name pycutest_cache_holder.

Thank you! I suppose if, by mistake, $PYCUTEST_CACHE has been set to a location that does not exist, PyCUTEst will stop running and give me an error message, instead of continuing doing something else silently?

from pycutest.

jfowkes avatar jfowkes commented on August 18, 2024

@KenZhenLin yes it should give an error that the location does not exist.

from pycutest.

jfowkes avatar jfowkes commented on August 18, 2024

Closing as outdated due to new major release.

from pycutest.

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.