I'm getting a traceback whenever trying to import pycurl, any help on solving the issue would be greatly appreciated.
Version of Python is 2.7
>>> import pycurl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/libcurl.so.4: symbol SSLv2_client_method, version OPENSSL_1.0.0 not defined in file libssl.so.1.0.0 with link time reference
On debian for me helped this:
apt-get install -y libssl-dev
Related
So, this was my first time making a python package. I tried and tested and got it to work. This meaning that pip install . didn't complain and that
$sudo python3
>>>from LEDController import prettyLight
>>>prettyLight().light('whatsapp',100)
provided expected output and actions in my LED matrix.
Also pip list includes LEDControllerm but as soon as I start python3 anywhere but in the LEDController package directory, the module is not being found.
Running pip install /path/to/LEDController/ is still successfull, as is pip3 install /path/to/LEDController/.
Yet I get
$sudo python3
>>> import LEDController
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'LEDController'
>>> from LEDController import prettyLight
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'LEDController'
What am I missing?
As #sinoroc said, installing only using pip is not the safest option. Instead using python3 -m pip install /path/to/module fixed the issue perfectly.
I'll put his link here so future viewers can read up on why this is.
It's linux, using conda to install pysam, and pip install pysam keep failing.
After successful installed pysam,
pysam shows in conda list and appears in anaconda2/pkgs/
but when import pysam in python 2.7.12, it failed by Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pysam
PLS help.
I tried many things but I could not install dbus package for python3.
I believe this command install the dbus for python3:
sudo apt-get install python3-dbus-dbg
However I still get this error:
>>> import dbus
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'dbus'
I am trying to import Yql but it throws the following error.I am using using ubuntu 10.04.
>>>import yql
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/yql/__init__.py", line 563, in <module>
class YahooToken(oauth.Token):
AttributeError: 'module' object has no attribute 'Token'
Any ideas on how to fix this?
Solved it.
There were other libraries that were messing with Yql.I removed python-oauth2,oauth2,Yql and reinstalled Yql.
sudo pip uninstall python-oauth2
sudo pip uninstall oauth2
sudo pip uninstall yql
sudo pip install yql
I need to install tkinter on debian. After some research[1][2], I noticed that Tkinter should be automatically installed with Python. However, when I try to import the module, I get the following:
>>> import tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named tkinter
When I try to import Tkinter, the error changes:
>>> import Tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 42, in <module>
raise ImportError, str(msg) + ', please install the python-tk package'
ImportError: No module named _tkinter, please install the python-tk package
So I try to install the python-tk package via apt-get. Another error comes out:
E: Failed to fetch http://ftp.us.debian.org/debian/pool/main/t/tk8.5/tk8.5_8.5.14-2_amd64.deb 404 Not Found [IP: 64.50.233.100 80]
I'm on debian sid, amd64.
It seems your packages list is out of date, first retrieve new lists of packages by:
apt-get update
And then install tk package with:
apt-get install python-tk
Or, for Python 3:
apt-get install tk
I followed Omid Raha's answer, but I had to use
apt-get update
apt-get install python3-tk
in order to get it working in python3.