All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* Trying to run toaster off master, running into issues w/ django
@ 2016-08-23 21:49 Michael Habibi
  2016-08-24 10:51 ` Ed Bartosh
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Habibi @ 2016-08-23 21:49 UTC (permalink / raw
  To: Yocto

I am running the master branch and trying to run toaster to play
around with the web interface (already successfully completed a build
w/o toaster setup).

I followed the instructions in the documentation. I created a
virtualenv, sourced/activated my virtualenv, and while under venv I
did a pip install. It believes Django is installed, but I cannot run
toaster. See below:

(venv)habibim@bvm-poc8:/projects/yocto-git/build$ pip install -r
/projects/yocto-git/bitbake/toaster-requirements.txt
Requirement already satisfied (use --upgrade to upgrade):
Django>1.8,<1.9 in /home/habibim/venv/lib/python2.7/site-packages
(from -r /projects/yocto-git/bitbake/toaster-requirements.txt (line
1))
Requirement already satisfied (use --upgrade to upgrade):
beautifulsoup4>=4.4.0 in
/home/habibim/venv/lib/python2.7/site-packages (from -r
/projects/yocto-git/bitbake/toaster-requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): pytz in
/home/habibim/venv/lib/python2.7/site-packages (from -r
/projects/yocto-git/bitbake/toaster-requirements.txt (line 3))
Cleaning up...
(venv)habibim@bvm-poc8:/projects/yocto-git/build$ python --version
Python 2.7.6

...


(venv)habibim@bvm-poc8:/projects/yocto-git$ source oe-init-build-env

### Shell environment set up for builds. ###

You can now run 'bitbake <target>'

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'
(venv)habibim@bvm-poc8:/projects/yocto-git/build$ source ../bitbake/bin/toaster
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'django'
This program needs Django>1.8,<1.9
Please install with pip install -r
/projects/yocto-git/bitbake/toaster-requirements.txt

Am I going insane? I did some google-fu and people recommended
cleaning up manage.py, but those changes did not seem to affect this
outcome.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Trying to run toaster off master, running into issues w/ django
  2016-08-23 21:49 Trying to run toaster off master, running into issues w/ django Michael Habibi
@ 2016-08-24 10:51 ` Ed Bartosh
  2016-08-24 13:51   ` Michael Habibi
  0 siblings, 1 reply; 3+ messages in thread
From: Ed Bartosh @ 2016-08-24 10:51 UTC (permalink / raw
  To: Michael Habibi; +Cc: Yocto

On Tue, Aug 23, 2016 at 04:49:42PM -0500, Michael Habibi wrote:
> I am running the master branch and trying to run toaster to play
> around with the web interface (already successfully completed a build
> w/o toaster setup).
> 
> I followed the instructions in the documentation. I created a
> virtualenv, sourced/activated my virtualenv, and while under venv I
> did a pip install. It believes Django is installed, but I cannot run
> toaster. See below:
> 
> (venv)habibim@bvm-poc8:/projects/yocto-git/build$ pip install -r
> /projects/yocto-git/bitbake/toaster-requirements.txt
> Requirement already satisfied (use --upgrade to upgrade):
> Django>1.8,<1.9 in /home/habibim/venv/lib/python2.7/site-packages
> (from -r /projects/yocto-git/bitbake/toaster-requirements.txt (line
> 1))
> Requirement already satisfied (use --upgrade to upgrade):
> beautifulsoup4>=4.4.0 in
> /home/habibim/venv/lib/python2.7/site-packages (from -r
> /projects/yocto-git/bitbake/toaster-requirements.txt (line 2))
> Requirement already satisfied (use --upgrade to upgrade): pytz in
> /home/habibim/venv/lib/python2.7/site-packages (from -r
> /projects/yocto-git/bitbake/toaster-requirements.txt (line 3))
> Cleaning up...
> (venv)habibim@bvm-poc8:/projects/yocto-git/build$ python --version
> Python 2.7.6
> 
> ...
> 
> 
> (venv)habibim@bvm-poc8:/projects/yocto-git$ source oe-init-build-env
> 
> ### Shell environment set up for builds. ###
> 
> You can now run 'bitbake <target>'
> 
> Common targets are:
>     core-image-minimal
>     core-image-sato
>     meta-toolchain
>     meta-ide-support
> 
> You can also run generated qemu images with a command like 'runqemu qemux86'
> (venv)habibim@bvm-poc8:/projects/yocto-git/build$ source ../bitbake/bin/toaster
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named 'django'
> This program needs Django>1.8,<1.9
> Please install with pip install -r
> /projects/yocto-git/bitbake/toaster-requirements.txt
> 
> Am I going insane? I did some google-fu and people recommended
> cleaning up manage.py, but those changes did not seem to affect this
> outcome.

Looks like python3 issue to me. You should install requirements with
pip3 for python3 to be able to import them.

You probably used old setup instructions. Please, read the latest manual here:
http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#toaster-manual-setup-and-use

Regards,
Ed



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Trying to run toaster off master, running into issues w/ django
  2016-08-24 10:51 ` Ed Bartosh
@ 2016-08-24 13:51   ` Michael Habibi
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Habibi @ 2016-08-24 13:51 UTC (permalink / raw
  To: ed.bartosh; +Cc: Yocto

Excellent. Thanks! I knew using latest was going to burn me eventually :)

On Wed, Aug 24, 2016 at 5:51 AM, Ed Bartosh <ed.bartosh@linux.intel.com> wrote:
> On Tue, Aug 23, 2016 at 04:49:42PM -0500, Michael Habibi wrote:
>> I am running the master branch and trying to run toaster to play
>> around with the web interface (already successfully completed a build
>> w/o toaster setup).
>>
>> I followed the instructions in the documentation. I created a
>> virtualenv, sourced/activated my virtualenv, and while under venv I
>> did a pip install. It believes Django is installed, but I cannot run
>> toaster. See below:
>>
>> (venv)habibim@bvm-poc8:/projects/yocto-git/build$ pip install -r
>> /projects/yocto-git/bitbake/toaster-requirements.txt
>> Requirement already satisfied (use --upgrade to upgrade):
>> Django>1.8,<1.9 in /home/habibim/venv/lib/python2.7/site-packages
>> (from -r /projects/yocto-git/bitbake/toaster-requirements.txt (line
>> 1))
>> Requirement already satisfied (use --upgrade to upgrade):
>> beautifulsoup4>=4.4.0 in
>> /home/habibim/venv/lib/python2.7/site-packages (from -r
>> /projects/yocto-git/bitbake/toaster-requirements.txt (line 2))
>> Requirement already satisfied (use --upgrade to upgrade): pytz in
>> /home/habibim/venv/lib/python2.7/site-packages (from -r
>> /projects/yocto-git/bitbake/toaster-requirements.txt (line 3))
>> Cleaning up...
>> (venv)habibim@bvm-poc8:/projects/yocto-git/build$ python --version
>> Python 2.7.6
>>
>> ...
>>
>>
>> (venv)habibim@bvm-poc8:/projects/yocto-git$ source oe-init-build-env
>>
>> ### Shell environment set up for builds. ###
>>
>> You can now run 'bitbake <target>'
>>
>> Common targets are:
>>     core-image-minimal
>>     core-image-sato
>>     meta-toolchain
>>     meta-ide-support
>>
>> You can also run generated qemu images with a command like 'runqemu qemux86'
>> (venv)habibim@bvm-poc8:/projects/yocto-git/build$ source ../bitbake/bin/toaster
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>> ImportError: No module named 'django'
>> This program needs Django>1.8,<1.9
>> Please install with pip install -r
>> /projects/yocto-git/bitbake/toaster-requirements.txt
>>
>> Am I going insane? I did some google-fu and people recommended
>> cleaning up manage.py, but those changes did not seem to affect this
>> outcome.
>
> Looks like python3 issue to me. You should install requirements with
> pip3 for python3 to be able to import them.
>
> You probably used old setup instructions. Please, read the latest manual here:
> http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#toaster-manual-setup-and-use
>
> Regards,
> Ed
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-24 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-23 21:49 Trying to run toaster off master, running into issues w/ django Michael Habibi
2016-08-24 10:51 ` Ed Bartosh
2016-08-24 13:51   ` Michael Habibi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.