Conan: Command Not FoundHow can I have more than one possibility in a script's shebang line?Python not recognizing LD_LIBRARY_PATH?lxml with custom install location for libxml2/libxslt doesn't find correct locationI changed my PATH and now for every command it returns “command not found”Make python file accessible from anywhere by all userscommand not found using sudo in scriptNo command 'foo' found even though 'foo' is intsalledRestore PYTHONPATH after setup.py install with PYTHONPATHcertbot and awscli require different versions of botocoresystemctl zabbix invoke sudo shell command in python scrip
Is Fable (1996) connected in any way to the Fable franchise from Lionhead Studios?
I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine
Are objects structures and/or vice versa?
Ideas for colorfully and clearly highlighting graph edges according to weights
Check if two datetimes are between two others
What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?
How do you conduct xenoanthropology after first contact?
Mapping arrows in commutative diagrams
Domain expired, GoDaddy holds it and is asking more money
I am not able to install anything in ubuntu
Latin words with no plurals in English
Manga about a female worker who got dragged into another world together with this high school girl and she was just told she's not needed anymore
Why airport relocation isn't done gradually?
Is Social Media Science Fiction?
Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?
"listening to me about as much as you're listening to this pole here"
I see my dog run
Is there a familial term for apples and pears?
Can a planet have a different gravitational pull depending on its location in orbit around its sun?
extract characters between two commas?
What is the offset in a seaplane's hull?
New order #4: World
Does the average primeness of natural numbers tend to zero?
Why is my log file so massive? 22gb. I am running log backups
Conan: Command Not Found
How can I have more than one possibility in a script's shebang line?Python not recognizing LD_LIBRARY_PATH?lxml with custom install location for libxml2/libxslt doesn't find correct locationI changed my PATH and now for every command it returns “command not found”Make python file accessible from anywhere by all userscommand not found using sudo in scriptNo command 'foo' found even though 'foo' is intsalledRestore PYTHONPATH after setup.py install with PYTHONPATHcertbot and awscli require different versions of botocoresystemctl zabbix invoke sudo shell command in python scrip
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm using a RPI 3B
uname -a returns: 4.14.98-v7+ #1200 armv71
OS is stretch
gcc version is 4.9.3
I'm attempting to setup my RPi to be a BLE gateway as per this project on hackster.io. I executed the first few commands:
git clone --recurse-submodules https://github.com/Wolkabout/WolkGateway.git
sudo apt-get install mosquitto cmake python python-pip && python -m pip install conan
The Bash Script
then I ran a bash script (configure.sh) that contains the following:
!/usr/bin/env bash
cp tools/git/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
pushd out
conan install -s compiler.libcxx=libstdc++11 --build=missing ..
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
popd
The Output of the Bash Script
the terminal outputs:
line 21: conan: command not found
line 21 is the line with conan.
Then I get a CMake error:
CMakeLists.txt:(20) (include):
include could not find load file:
/home/pi/Wolk...conanbuildinfo.cmake
Maybe Conan Isn't in My PATH
My thought was that the command conan isn't in my $PATH so I checked PIP:
pip show conan
this gave me the location of conan:
/home/pi/.local/lib/python2.7/site-packages
I then added that path to my $PATH:
export PATH=$PATH:/home/pi/.local/lib/python2.7/site-packages
This didn't work, causing the same error when re-running the aforementioned bash script (configure.sh)
Installing Conan From Source
I went here and installed conan from source:
git clone https://github.com/conan-io/conan.git
cd conan
pip install -r conans/requirements.txt
The Python Script to Add Conan to my PATH
#!/usr/bin/env python
import sys
conan_repo_path = "/home/pi/conan" # ABSOLUTE PATH TO CONAN
REPOSITORY FOLDER
sys.path.append(conan_repo_path)
from conans.client.command import main
main(sys.argv[1:])
This worked. It showed me the conan commands help output.
My Question
My question is what is this python script doing differently then when I execute configure.sh (bash script)?
shell-script python path command
add a comment |
I'm using a RPI 3B
uname -a returns: 4.14.98-v7+ #1200 armv71
OS is stretch
gcc version is 4.9.3
I'm attempting to setup my RPi to be a BLE gateway as per this project on hackster.io. I executed the first few commands:
git clone --recurse-submodules https://github.com/Wolkabout/WolkGateway.git
sudo apt-get install mosquitto cmake python python-pip && python -m pip install conan
The Bash Script
then I ran a bash script (configure.sh) that contains the following:
!/usr/bin/env bash
cp tools/git/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
pushd out
conan install -s compiler.libcxx=libstdc++11 --build=missing ..
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
popd
The Output of the Bash Script
the terminal outputs:
line 21: conan: command not found
line 21 is the line with conan.
Then I get a CMake error:
CMakeLists.txt:(20) (include):
include could not find load file:
/home/pi/Wolk...conanbuildinfo.cmake
Maybe Conan Isn't in My PATH
My thought was that the command conan isn't in my $PATH so I checked PIP:
pip show conan
this gave me the location of conan:
/home/pi/.local/lib/python2.7/site-packages
I then added that path to my $PATH:
export PATH=$PATH:/home/pi/.local/lib/python2.7/site-packages
This didn't work, causing the same error when re-running the aforementioned bash script (configure.sh)
Installing Conan From Source
I went here and installed conan from source:
git clone https://github.com/conan-io/conan.git
cd conan
pip install -r conans/requirements.txt
The Python Script to Add Conan to my PATH
#!/usr/bin/env python
import sys
conan_repo_path = "/home/pi/conan" # ABSOLUTE PATH TO CONAN
REPOSITORY FOLDER
sys.path.append(conan_repo_path)
from conans.client.command import main
main(sys.argv[1:])
This worked. It showed me the conan commands help output.
My Question
My question is what is this python script doing differently then when I execute configure.sh (bash script)?
shell-script python path command
1
@Rui F Ribeiro did you down vote my question, if so, please provide the reason so I know for next time.
– Niko_Jako
Apr 5 at 16:44
You're referring to two different paths in your shell script and your Python script. If you doexport PATH=$PATH:/home/pi/conan, does the shell script work then?
– Haxiel
Apr 5 at 17:15
@Haxiel - Thanks for the help but the output of the bash script still say conan:command not found.
– Niko_Jako
Apr 5 at 18:06
add a comment |
I'm using a RPI 3B
uname -a returns: 4.14.98-v7+ #1200 armv71
OS is stretch
gcc version is 4.9.3
I'm attempting to setup my RPi to be a BLE gateway as per this project on hackster.io. I executed the first few commands:
git clone --recurse-submodules https://github.com/Wolkabout/WolkGateway.git
sudo apt-get install mosquitto cmake python python-pip && python -m pip install conan
The Bash Script
then I ran a bash script (configure.sh) that contains the following:
!/usr/bin/env bash
cp tools/git/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
pushd out
conan install -s compiler.libcxx=libstdc++11 --build=missing ..
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
popd
The Output of the Bash Script
the terminal outputs:
line 21: conan: command not found
line 21 is the line with conan.
Then I get a CMake error:
CMakeLists.txt:(20) (include):
include could not find load file:
/home/pi/Wolk...conanbuildinfo.cmake
Maybe Conan Isn't in My PATH
My thought was that the command conan isn't in my $PATH so I checked PIP:
pip show conan
this gave me the location of conan:
/home/pi/.local/lib/python2.7/site-packages
I then added that path to my $PATH:
export PATH=$PATH:/home/pi/.local/lib/python2.7/site-packages
This didn't work, causing the same error when re-running the aforementioned bash script (configure.sh)
Installing Conan From Source
I went here and installed conan from source:
git clone https://github.com/conan-io/conan.git
cd conan
pip install -r conans/requirements.txt
The Python Script to Add Conan to my PATH
#!/usr/bin/env python
import sys
conan_repo_path = "/home/pi/conan" # ABSOLUTE PATH TO CONAN
REPOSITORY FOLDER
sys.path.append(conan_repo_path)
from conans.client.command import main
main(sys.argv[1:])
This worked. It showed me the conan commands help output.
My Question
My question is what is this python script doing differently then when I execute configure.sh (bash script)?
shell-script python path command
I'm using a RPI 3B
uname -a returns: 4.14.98-v7+ #1200 armv71
OS is stretch
gcc version is 4.9.3
I'm attempting to setup my RPi to be a BLE gateway as per this project on hackster.io. I executed the first few commands:
git clone --recurse-submodules https://github.com/Wolkabout/WolkGateway.git
sudo apt-get install mosquitto cmake python python-pip && python -m pip install conan
The Bash Script
then I ran a bash script (configure.sh) that contains the following:
!/usr/bin/env bash
cp tools/git/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
pushd out
conan install -s compiler.libcxx=libstdc++11 --build=missing ..
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
popd
The Output of the Bash Script
the terminal outputs:
line 21: conan: command not found
line 21 is the line with conan.
Then I get a CMake error:
CMakeLists.txt:(20) (include):
include could not find load file:
/home/pi/Wolk...conanbuildinfo.cmake
Maybe Conan Isn't in My PATH
My thought was that the command conan isn't in my $PATH so I checked PIP:
pip show conan
this gave me the location of conan:
/home/pi/.local/lib/python2.7/site-packages
I then added that path to my $PATH:
export PATH=$PATH:/home/pi/.local/lib/python2.7/site-packages
This didn't work, causing the same error when re-running the aforementioned bash script (configure.sh)
Installing Conan From Source
I went here and installed conan from source:
git clone https://github.com/conan-io/conan.git
cd conan
pip install -r conans/requirements.txt
The Python Script to Add Conan to my PATH
#!/usr/bin/env python
import sys
conan_repo_path = "/home/pi/conan" # ABSOLUTE PATH TO CONAN
REPOSITORY FOLDER
sys.path.append(conan_repo_path)
from conans.client.command import main
main(sys.argv[1:])
This worked. It showed me the conan commands help output.
My Question
My question is what is this python script doing differently then when I execute configure.sh (bash script)?
shell-script python path command
shell-script python path command
edited Apr 5 at 17:05
Niko_Jako
asked Apr 5 at 15:52
Niko_JakoNiko_Jako
45
45
1
@Rui F Ribeiro did you down vote my question, if so, please provide the reason so I know for next time.
– Niko_Jako
Apr 5 at 16:44
You're referring to two different paths in your shell script and your Python script. If you doexport PATH=$PATH:/home/pi/conan, does the shell script work then?
– Haxiel
Apr 5 at 17:15
@Haxiel - Thanks for the help but the output of the bash script still say conan:command not found.
– Niko_Jako
Apr 5 at 18:06
add a comment |
1
@Rui F Ribeiro did you down vote my question, if so, please provide the reason so I know for next time.
– Niko_Jako
Apr 5 at 16:44
You're referring to two different paths in your shell script and your Python script. If you doexport PATH=$PATH:/home/pi/conan, does the shell script work then?
– Haxiel
Apr 5 at 17:15
@Haxiel - Thanks for the help but the output of the bash script still say conan:command not found.
– Niko_Jako
Apr 5 at 18:06
1
1
@Rui F Ribeiro did you down vote my question, if so, please provide the reason so I know for next time.
– Niko_Jako
Apr 5 at 16:44
@Rui F Ribeiro did you down vote my question, if so, please provide the reason so I know for next time.
– Niko_Jako
Apr 5 at 16:44
You're referring to two different paths in your shell script and your Python script. If you do
export PATH=$PATH:/home/pi/conan, does the shell script work then?– Haxiel
Apr 5 at 17:15
You're referring to two different paths in your shell script and your Python script. If you do
export PATH=$PATH:/home/pi/conan, does the shell script work then?– Haxiel
Apr 5 at 17:15
@Haxiel - Thanks for the help but the output of the bash script still say conan:command not found.
– Niko_Jako
Apr 5 at 18:06
@Haxiel - Thanks for the help but the output of the bash script still say conan:command not found.
– Niko_Jako
Apr 5 at 18:06
add a comment |
1 Answer
1
active
oldest
votes
When installing conan:
sudo apt-get install mosquitto cmake python python-pip && python -m pip install conan
the later half:
python -m pip install conan
should be installed using sudo:
sudo python -m pip install conan
If this doesn't work, try uninstalling conan:
pip uninstall conan
and then reinstall:
sudo pip install conan
Currently my RPi is running the configure.sh script successfully.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510744%2fconan-command-not-found%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
When installing conan:
sudo apt-get install mosquitto cmake python python-pip && python -m pip install conan
the later half:
python -m pip install conan
should be installed using sudo:
sudo python -m pip install conan
If this doesn't work, try uninstalling conan:
pip uninstall conan
and then reinstall:
sudo pip install conan
Currently my RPi is running the configure.sh script successfully.
add a comment |
When installing conan:
sudo apt-get install mosquitto cmake python python-pip && python -m pip install conan
the later half:
python -m pip install conan
should be installed using sudo:
sudo python -m pip install conan
If this doesn't work, try uninstalling conan:
pip uninstall conan
and then reinstall:
sudo pip install conan
Currently my RPi is running the configure.sh script successfully.
add a comment |
When installing conan:
sudo apt-get install mosquitto cmake python python-pip && python -m pip install conan
the later half:
python -m pip install conan
should be installed using sudo:
sudo python -m pip install conan
If this doesn't work, try uninstalling conan:
pip uninstall conan
and then reinstall:
sudo pip install conan
Currently my RPi is running the configure.sh script successfully.
When installing conan:
sudo apt-get install mosquitto cmake python python-pip && python -m pip install conan
the later half:
python -m pip install conan
should be installed using sudo:
sudo python -m pip install conan
If this doesn't work, try uninstalling conan:
pip uninstall conan
and then reinstall:
sudo pip install conan
Currently my RPi is running the configure.sh script successfully.
answered 2 days ago
Niko_JakoNiko_Jako
45
45
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510744%2fconan-command-not-found%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
@Rui F Ribeiro did you down vote my question, if so, please provide the reason so I know for next time.
– Niko_Jako
Apr 5 at 16:44
You're referring to two different paths in your shell script and your Python script. If you do
export PATH=$PATH:/home/pi/conan, does the shell script work then?– Haxiel
Apr 5 at 17:15
@Haxiel - Thanks for the help but the output of the bash script still say conan:command not found.
– Niko_Jako
Apr 5 at 18:06