How to install PyWavelets for Python 3 on Kubuntu 14.04? - python

I'm tryting to install PyWavelets on Kubuntu 14.04, but its not working...
Since we dont have python3-pywt (we have python-pwt, for python 2) on Ubuntu oficial repositories, I tried to install it with pip, so I did:
$ sudo pip3 install pywavelets
And I've got the error:
Downloading/unpacking pywavelets
Downloading PyWavelets-0.2.2.zip (528kB): 528kB downloaded
Running setup.py (path:/tmp/pip_build_root/pywavelets/setup.py) egg_info for package pywavelets
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip_build_root/pywavelets/setup.py", line 14, in
from util import commands
File "/tmp/pip_build_root/pywavelets/util/commands.py", line 25, in
import templating
ImportError: No module named 'templating'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip_build_root/pywavelets/setup.py", line 14, in
from util import commands
File "/tmp/pip_build_root/pywavelets/util/commands.py", line 25, in
import templating
ImportError: No module named 'templating'
Any idea?

On Kubuntu 14.04 using Python 3.4, I installed the packages (for Python 3): python3-all-dev, and the respective ones related to numpy and Cython.
Then I clonned the sorce from the github repo pywt repo.
After that I was able to do:
$ python setup.py install --user
The build and install worked perfectly, so I tested if everythink was ok:
$ python3
>>> import pywt
>>> pywt.test()
. . .
OK (SKIP=1)
<nose.result.TextTestResult run=934 errors=0 failures=0>

Related

Getting an error in python setup.py install

I am trying to install keras using python setup.py install but I am getting an error like this:
Traceback (most recent call last):
File setup.py, line 1, in
from setuptools import setup
ImportError: No module named 'setuptools'
What should I do?
Install setuptools for your system / distro / python version.
https://packaging.python.org/tutorials/installing-packages/#install-pip-setuptools-and-wheel

Python 2.7 cannot install modules after El Capitan upgrade

After upgrading my MacOS to El Capita 10.11.6, I cannot run my code because of missing imports.
This one works
$ python -m pip install --user six
But this one fails to install the module.
$ sudo pip install six
Traceback (most recent call last):
File "/usr/local/bin/pip", line 6, in <module>
from pkg_resources import load_entry_point
File "/Users/mpme/Library/Python/2.7/lib/python/site-packages/pkg_resources/__init__.py", line 48, in <module>
import six
ImportError: No module named six
Could someone let me know the differences ? Why one works and the other does not?
$ python --version
Python 2.7.13

Python 2.7 Bloomberg blpapi import error on Mac OS X Sierra

After successful installation of the pybgg, when tried to run
$python test_pybbg.py
Got the following error message:
ImportError: No module named blpapi
MacBook:pfinance Allen$ which python
/Users/Allen/anaconda/bin/python
MacBook:pfinance Allen$ python test_pybbg.py
Traceback (most recent call last):
File "test_pybbg.py", line 2, in
import pybbg
File "/Users/Allen/anaconda/lib/python2.7/site-packages/pybbg/init.py", line 8, in
from .pybbg_k import Pybbg
File "/Users/Allen/anaconda/lib/python2.7/site-packages/pybbg/pybbg_k.py", line 8, in
import blpapi
ImportError: No module named blpapi
I used $pip list, but failed to see blpapi from the output list.
Any suggestions on how to fix my problem?
Thanks in advance
Ps. The followings show my installation log
MacBook:pfinance Allen$ pip install git+https://github.com/hubertrogers/pybbg
Collecting git+https://github.com/hubertrogers/pybbg
Cloning https://github.com/hubertrogers/pybbg to /private/var/folders/c6/7s88m85x0fj7l0zc52y_kcbh0000gn/T/pip-XagRDz-build
Installing collected packages: pybbg
Running setup.py install for pybbg ... done
Successfully installed pybbg-0.0.1
Based on the post I have set the library links properly;
MacBook:pfinance Allen$ echo $DYLD_LIBRARY_PATH
/Users/Allen/pfinance/blpapi_cpp_3.8.1.1/Darwin/
MacBook:pfinance Allen$ echo $BLPAPI_ROOT
/Users/Allen/pfinance/blpapi_cpp_3.8.1.1

how to install notify2 module in python 3.5 with my MAC computer?

tried the following command in the terminal,
$ pip3 install notify2
Collecting notify2
Using cached notify2-0.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/fr/hgx7qkc14dsglj7724_9m5780000gn/T/pip-build-0aoqwq0g/notify2/setup.py", line 2, in <module>
import notify2
File "/private/var/folders/fr/hgx7qkc14dsglj7724_9m5780000gn/T/pip-build-0aoqwq0g/notify2/notify2.py", line 38, in <module>
import dbus
ImportError: No module named 'dbus'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/fr/hgx7qkc14dsglj7724_9m5780000gn/T/pip-build-0aoqwq0g/notify2/
So, it seems like I need to install dbus module first. So, I tried
$ pip3 install dbus
Collecting dbus
Could not find a version that satisfies the requirement dbus (from versions: )
No matching distribution found for bus
tried which pip
$ which pip
/Library/Frameworks/Python.framework/Versions/3.5/bin/pip
And does anyone know what shall I do?
You need to install dbus using brew install dbus and then pip install dbus-python

dowloading the twitter 1.10.0 for python

i am trying to install through windows power shell and i get this error
C:\Users-\desktop\dist\twitter-1.10.0> python setup.py install
Traceback (most recent call last):
File "setup.py", line 1, in
from setuptools import setup, find_packages
ImportError: No module named setuptools
PS C:\Users-\desktop\dist\twitter-1.10.0>
any help is appreciated.
As the Traceback says, you have no setuptools module installed. You can download it here and install it invoking python ez_setup.py from the directory where you have downloaded the file.

Categories