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

Support Python 3 (was crm crash at startup) #20

Closed
ldevigne opened this issue May 9, 2014 · 4 comments
Closed

Support Python 3 (was crm crash at startup) #20

ldevigne opened this issue May 9, 2014 · 4 comments

Comments

@ldevigne
Copy link

ldevigne commented May 9, 2014

On gentoo, I have this issue on crm command :

File "/usr/sbin/crm", line 34
except ImportError, msg:

Syntax Error : invalid syntax

@ldevigne ldevigne closed this as completed May 9, 2014
@ldevigne ldevigne reopened this May 9, 2014
@krig
Copy link
Contributor

krig commented May 9, 2014

I'm guessing gentoo has python 3 as default. Unfortunately, we haven't had time to port crmsh to python 3 yet, so to package/run crmsh on gentoo, it'd have to be modified to run using python2 instead of the default python installation.

@krig krig changed the title crm crash at startup Support Python 3 (was crm crash at startup) May 9, 2014
@ldevigne
Copy link
Author

Hi krig, thanks for you response.
As both versions are installed on gentoo. I tried the following commands :

=> eselect python set python2.7
=> python-updater

Now, if I try crm, I have this new Error

=> crm
Fatal error:
No module named crmsh
No module named modules

Failed to start the crm shell! This is likely due to
a broken installation or a missing dependency.

If you are using a packaged version of the crm shell,
please try reinstalling the package. Also check your
PYTHONPATH and make sure that the crmsh module is
reachable.

Please file an issue describing your installation at
https://github.com/crmsh/crmsh/issues/ .

@ldevigne
Copy link
Author

OK, It is resolved here
https://bugs.gentoo.org/show_bug.cgi?id=466668

@krig
Copy link
Contributor

krig commented May 12, 2014

Excellent, thank you!

krig added a commit to krig/crmsh that referenced this issue Mar 4, 2016
krig added a commit to krig/crmsh that referenced this issue Mar 4, 2016
krig added a commit to krig/crmsh that referenced this issue Mar 4, 2016
@krig krig closed this as completed in 0dc9a21 Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants