Monday, April 3, 2017

Re: Cannot install channels

I would add that the required package could be "python3.6-dev" if you're working with Python 3.6.

On Friday, February 10, 2017 at 8:16:17 AM UTC+1, Robin Lery wrote:
Yes. That might have been the problem. Thank you once again!

On Fri, Feb 10, 2017 at 12:43 PM, Andrew Godwin <and...@aeracode.org> wrote:
I'm afraid I can't help without looking at the machine directly - I would suspect that either it had a version of Twisted pre-installed on the system that it was happy with (the more recent releases increased the Twisted version requirement), or the version of Twisted it downloaded did not require compilation.

Andrew

On Thu, Feb 9, 2017 at 11:10 PM, Robin Lery <robi...@gmail.com> wrote:
Yes that was it. Thank you. Could you please help me understand why this might have worked before in a earlier different virtual env in the same vagrant machine?

On Fri, Feb 10, 2017 at 12:28 PM, Andrew Godwin <and...@aeracode.org> wrote:
You don't have the Python development headers installed for your system - you can tell this because of this line in the error:

src/twisted/test/raiser.c:4:20: fatal error: Python.h: No such file or directory

If you install your distribution's python header package (e.g. on ubuntu it's python-dev) it should resolve the error.

Andrew

On Thu, Feb 9, 2017 at 10:51 PM, Robin Lery <robi...@gmail.com> wrote:
Hi,

I already had a django channels in my other virtual env. But since its an older version of channels (0.7.0) I am trying to install a new channel version into my project which is in a different virtual environment inside a a vagrant box.

I created a new virtualenv
$ mkvirtualenv newsapp

Install django
$ pip install django

Install channels
$ pip install -U channels

Then I am getting error:

Command "/home/vagrant/Envs/newsapp/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-IrzQ_E/twisted/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-ArjPse-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/vagrant/Envs/newsapp/include/site/python2.7/twisted" failed with error code 1 in /tmp/pip-build-IrzQ_E/twisted/

Can you please help how to solve this issue?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B4-nGpCy3g5KD9Q-UctFF3oKuVqtdfTjkW6XuTLBPiH%2BpyTsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFwN1urVA5dAAKX2M06Ftny8BE8e9uVWTXKr6LFs-5xVim6j-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B4-nGpddiY2fxD7papAQEP42f%2B43ZYOuCpXj7fjx_jCpzABXQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFwN1urSwkBVh%3Dcc4CSVOyZ-dauMvLbEq%2Bu6TXjH%2BrUG8HaH4A%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/deadb5b6-8c10-4942-9403-3d4717ba65a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment