Coder Social home page Coder Social logo

Comments (4)

jrief avatar jrief commented on July 22, 2024

so you're using Python3, hmmm...
Did you install python-pandoc? If not, I'm sure its a stupid Py2-Py3 incompatibility. If you can fix it please send me a PR, I'm still using Py2. Try out with with open(filename, 'rb') or with open(filename, 'r'). Not sure how Py3 reads text files.

Should I use django-sass-processor or should I search for another project?

If you like it, please go ahead and star the project. I currently am using it for all of my new projects and I certainly will do so in the future. Its currently downloaded >1000 times per month from PyPI, so it seems to be useful.

from django-sass-processor.

sedrubal avatar sedrubal commented on July 22, 2024

Ah ok you're right: When I install pandoc (via apt or dnf) and pypandoc (>=1.1.2 via pip3), it's working.
And with this patch it seems to work, too:

diff --git a/setup.py b/setup.py
index aaae259..1711877 100644
--- a/setup.py
+++ b/setup.py
@@ -7,8 +7,8 @@ try:
     from pypandoc import convert
 except ImportError:
     def convert(filename, fmt):
-        with open(filename) as fd:
-            return fd.read()
+        with open(filename, 'rb') as fd:
+            return str(fd.read())


 CLASSIFIERS = [

Unfortunately I don't know how to handle encodings correctly... I'll make a PR anyway 😄

I am currently using it for all of my new projects and I certainly will do so in the future.

Great 👍

from django-sass-processor.

Zagrebelin avatar Zagrebelin commented on July 22, 2024

You can just repace funny quotes in readme.md around Compas and SASS

With this tool, you can safely remove your Ruby installations “Compass” and “SASS” from your Django)

to plain " double quote.

from django-sass-processor.

sedrubal avatar sedrubal commented on July 22, 2024

@jrief Thanks for merging 😃 When are you planning to update the pypi repo?

@Zagrebelin lol 😄

from django-sass-processor.

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.