I've got this while working with Cassandra https://github.com/marionleborgne/cloudbrain/wiki/1.-Setup
~/Downloads/cloudbrain/cloudbrain/datastore$ cqlsh -f /home/user/Downloads/cloudbrain/cloudbrain/datastore/cassandra_schema.cql
Traceback (most recent call last):
File "/usr/bin/cqlsh.py", line 157, in <module>
from cqlshlib import cql3handling, cqlhandling, pylexotron, sslhandling, copy
ImportError: cannot import name sslhandling
Such error may occur when you have installed Cassandra using installator and it haven't installed required python libs. Download tar.gz archive from cassandra.apache.org/download/, extract it, go to pylib folder in it and run command in terminal
python setup.py install --user
It is possible that you'll need to reboot your system after that.
Related
Running Python3.9 on a Ubuntu Linux Box and properly went through the step installing pdfkit:
pip3 install pdfkit
sudo apt install wkhtmltopdf
Error says :
Traceback (most recent call last):
File "/home/shawn/Development/Websites/MDSova/restapi/app.py", line 8, in <module>
from messaging import Mailbox
File "/home/shawn/Development/Websites/MDSova/restapi/messaging.py", line 8, in <module>
import pdfkit
ModuleNotFoundError: No module named 'pdfkit'
The app was run inside an active environment.
I've read many responses to a similar question; however I have not run across a way to fix it. Does anyone have any suggestions?
So I am using pip through conda to install packages for python3. One package in particular, called keyboard i am running into issues with.
Specifically, If I write:
>import keyboard
>keyboard.wait('s')
I run into: ImportError: You must be root to use this library on linux.
However, if i try to run it with admin privelages opening python3 with: sudo python3 I run into the problem:
> import keyboard
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'keyboard'
Somehow the package is not recognised anymore. what is happening?
So, I'm trying to upload my python app to heroku but when I use a script with 'requests_toolbelt' it says is not found.
Here my log:
Traceback (most recent call last):
File "girl.py", line 12, in <module>
from Coffe import CoffeAPI
File "/app/CoffeAPI/__init__.py", line 29, in <module>
from requests_toolbelt import MultipartEncoder
ImportError: No module named 'requests_toolbelt'
Here my requeriments.txt:
requests-toolbelt==0.7.1
moviepy==0.2.2.11
requests==2.13.0
Do I need an specific buildpack to run 'requests_toolbelt'?
Try installing requests-toolbelt. Use below command to do that.
# pip install requests-toolbelt
Have you tried to install the package using your command line?
Navigate your command line to the path where you have python installed:
>path\easy_install.exe requests_toolbelt
or
>path\easy_install.exe requests-toolbelt
or
>path\python -m pip install requests_toolbelt
Hopefully this helps you
I had the same issue, and my solution was that
the package was installed by root user
and after changing the access properties of the files, it worked fine.
The command I specifically issued (on ubuntu-like system) was:
sudo chown $USER.$USER -R ~/.local/lib/python3.7/site-packages/
I've cloned the cortex repo and change the python path in the main file from:
#!/usr/bin/env python3
to
#!/usr/bin/python2.7
Which is what I'm running.
However, on running the application I get the below
cortex$ ./cortex pirateparty
Traceback (most recent call last):
File "./cortex", line 10, in <module>
from configparser import ConfigParser
ImportError: No module named configparser
Re-reading the above, I suspect I need to install python 3. Is this the case?
You need to install configparser library which you probably dont have in your other python enviorment, run:
pip install configparser
when I type the following on python2.5 IDLE (windows vista 32-bit)--
from pywinauto import Application
I get this error message--
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import pywinauto
ImportError: No module named pywinauto
I followed the instructions from this site, and did not get any error message during installation. What did I not get right here?
Thanks!
Do you have multiple versions of Python installed? Maybe the python.exe that was used for python.exe setup.py install is not Python 2.5. To check, open a command prompt and run python.exe -V.
If that is the problem, you need to go to the directory where you extracted the pywinauto zip file, and run C:\python25\python.exe setup.py install