Giter Club home page Giter Club logo

Comments (7)

uhurusurfa avatar uhurusurfa commented on September 24, 2024 4

apt-get install python3.7-dev - seems to be a dependency on this library and solved my issue

from django-base-template.

Alex-CodeLab avatar Alex-CodeLab commented on September 24, 2024

yes, it needs python3.6-dev when using 3.6 .

To create a virtualenv for 3.6 I think the command should be
$ python3.6 -m venv myfolder

( on my system virtualenv -p python3 installs 3.5 )

from django-base-template.

Qoyyuum avatar Qoyyuum commented on September 24, 2024

Started a new venv with your recommended command and tried to install. I didn't get any rjsmin error and that's good, but I still get the rcssmin error.

Collecting lazy-object-proxy (from astroid<2.0,>=1.6->pylint->-r requirements/local.txt (line 19))
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/65/1f/2043ec33066e779905ed7e6580384425fdc7dc2ac64d6931060c75b0c5a3/lazy_object_proxy-1.3.1-cp36-cp36m-manylinux1_x86_64.whl (55kB)
    100% |████████████████████████████████| 61kB 1.7MB/s 
Installing collected packages: django-appconf, rcssmin, rjsmin, django-compressor, six, webencodings, html5lib, bleach, python-memcached, sqlparse, django-debug-toolbar, urllib3, idna, certifi, chardet, requests, oauthlib, requests-oauthlib, defusedxml, python3-openid, django-allauth, Pillow, billiard, django-extensions, pycparser, cffi, bcrypt, invoke, pyasn1, asn1crypto, cryptography, pynacl, paramiko, Fabric, imagesize, snowballstemmer, pyparsing, packaging, sphinxcontrib-websupport, docutils, Pygments, MarkupSafe, Jinja2, alabaster, babel, Sphinx, nose, pbr, mock, django-nose, coverage, pep8, pyflakes, mccabe, isort, wrapt, lazy-object-proxy, astroid, pylint
  Running setup.py install for rcssmin ... error
    Complete output from command /home/username/Documents/sideprojects/django-base/myfolder/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3u8xbh0c/rcssmin/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-_plh9bwi-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/username/Documents/sideprojects/django-base/myfolder/include/site/python3.6/rcssmin:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    copying ./rcssmin.py -> build/lib.linux-x86_64-3.6
    running build_ext
    building '_rcssmin' extension
    creating build/temp.linux-x86_64-3.6
    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DEXT_MODULE=_rcssmin -UEXT_PACKAGE -I_setup/include -I/home/username/Documents/sideprojects/django-base/myfolder/include -I/usr/include/python3.6m -c rcssmin.c -o build/temp.linux-x86_64-3.6/rcssmin.o
    gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/home/username/Documents/sideprojects/django-base/myfolder/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3u8xbh0c/rcssmin/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-_plh9bwi-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/username/Documents/sideprojects/django-base/myfolder/include/site/python3.6/rcssmin" failed with error code 1 in /tmp/pip-build-3u8xbh0c/rcssmin/

from django-base-template.

Alex-CodeLab avatar Alex-CodeLab commented on September 24, 2024

(At the end of the log: redhat-hardened-cc1: No such file or directory )
some searching tells me you need to install
redhat-rpm-config

sudo dnf install redhat-rpm-config

from django-base-template.

Qoyyuum avatar Qoyyuum commented on September 24, 2024

redhat-rpm-config is already installed. Tried to redo the quick install again and it still doesn't work.

I'm on Fedora 27 4.16.12-200.fc27.x86_64

Maybe its not compatible.

from django-base-template.

Alex-CodeLab avatar Alex-CodeLab commented on September 24, 2024

that is more related to gcc .
I don't use Fedora, so I cant test it. But try to have all stuff for gcc installed. perhaps build-essential , gcc-c++ , and perhaps some other stuff.

from django-base-template.

Qoyyuum avatar Qoyyuum commented on September 24, 2024

Nope. Still doesn't work. I already had build-essential gcc-c++ installed. Error is still the same. But its fine. I'm moving on to a different django template.
If you want to continue helping with this issue in my environment, let's continue. Otherwise, close this issue.
Thanks!

from django-base-template.

Related Issues (5)

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.