https://techglimpse.com For all your Tech Needs! Fri, 01 Sep 2023 04:19:38 +0000 en-US hourly 1 https://wordpress.org/?v=5.4.6 Install_requires must be a string or list of strings – Fix Qiskit Terra installation https://techglimpse.com/install_requires-must-be-a-string-or-list-of-strings-qiskit-installation/ https://techglimpse.com/install_requires-must-be-a-string-or-list-of-strings-qiskit-installation/#respond Wed, 30 Aug 2023 12:12:32 +0000 https://techglimpse.com/?post_type=ht_kb&p=43518 Issue: I got this error – “error in qiskit-terra setup command: ‘install_requires’ must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after version specifier)” while installing Qiskit Terra in an Anaconda python environment on CentOS. Here’s the complete error message: $ pip...

The post Install_requires must be a string or list of strings – Fix Qiskit Terra installation appeared first on Techglimpse.

]]>
0
pip freeze returns an error: Permission denied: hg https://techglimpse.com/pip-freeze-returns-error-permission-denied-hg/ https://techglimpse.com/pip-freeze-returns-error-permission-denied-hg/#respond Thu, 07 Jan 2021 10:10:18 +0000 https://techglimpse.com/?post_type=ht_kb&p=42093 Used pip install -e to install a python package. As I saw lot of sympy deprecation warning in the logs, I used pip freeze to list all the packages installed on the system and its version information. However, pip freeze throwed few more errors. #pip freeze ... File "/usr/share/httpd/.conda/envs/apache_iisc_dm/lib/python3.9/site-packages/pip/_internal/vcs/versioncontrol.py", line...

The post pip freeze returns an error: Permission denied: hg appeared first on Techglimpse.

]]>
0
ModuleNotFoundError: No module named ‘IPython’ [Fix] https://techglimpse.com/module-named-ipython-error-python/ https://techglimpse.com/module-named-ipython-error-python/#comments Sun, 17 May 2020 11:28:51 +0000 https://techglimpse.com/?post_type=ht_kb&p=41946 Question: I got this error “No module named IPython” while executing a Python program. The complete error message is below. Any idea of how to fix the same? $ python san.py Traceback (most recent call last): File "san.py", line 2, in <module> from IPython import get_ipython ModuleNotFoundError: No module named...

The post ModuleNotFoundError: No module named ‘IPython’ [Fix] appeared first on Techglimpse.

]]>
2
No module named Cython and Running cythonize failed [Fix] https://techglimpse.com/runtime-error-running-cythonize-failed-no-module-named-cython/ https://techglimpse.com/runtime-error-running-cythonize-failed-no-module-named-cython/#respond Thu, 14 May 2020 12:10:29 +0000 https://techglimpse.com/?post_type=ht_kb&p=41926 I have been using Websockify to allow the browser to connect to any application or service on a Linux machine. This involves setting up Websockify server that translates the WebSockets to the normal socket and enables the traffic to follow between the client and the server. Installation of Websockify is...

The post No module named Cython and Running cythonize failed [Fix] appeared first on Techglimpse.

]]>
0
Cannot compile Python.h – Websockify installation Error https://techglimpse.com/python-error-cannot-compile-python-h/ https://techglimpse.com/python-error-cannot-compile-python-h/#respond Thu, 14 May 2020 07:04:20 +0000 https://techglimpse.com/?post_type=ht_kb&p=41929 Question: While installing Websockify, I encountered the error: SystemError: Cannot compile Python.h.  Below is the complete error #python3.6 setup.py install [...] SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel. Note: As there was no yum repository that provided Websockify binary for PPC64LE (including the remi repository), I had...

The post Cannot compile Python.h – Websockify installation Error appeared first on Techglimpse.

]]>
0
Create virtual environment for different Python versions using Conda https://techglimpse.com/create-virtual-environment-python-conda/ https://techglimpse.com/create-virtual-environment-python-conda/#respond Wed, 28 Aug 2019 01:15:49 +0000 https://techglimpse.com/?post_type=ht_kb&p=41215 In our earlier article, we had shown how to install multiple versions of python without breaking System tools and Create an Isolated environment using Virtualenv?. Here’s an another method to create virtual environment for different versions of Python – using Conda. Conda is an open-source package management system and environment management...

The post Create virtual environment for different Python versions using Conda appeared first on Techglimpse.

]]>
0
How to fix Python Installation Error while loading shared libraries: libssl.so.1.0.0? [Solved] https://techglimpse.com/python-openssl-installation-error-solution/ https://techglimpse.com/python-openssl-installation-error-solution/#respond Thu, 28 Jan 2016 21:08:04 +0000 http://techglimpse.com/?p=36915 Question: Thanks to the guide on How to compile and install Python with OpenSSL Support. However, the installation failed with an error message error while loading shared libraries: libssl.so.1.0.0 cannot open shared object file during make. According to the installation guide, I installed OpenSSL and then edited Setup.dist file to refer the OpenSSL...

The post How to fix Python Installation Error while loading shared libraries: libssl.so.1.0.0? [Solved] appeared first on Techglimpse.

]]>
0
Python Error – urllib2 URLError: urlopen error unknown url type: https [Solved] https://techglimpse.com/python-ssl-https-support-installation-error/ https://techglimpse.com/python-ssl-https-support-installation-error/#comments Wed, 27 Jan 2016 21:00:26 +0000 http://techglimpse.com/?p=36908 Question: I got this error urllib2.URLError: <urlopen error unknown url type: https> while installing packstack. After checking the program, I understood that the script is importing urllib library and uses urlretrieve function to fetch a file from https URL and it seems like the function is not able to fetch data from https URL. So I decided...

The post Python Error – urllib2 URLError: urlopen error unknown url type: https [Solved] appeared first on Techglimpse.

]]>
1
How to Install Multiple Versions of Python (2.7 and 3.5) Without breaking System tools and Create Isolated environment using Virtualenv? https://techglimpse.com/python-sandbox-install-virtualenv-linux/ https://techglimpse.com/python-sandbox-install-virtualenv-linux/#comments Thu, 21 Jan 2016 23:43:04 +0000 http://techglimpse.com/?p=36889 Today, I’m going to tell you how to install Python 2.7 and 3.5 versions on CentOS 6.4. And we are going to do this without breaking the existing Python installation (the default system installed version is 2.6.6 on CentOS 6.4) and other system tools such as yum. Well, the main...

The post How to Install Multiple Versions of Python (2.7 and 3.5) Without breaking System tools and Create Isolated environment using Virtualenv? appeared first on Techglimpse.

]]>
4
How to Solve ImportError: No module named ConfigParser? https://techglimpse.com/fix-no-module-named-import-error/ https://techglimpse.com/fix-no-module-named-import-error/#comments Fri, 08 Jan 2016 21:30:01 +0000 http://techglimpse.com/?p=36785 Question: I was stuck with an error ImportError: No module named ConfigParser when I run packstack command in CentOS. Below is the complete error message: $packstack --gen-answer-file=answers.txt Traceback (most recent call last): File "/usr/local/bin/packstack", line 4, in <module> __import__('pkg_resources').run_script('packstack==7.0.0', 'packstack') import ConfigParser ImportError: No module named 'ConfigParser' Can you tell me how to...

The post How to Solve ImportError: No module named ConfigParser? appeared first on Techglimpse.

]]>
3