ModuleNotFoundError: No module named 'knox' - solidity

I added the Django-rest-Knox into the requirement.txt then ran the "docker-compose up" command in my terminal. But, I got this error message "ModuleNotFoundError: No module named 'Knox'". Any idea, why is that?

You need to install Knox module for Django. Use this command to do it:
pip install -U django-rest-knox

I ran into the same problem and realized that I installed Django-rest-knox under virtual environment.

Related

Error when installing a python module in Linux

I am encoutering two kinds of issues while trying to install a package called Boltztrap2.
1) Trying to install Boltztrap2 using 'pip3'. However, when I punch in the command, the process goes smoothly for a while and then spits out an error :
BoltzTraP2/sphere/frontend.cpp:32:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
I did some troubleshooting and found out that it is just a path issue - I confirmed this by typing 'locate Python.h'. However, I don't get how to manually incorporate this change since the 'pip3' command that I use downloads the program and compiles it automatically. I don't seem to have access to change any scripts, or rather I do not know how to, since I'm kind of new to all this.
PS: I do not have sudo access.
2) Trying to install Boltztrap2 by manually compiling the python setup file: This seems to work fine until the system spits out an error saying:
Error:numpy is not installed.
PS: Again, I do not have sudo access.
I would be very glad if someone could help me install this package through either method. I just want to get the software to work. Thanks in advance for any assistance.
python3 -m pip install --upgrade pip
pip3 install numpy
Check if you can upgrade pip?
If that works then you can pip install numpy.

ModuleNotFoundError: No module name 'Cython'

I am trying to install pandas module on PyCharm. When i try to install it it gave me this error: "ModuleNotFoundError: No module name 'Cython' " (Screen: https://prnt.sc/qafwcy)
So i went on the CMD to try to install the Cython package with this command: py -m pip install Cython , which gave me an other error: "The script, f2py.exe is install in 'C:\xxx.xxxx, which is not a PATH. (Screen: https://prnt.sc/qafvx3)
Does anyone had the same problem and know how to fix it?
Thank you
Pycharm uses a virtual environment - one separate from your python install on your computer. This is to isolate your development environment from the one you would use on your computer.
Enter your pip commands here instead:

No module named install

Yes you read it right!
I am trying to install pygame, so I downloaded the whl file and copied it to my project's folder, in the command prompt I navigated to the folder and entered
python -m install --user pygame-1.9.2-cp35-cp35m-win32.whl
Now if you can help me here that would be really appreciated, why is the error so rare that I couldn't find it anywhere.
Python doesn't have a module called "install". The module you're looking for is probably pip.
Just type in the command prompt:
python -m pip install --user pygame-1.9.2-cp35-cp35m-win32.whl
And pygame should start being installed.

I am using odoo 8. when I install my module called Asterisk it will shows Error

Odoo Warning
Error
Unable to install module "asterisk_click2dial" because an external dependency is not met: No module named Asterisk
Ok
This error appears when you declare Asterisk as an python external dependency in __openerp__.py but the python module is not installed or does not exist.
Please look for something like this in your __openerp__.py:
'external_dependencies': {
'python': [
'Asterisk',
],
},
Either remove this code if you don't need it, or install the Asterisk module in your server if you need it.
If you are actually talking about the OCA's asterisk_click2dial module that is available here, then what you need is to install the py-Asterisk module on your server by running:
pip install py-Asterisk
Or if you already downloaded the code from Github:
pip install -r requirements.txt
Remember to use sudo if your user does not have sufficient access rights.

I am failing to install Selenium module via command line

I use Ubuntu 16.10. I tried installing Selenium module of python via the command - sudo pip3 install -U selenium. But, I am not able to install it. It is giving an unexpected error. I am sharing the screenshot of the terminal here. Please help!
Please click here for the screenshot
If you are using Ubuntu, I'd suggest checking in the package manager as it may already be there. I'm on Mint and it was already there when I loaded python (2.7 also).