Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu error : No module named mock ( python 3) #2718

Closed
catafest opened this issue Oct 27, 2017 · 3 comments
Closed

Ubuntu error : No module named mock ( python 3) #2718

catafest opened this issue Oct 27, 2017 · 3 comments

Comments

@catafest
Copy link

I try to use python 3

Orange version

python -m Orange.canvas
/usr/bin/python: No module named mock

Expected behavior
Actual behavior
Steps to reproduce the behavior

installl orange to Ubuntu steps:
install Orange from git : git clone https://github.com/biolab/orange3
install PyQt4_gpl_x11-4.12.1
install sip-4.19.3

git clone https://github.com/biolab/orange3
cd orange3
pip install numpy
pip install -r requirements.txt
pip install -r requirements-gui.txt

./setup.py build
./setup.py install

python -m Orange.canvas
/usr/bin/python: No module named mock

pip install mock

Requirement already satisfied: mock in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: funcsigs>=1; python_version < "3.3" in /usr/local/lib/python2.7/dist-packages (from mock)
Requirement already satisfied: pbr>=0.11 in /usr/local/lib/python2.7/dist-packages (from mock)
Requirement already satisfied: six>=1.9 in /usr/local/lib/python2.7/dist-packages (from mock)

Additional info (worksheets, data, screenshots, ...)

uname -a

Linux ascasc 4.10.0-37-generic #41-Ubuntu SMP Fri Oct 6 20:20:37 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
#pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
AnyQt (0.0.8)
apturl (0.5.2)
beautifulsoup4 (4.5.3)
bleach (2.1.1)
blinker (1.3)
Bottleneck (1.2.1)
Brlapi (0.6.5)
certifi (2017.7.27.1)
chardet (3.0.4)
checkbox-support (0.22)
command-not-found (0.3)
CommonMark (0.7.4)
cryptography (1.7.1)
decorator (4.1.2)
defer (1.0.6)
dill (0.2.7.1)
distro-info (0.14build1)
docutils (0.14)
entrypoints (0.2.3)
fail2ban (0.9.6)
feedparser (5.1.3)
future (0.16.0)
guacamole (0.9.2)
html5lib (0.999999999)
httplib2 (0.9.2)
idna (2.6)
ipykernel (4.6.1)
ipython (6.2.1)
ipython-genutils (0.2.0)
ipywidgets (7.0.1)
jedi (0.11.0)
Jinja2 (2.9.5)
joblib (0.11)
jsonschema (2.6.0)
jupyter (1.0.0)
jupyter-client (5.1.0)
jupyter-console (5.2.0)
jupyter-core (4.3.0)
keyring (10.3.1)
keyrings.alt (2.2)
language-selector (0.1)
launchpadlib (1.10.4)
lazr.restfulclient (0.13.4)
lazr.uri (1.0.3)
louis (3.0.0)
lxml (3.7.3)
Mako (1.0.6)
MarkupSafe (0.23)
mistune (0.7.4)
nbconvert (5.3.1)
nbformat (4.4.0)
notebook (5.2.0)
numpy (1.13.3)
oauth (1.0.1)
oauthlib (2.0.1)
onboard (1.4.1)
Orange3 (3.6.0)
padme (1.1.1)
pandocfilters (1.4.2)
parso (0.1.0)
pexpect (4.2.1)
pickleshare (0.7.4)
Pillow (4.0.0)
pip (9.0.1)
plainbox (0.25)
prompt-toolkit (1.0.15)
psutil (5.0.1)
ptyprocess (0.5.1)
pyasn1 (0.1.9)
pycrypto (2.6.1)
pycups (1.9.73)
Pygments (2.2.0)
pygobject (3.22.0)
pyinotify (0.9.6)
PyJWT (1.4.2)
pyparsing (2.1.10)
pyqtgraph (0.10.0)
python-apt (1.4.0b2)
python-dateutil (2.6.1)
python-debian (0.1.30)
pyxdg (0.25)
PyYAML (3.12)
pyzmq (16.0.2)
qtconsole (4.3.1)
reportlab (3.3.0)
requests (2.18.4)
scikit-learn (0.19.1)
scipy (1.0.0)
SecretStorage (2.3.1)
serverfiles (0.2.1)
sessioninstaller (0.0.0)
setuptools (36.6.0)
simplegeneric (0.8.1)
simplejson (3.10.0)
sip (4.19.3)
six (1.10.0)
ssh-import-id (5.6)
system-service (0.3)
systemd-python (233)
terminado (0.6)
testpath (0.3.1)
tornado (4.5.2)
traitlets (4.3.2)
ubuntu-drivers-common (0.0.0)
ufw (0.35)
unattended-upgrades (0.1)
unity-scope-calculator (0.1)
unity-scope-chromiumbookmarks (0.1)
unity-scope-colourlovers (0.1)
unity-scope-devhelp (0.1)
unity-scope-firefoxbookmarks (0.1)
unity-scope-gdrive (0.7)
unity-scope-manpages (0.1)
unity-scope-openclipart (0.1)
unity-scope-texdoc (0.1)
unity-scope-tomboy (0.1)
unity-scope-virtualbox (0.1)
unity-scope-yelp (0.1)
unity-scope-zotero (0.1)
urllib3 (1.22)
usb-creator (0.3.3)
vboxapi (1.0)
virtualenv (15.1.0)
wadllib (1.3.2)
wcwidth (0.1.7)
webencodings (0.5)
wheel (0.29.0)
widgetsnbextension (3.0.3)
xdiagnose (3.8.5)
xkit (0.0.0)
xlrd (1.1.0)
XlsxWriter (0.9.6)
zope.interface (4.3.2)

@astaric
Copy link
Member

astaric commented Oct 27, 2017

Could you run

python --version

For orange3, you need python>=3.4

@janezd
Copy link
Contributor

janezd commented Oct 27, 2017

pip install mock
Requirement already satisfied: mock in /usr/local/lib/python2.7/dist-packages

2.7? Is it possible that you actually run Python 2.7 in parts of this installation? To which python does this pip that you're running belong? Try pip --version.

@ajdapretnar
Copy link
Contributor

This does look like you are running Python 2.7 instead of Python 3. Please re-open the issue if this is not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants