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

CentOS7 "ImportError: No module named reposadolib" #61

Open
mvught opened this issue Jul 11, 2019 · 0 comments
Open

CentOS7 "ImportError: No module named reposadolib" #61

mvught opened this issue Jul 11, 2019 · 0 comments

Comments

@mvught
Copy link

mvught commented Jul 11, 2019

I have a clean install with the following steps:

#!/bin/bash
INSTALLLOG=/var/log/reposado.log
DATE=$(date +"%m-%d-%y %T")

#prereq checks
if ! [ $(id -u) = 0 ]; then
printf "This script must be run as root!\n"
exit 1
fi

#repo
yum install epel-release -y && yum install git -y && yum install python-pip -y

#installing the needed libraries
easy_install flask && easy_install simplejson

#Go to the root of your drive and clone the sources of Margarita to your server
cd /
mkdir margarita
git clone git://github.com/jessepeterson/margarita.git

#Move the margarita directory to /usr/local/sbin/
mv margarita/ /usr/local/sbin/

#Margarita needs to know where are stored the Reposado files
cd /usr/local/sbin/margarita
ln -s /usr/local/sbin/reposado/code/reposadolib/ .
ln -s /usr/local/sbin/reposado/code/preferences.plist .

#Firewall rule
iptables -I INPUT -p tcp --dport 8089 -j ACCEPT
iptables-save > /etc/sysconfig/iptables

#Start server
/usr/bin/python /usr/local/sbin/margarita/margarita.py

After starting I get:
Traceback (most recent call last):
File "/usr/local/sbin/margarita/margarita.py", line 17, in
from reposadolib import reposadocommon

if I commend out "reposadolib" from line 17 in the file margarita.py than it starts but is not working proper. What do I mis?

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

1 participant