I should do for my master thesisi some tutorials for administrators how to set, manage and use openstack.
On my workstation 9 I set ubuntu server x64 12.04 lts, then I try to do quick istall by devstack http://devstack.org/. I am usinh NAT.
So I typed terminal:
git clone https://github.com/openstack-dev/devstack.git
cd devstack && ./stack.sh
After runing stack.sh dscript in shows me error:
Could not open requirements file: [Errno2] No such file or directory: '*-info/requires.txt'
Storing complete log in /home/robetr/.pip/pip.log
+sudo HTTP_PROXY=HTTPS_PROXY=python setup.py develop
paython: can't open file setup.py': [Errno 2] No such file or directory
++ failed
+local r=2
+set +o xtrace
After that I tried with:
sudo
make update
make upadete & apgrade here where installing more then 250mb of new updates and so on
then I make
sudo apt-get install python-setuptools
then
sudo easy_install
sudo easy_install BeautifulSoup
sudo aptitude install python-beautifulsoup
then I actualy find setup.py in opt/stack/python-openstackclient/setup.py
Then some thing instaled, upgrade and so on. But one again ewhen I tried to run in devstack/stack.sh script in broke down.
I waste 2 days to play with this and didn't come far. Have any ideas?
Regards, Robert
Related
I'm running windows 10 with WSL ubuntu 20.04 installed but I'm definitely a newbie when it comes to binaries and linux distributions.
So I'm trying to install pylucene into one of my anaconda environments. To start, I've downloaded the source from their website, extracted, and tried to build and install JCC. I was able to succesfully run python setup.py build and python setup.py install from the anaconda prompt. I now see the JCC folders in the env site-packages folder and can import it in PyCharms.
Now, I'm attempting to make and make test/install from the ubuntu as I've struggled to do so using cmd. Whenever I run make, I run into errors where Java isn't found. However, running sudo make begins the build process. Unfortunately, towards the end, I receive "permission denied" errors related to the JCC folder:
make: execvp: /mnt/c/users/Me/anaconda3/envs/mimic-iv-dash-pylucene/Lib/site-packages/jcc-3.11-py3.9-win-amd64.egg/jcc: Permission denied
make: *** [Makefile:398: compile] Error 127
I thought sudo would give me all the permissions I needed. As the jcc folder is owned by root:root, I also tried using sudo chown and chmod but none of them seem to do anything. Any ideas?
New to MQTT and Linux world.
I am following this link to set up my Mqtt broker on Raspberry Pi 4.
after running this command
# import PackageCloud signing key
wget -O - "https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey" | sudo apt-key add -
and followed its instruction, I ran this:
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.python.sh | bash
All my pip install are failing.
for example:
$ pip3 install PyMail
Looking in indexes: https://pypi.org/simple, https://packagecloud.io/rabbitmq/rabbitmq-server/pypi/simple
Collecting PyMail
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://packagecloud.io/rabbitmq/rabbitmq-server/pypi/simple/pymail/
How can I fix it?
follow this link, complete and working commands for rmq setup:
And you can use pika for connecting ur rmq via python
https://computingforgeeks.com/how-to-install-latest-erlang-on-ubuntu-18-04-lts/
https://computingforgeeks.com/how-to-install-latest-rabbitmq-server-on-ubuntu-18-04-lts/
I have tried to remove my pip3 and re-install it.
Surprisingly, even after removal and re-installation, the error is still there~!!!
This is how I solved this problem:
I opened the pip configuration file which is located:(depending on different OS, the file could locate at different place. Mine is Raspbian Buster 10)
$HOME/.pip/pip.conf
In its content I saw this:
[global]
extra-index-url=https://packagecloud.io/rabbitmq/rabbitmq-server/pypi/simple
then I removed the packagecloud url and restarted my terminal.
problem solved.
I think some scripts in this file:
https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.python.sh
modified the pip config
I am trying to install a python project on a server where I don't have root access. I've managed to install virtualenv and pip locally, but the pip install is now failing when trying to install uwsgi (specifically trying to build wheel) with several error: Python.h: No such file or directory errors.
From what I've gathered I need to install python-dev, but as I don't have sudo access I've had to download and extract the python-dev package.
Where I'm stuck now is how to link python-dev to the python I've installed in my virtualenv.
Server details:
$ uname -a
4.9.0-12-amd64 #1 SMP Debian 4.9.210-1 (2020-01-20) x86_64 GNU/Linux
$ python --version
Python 3.5.3
First, could you ask your admin for help?
OK, let's summarize: python.h: No such file or directory looks like the C compiler could not find the necessary header files. Those files are contained in the python-dev package, but you are not permitted to install it. You have downloaded the package and extracted its files somewhere.
Now you should set the xx_PATH environment variables that gcc uses to find additional library and header files locations, see the docs and the example here for details and try the installation again.
Anyway this fixes only the first compilation error.
I am trying to use the Python SDK for the IoT Hub by running the example code: "SimulatedDevice.py" but the code breaks on the same exception on 3 different raspbian devices as well as my PyCharm environment.
In trying to run the SimulatedDevice.py example on my Raspberry Pi, the code always breaks with an:
"ImportError: libboost_python-py27.so.1.62.0: cannot open shared object file: No such file or directory"
initial error: "import iothub_client"
I have pip installed the azure-iothub-device-client as well as confirmed the version is python2.7 even trying to reinstall python. This is curious as when I run the exact same file on my Windows CMD the SimulatedDevice.py example code functions fine, it's only in the Python terminal and on the Raspberry Pi do I get this error.
As said in this great post
1st solution
are you running raspbian stretch or jessie? You probably want stretch now. it's the latest stable and that's the one we're testing against
is the libboost-python1.62.0 package installed? if not you can install it with: apt-get install libboost-python1.62.0
2nd solution
A user [ko5win] in that link with your same problem confirmed that a fresh raspberry pi with stretch and the proper version of libboost solved the pip version issue
Another user [sergiomfsilva] gives an alternative procedure:
Environment
OS and version used
Linux raspberrypi 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l GNU/Linux
Python runtime used: Python 3.5.3
SDK version used: 1.3.1
Workaround steps used
Get images and prepare to do the work:
get last Raspbian Lite Image
flash microSD card for Raspberry Pi3
boot with raspberry pi
login with pi user
make the command
sudo su
go to root folder
cd /root
Update the system and make some time checks
Do the next commands:
apt-get update && apt-get upgrade
apt-get install ntp
Check the RPI date with the command
date
After date ok all its ready
Note: Configure ntp.conf file if date issues found
Install required packages and review the error reported
Install required packages
apt-get install -y git cmake build-essential curl libcurl4-openssl-dev libssl-dev uuid-dev python3-pip
SDK cloning
git clone --recursive https://github.com/Azure/azure-iot-sdk-python.git
Install device client package using pip3
pip3 install azure-iothub-device-client
Go to samples folder
cd azure-iot-sdk-python/device/samples/
Run the sample code
python3 iothub_client_sample.py
The error must be the same:
Traceback (most recent call last): File
"iothub_client_sample.py", line 10, in import
iothub_client File
"/usr/local/lib/python3.5/dist-packages/iothub_client/init.py",
line 1, in from .iothub_client import *
ImportError: libboost_python-py34.so.1.55.0: cannot open shared object
file: No such file or directory
Build new libraries and apply it
Go to building folder for linux
cd /root/azure-iot-sdk-python/build_all/linux
Run Setup
./setup.sh --python-version 3.5
Replace openssl dev with gnutls dev already reported like solution for a curl out of memory issue
apt remove libcurl4-openssl-dev
apt install libcurl4-gnutls-dev
build libraries
./build.sh --build-python 3.5
Go to root folder
cd /root
Move created library to python iothub_client path
mv azure-iot-sdk-python/device/samples/iothub_client.so /usr/local/lib/python3.5/dist-packages/iothub_client/iothub_client.so
Go to samples folder
cd azure-iot-sdk-python/device/samples/
Run the sample code
python3 iothub_client_sample.py
This solves the issue found and works in the raspberry. This did not solve this issue because it is related with the pip package. To solve a new pip package with library and python version updated
I want to install OpenERP v7 on Mac OS X. How can I install it?
I tried to install it brew install postgresql I succeed to install postgresql but when I create the user with following command createuser openerpI got the error like
createuser:command not found I also got an error when I type psql.
Note: OpenERP is now called Odoo.
Make sure you have brew installed.
brew install postgresql
postgres -D /usr/local/var/postgres or launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
createdb odootest (not really needed if you use sample data)
git clone https://github.com/odoo/odoo.git, the repo is 500MB big so this takes a while
cd odoo
git checkout origin/7.0 switch to 7.0 branch (this should be a better command because it leaves me in detached head, please edit)
sudo python setup.py install, this will also install many dependencies with easy_install, ignore all the warnings
python openerp-server -s to start with sample data generated by odoo. If you
I also had to sudo easy_install pyPdf but I'm not sure if that's because I first tried the master branch. If you experience errors for missing libraries simply easy_install them.
Install PostgreSQL
Create a user for OpenERP
Install all dependencies for Python, using brew or MacPorts
Download OpenERP and extract it
Run the following command: cd openerp; python openerp-server