question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ignore missing files

See original GitHub issue

In large projects that use dozens of third-party libraries, invariably, some library will reference a url(../../..somefile) which doesn’t exist. When running manage.py collectstatic with django-pipeline, this will result in an incredibly unhelpful error like:

ValueError: The file 'tinymce/js/tinymce/plugins/compat3x/img/icons.gif' could not be found with <pipeline.storage.PipelineCachedStorage object at 0x1ca6750>.

Not only does pipeline not mention which file attempts to include this file, searching for img/icons.gif myself results in 42 matches. Even if I could locate the issue, I can’t easily fix the missing file, since it’s a third-party library. This means pipeline is effectively blocking all my deployments because of a missing file I don’t even use.

Ideally, pipeline should report which resource is referencing a missing file and allow specifying an option to ignore it. This is very similar to the https://github.com/adamcharnock/django-pipeline-forgiving fork, although I think this would be a good idea for the main branch.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
Eonasdancommented, Oct 28, 2015

actually @karolyi I disabled all the issues. I don’t have time to work on the picker at the moment.

“No is a complete sentence”.

Guess you’ll have to get over yourself

1reaction
czuecommented, May 28, 2018

Had this same issue using lodash and (via dependency) firebug-lite. The error I was getting was

ValueError: The file 'lodash/vendor/firebug-lite/skin/xp/condBorders.png' could not be found with <django.contrib.staticfiles.storage.ManifestStaticFilesStorage object at 0x7fd3ed9b9ad0>.

And the solution as mentioned above is to run:

./manage.py collectstatic --ignore=firebug-lite
Read more comments on GitHub >

github_iconTop Results From Across the Web

Generic File Source Options - Spark 3.3.1 Documentation
ignoreMissingFiles to ignore missing files while reading data from files. Here, missing file really means the deleted file under directory after you construct ......
Read more >
How to ignore missing files when loading many CSV files in a ...
Either insert those missing file with script with no data ahead of running app or build the valid list first. Well known issue....
Read more >
diff -r option to ignore missing files
This is a request for a new switch to diff -- "ignore files that don't exist" (e.g. suppress the "Only in" message).
Read more >
Ignoring files issues in Apache Spark SQL - Waiting For Code
ignoreMissingFiles. spark.sql.files.ignoreMissingFiles property is responsible for throwing an exception when the file that is supposed to be ...
Read more >
Packing fails with FileNotFoundError despite `--ignore-missing ...
Packing fails with FileNotFoundError despite --ignore-missing-files #192. Open. grst opened this issue on Sep 20, 2021 · 2 comments · May be fixed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found