I was trying to configure the RBTools on mac os but i am facing an issue with setting up the repo.
This is the error am getting.
ImportError: Python minor version mismatch: The Mercurial extension modules were compiled with Python 2.7.5, but Mercurial is currently using Python with sys.hexversion=33949936: Python 2.6.8 (unknown, Mar 9 2014, 22:16:00) \n', '[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]\n', ' at: /usr/bin/python\n'
I have installed RBTools v0.7.4 with python version 2.6.8 and i have python version 2.7.5 as well.
This is the complete traceback http://pastie.org/10332044
Am getting this error when i try to run the rbt setup-repo.
Any help on this would be of great help am struck with this from past one week.
I think this is a bug in the RBTools assembly. I filed this ticket for it. See more details on how I troubleshot there, but specifically, go look at /usr/local/bin/rbt and change the shebang from python2.6 to python and you should be good.
Related
I have a MacBook Pro on which I installed VirtualBox, installed Anaconda (from https://www.continuum.io), and installed OpenCV (conda install -c menpo opencv)
Executed Python:
python
Python 2.7.14 |Anaconda, Inc.| (default, Dec 7 2017, 17:05:42)
[GCC 7.2.0] on linux2
and tried to import OpenCV:
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0: undefined symbol: g_log_structured_standard
I Googled the error, but there are not many entries about that, and the ones I found were unsolved. I do not understand even what is the error about, so no clue how to solve it. I have installed Anaconda and OpenCV many times on other systems without problems.
Any idea how to solve this error?
yeah,i check that,update the lib is ok.
use the commend conda install -c anaconda glib
In Ubuntu 18.04 it seems that problem is opposite to what #VamsidharReddyGaddam was supposing.
I checked:
grep -l g_log_structured_standard /usr/lib/x86_64-linux-gnu/*glib*.so*
# and
grep -l g_log_structured_standard ~/anaconda3/lib/*glib*so*
and first find was successful and second not.
I suppose that /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0 is compiled/linked against newer libglib (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.5600.1 on ubuntu 18.04) than which one is installed by anaconda (~/anaconda3/lib/libglib-2.0.so.0.5306.0 in this moment).
So different dirty hack could "help":
mv ~/anaconda3/lib/libglib-2.0.so.0 ~/anaconda3/lib/libglib-2.0.so.0.backup
in Ubuntu 18.04. :/ (I am suspicious that it could bring different problems later!!!)
How could we fill issue at anaconda?
For me, I realized my anaconda was running on python3.7 and the python program it was referring to was in the anaconda folder, I switched to system wide python interpreter running version 3.9 and it worked for me. See if it works for your too.
I need to use Python 2.7 for my project. But after installing Python, I can't use the module yum. I have this error :
[root#nexus-chat2 .synapse]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Feb 19 2018, 14:55:04)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Do you know how can I fix that ? I use CentOS 6
The yum module is not a stock Python module. It would need to be built and installed explicitly for any version of Python you install on your system. With CentOS 6, the system Python is python 2.6 (and the yum module will be available by default).
If you wanted to make the yum module available to your Python 2.7 install, you would need to build yum against your Python 2.7 install, which may be a non-trivial task.
The simplest solutions are (a) just use Python 2.6 or (b) upgrade to a more recent distribution.
I got an issue with my following demand. First of all i'm a total newbie, so please don't be too rude with me ;) I did install Python 3.4.2 along with PyCharm once (recommendation of a friend), but found a promising tutorial now, which recommends Python 2.7.1 badly, working with the Terminal and TextWrangler --> http://learnpythonthehardway.org/book/. Somehow i didn't figure out how to uninstall 3.4.2 or switch to 2.7.1, 'cause the terminal keeps saying i'm still in 3.4.2. I did some research in the web, but got really confused and couldn't find any matching issue to mine.
Although it can be confusing, you can have both a v2.x and a 3.x version installed on your system. If you have installed a python 2.7.1 after your python 3.4.2, you should be able to run your python 2.7.1, just type python2 in place of python.
Try out :
python --version
python2 --version
to check which version are installed.
I am trying to run a yum command # yum install mod-pagespeed but I am getting this error
There was a problem importing one of the Python modules required to
run yum. The error leading to this problem was:
cannot import name Repository
Please install a package which provides this module, or verify that
the module is installed correctly.
It's possible that the above module doesn't match the current version
of Python, which is:
2.6.6 (r266:84292, Feb 22 2013, 00:00:18) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
If you cannot solve this problem yourself, please go to the yum faq
at: http://yum.baseurl.org/wiki/Faq
Your help will be greatly appreciated
Did you upgrade the Python that's running on your system? It's possible that it broke yum, as yum on older systems relied on the Python version being 2.4
Can you downgrade python back to 2.4 to get yum working again, then do an alternate install of Python to a newer version, keeping both on your system?
See this link for procedures for installing alternate versions of python:
https://github.com/h2oai/h2o-2/wiki/Installing-python-2.7-on-centos-6.3.-Follow-this-sequence-exactly-for-centos-machine-only
I cannot find any information regarding the issue I am having so here it is.
While trying to yum install php-pear (infact running yum at all) I run into this problem:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
cannot import name canCoinstall
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Nov 11 2010, 13:34:43)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
And as it says above - something to do with the module canCoinstall. Does anyone know how I can fix this?
change your python version in yum to lower,
such as:/etc/bin/yum
change
#!/usr/bin/python
to
#!/usr/bin/python2.4