Comments (12)
@ragonneau just a heads up for a cache breaking change in the upcoming v1.5.0 release.
from pycutest.
Great thanks for the reminder!
from pycutest.
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.
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.
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.
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.
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.
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.
@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 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 problemROSENBR
, 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 namepycutest_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.
@KenZhenLin yes it should give an error that the location does not exist.
from pycutest.
Closing as outdated due to new major release.
from pycutest.
Related Issues (20)
- I want to specify the dimension of the unconstrained optimization problem, how do I set that? HOT 8
- module 'pycutest_cache_holder.X' has no attribute 'setup' HOT 1
- error when Installing on Linux HOT 10
- Better handling of incompatible Fortran compilers
- System state isn't restored after loading failure (`FileNotFoundError`) HOT 2
- How to find problems with equality constraints only? HOT 5
- Support for ARM-based Mac HOT 2
- import_problem HOT 5
- Release of memory HOT 6
- Facing error when attempting to run the given example HOT 2
- Conversion of an array with ndim > 0 to a scalar is deprecated and will error in future
- Pycutest with Knitro solver HOT 1
- Add new CUTEst routines for the John function HOT 2
- Add missing sparse routines (sobj, sgrad)
- Compilation in parallel on macOS does not work HOT 5
- Setuptools not installed by default HOT 3
- Switch to `pyproject.toml`
- Python Headers on Ubuntu HOT 3
- Inconsistency in problem dimensions between description and problem HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycutest.