Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with /releasetools/ota_from_target_files #9

Open
ishtiaque9 opened this issue Dec 22, 2013 · 4 comments
Open

Problem with /releasetools/ota_from_target_files #9

ishtiaque9 opened this issue Dec 22, 2013 · 4 comments

Comments

@ishtiaque9
Copy link

I've encountered this particular error while trying to run ota_target_from_phone.

The terminal error is given below:

Build full ota package: /home/ishtiaque/patchrom/xblade/stockrom.zip
Traceback (most recent call last):
File "/home/ishtiaque/patchrom/tools/releasetools/ota_from_target_files", line 76, in
import common
File "/home/ishtiaque/patchrom/tools/releasetools/common.py", line 42, in
OPTIONS.search_path = os.path.join(os.environ["$PORT_ROOT"], "tools");
File "/usr/lib/python2.7/UserDict.py", line 23, in getitem
raise KeyError(key)
KeyError: '$PORT_ROOT'

As you can see, it seems there's a certain issue with the $PORT_ROOT thing. Please look into it and provide solution. Do I need to edit envsetup.sh in any way?

@imanesaurus
Copy link

it seems didn't run
. build/envsetup.sh
try run it firstly and ota target from phone again

@ishtiaque9
Copy link
Author

I actually did run .build/envsetup.sh and it worked. However, I found out
this other thing. Whenever I need to run any 'make' commands or
ota_target_from_phone, I have to run the envsetup.sh each time separately.
Why is that, could you please tell me?

On Thu, Jan 2, 2014 at 6:36 PM, Firmansyah Otoluwa <[email protected]

wrote:

it seems didn't run
. build/envsetup.sh
try run it firstly and ota target from phone again


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-31450277
.

Ahmed Ishtiaque

@iBotPeaches
Copy link

You have to initialize the build environment. That is required in tons of build setups.

@ghost
Copy link

ghost commented Feb 11, 2015

I know it is late but running

source build/envsetup.sh

removed all my usues 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants