Python Index Page 3
Python cryptography: ImportError: No module named setuptools_ext
When you install cryptography with the command `pip install cryptography --upgrade`, the following error is raised: ImportError: No module named setuptools_ext. Try to upgrade cffi with: pip install -U cffi. Check here for all steps to solve this issue.
Python Index Page 3
Python scrapy: libxml/xmlversion.h: No such file or directory
If you have the error Python cryptography: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 while installing python cryptography, try the following SOLUTION: sudo apt-get install python3 python-dev python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev python-pip. Check here for full details
Python Index Page 3
pip install error: locale.Error: unsupported locale setting
When you install a apackage with pip and you get the error: locale.Error: unsupported locale setting, try to set the locale like this: export LC_ALL=C. Check out full solution here!
Python Index Page 3
Flask: How to Test file upload
Example on how to test file upload using flask client. Check here how to do a request using the FlaskClient to simulare a file upload. You need to put a tuple in the request payload with the data types: (
Python Index Page 3
pymssql error: src/_mssql.c:568:22: fatal error: sqlfront.h: No such file or directory
When you install pymssql and you get the error: src/_mssql.c:568:22: fatal error: sqlfront.h: No such file or directory. try to install freetds-dev with apt (sudo apt install freetds-dev)
Python Index Page 3
Mongoengine: How to use filefield for storing images and files
Check here an example on how to use mongoengine filefield. Mongoengine FieldField uses GridFS to store the files, check here how to use it in your project.
Python Index Page 3
How to check internet speed on a Linux server from the terminal using cli?
We explain how to use speedtest python project to check internet speed via the terminal. We will also explain how to save historical network speed on your linux server with a very cron line. Finally we explain how to plot the generated csv data.
Python Index Page 3
Python: pip is broken. _internal module cannot be imported
The error is common after you execute "pip install pip -U" and you will see the error "ImportError: No module named _internal" everytime you execute "pip". One solution is to change the import on the pip file: **from pip import main**, change that line with **from pip._internal import main**. Check here for alternative solutions to this error.
Python Index Page 3
python pip: AttributeError: 'module' object has no attribute 'main'
If you are using pip and get the following import error: AttributeError: 'module' object has no attribute 'main' you can import main from pip._internal. Check here for the complete solution
Python Index Page 3
New tutorials version!
We just release a new version of tutorials.technology using python pelican.