Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7927069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:07:21+00:00 2026-06-03T19:07:21+00:00

I’m trying to compile some .less files using django-pipeline . When I run collectstatic

  • 0

I’m trying to compile some .less files using django-pipeline. When I run collectstatic, everything copies over correctly, and then I get this error:

Traceback (most recent call last):
  File "manage.py", line 35, in <module>
    execute_manager(settings)
  File ".../lib/python2.7/site-packages/django/core/management/__init__.py", line 459, in execute_manager
    utility.execute()
  File ".../lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ".../lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ".../lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File ".../lib/python2.7/site-packages/django/core/management/base.py", line 371, in handle
    return self.handle_noargs(**options)
  File ".../lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 163, in handle_noargs
    collected = self.collect()
  File ".../lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 119, in collect
    dry_run=self.dry_run)
  File ".../lib/python2.7/site-packages/pipeline/storage.py", line 26, in post_process
    output_file = packager.pack_stylesheets(package)
  File ".../lib/python2.7/site-packages/pipeline/packager.py", line 90, in pack_stylesheets
    variant=package.variant, **kwargs)
  File ".../lib/python2.7/site-packages/pipeline/packager.py", line 99, in pack
    paths = self.compile(package.paths)
  File ".../lib/python2.7/site-packages/pipeline/packager.py", line 93, in compile
    return self.compiler.compile(paths)
  File ".../lib/python2.7/site-packages/pipeline/compilers/__init__.py", line 34, in compile
    compiled_content = compiler.compile_file(content, finders.find(path))
  File ".../lib/python2.7/site-packages/pipeline/compilers/less.py", line 19, in compile_file
    cwd = os.path.dirname(path)
  File ".../lib64/python2.7/posixpath.py", line 120, in dirname
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'

I don’t think I’ve done anything weird with the types in my settings.py, but here’s the relevant bit of it just in case:

STATICFILES_STORAGE = "pipeline.storage.PipelineCachedStorage"

PIPELINE = True

STATICFILES_DIRS = (
    ("projectname", os.path.join(REPO_ROOT, "static")),
)

PIPELINE_COMPILERS = (
    'pipeline.compilers.coffee.CoffeeScriptCompiler',
    'pipeline.compilers.less.LessCompiler'
)

PIPELINE_JS = {
    'projectname': {
        'source_filenames': ('js/*.coffee',),
        'output_filename': 'projectname/js.js'
    }
}

PIPELINE_CSS = {
    'projectname': {
        'source_filenames': ('css/style.less',),
        'output_filename': 'projectname/css.css'
    }
}

If I replace my CSS source_filenames with a glob (ie css/*.less) I get the same result. The file is definitely where I’m telling it it is (at the very least, if I replace it with a path that I know is wrong, I get a different error). With the PIPELINE_CSS lines commented out, my CoffeeScript compiles to JS just fine. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:07:27+00:00Added an answer on June 3, 2026 at 7:07 pm

    Can you try running this :


    $ python manage.py findstatic css/style.less

    If you have this result :


    No matching file found for 'css/style.less'.

    You’re likely misconfigured staticfiles, otherwise let me know too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have thousands of HTML files to process using Groovy/Java and I need to
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.