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

MySQL-python not loading properly in Ubuntu 16.04 #3029

Closed
bethac07 opened this issue Sep 5, 2017 · 6 comments
Closed

MySQL-python not loading properly in Ubuntu 16.04 #3029

bethac07 opened this issue Sep 5, 2017 · 6 comments

Comments

@bethac07
Copy link
Member

bethac07 commented Sep 5, 2017

From the forum:

I’ve tried to install the nightly version on Ubuntu 16.04 LTS (cellprofiler 3.0.0rc2 from the git hub site). It installs fine, saying that all the requirements are already satisfied. But when I try to run it, I’m getting:

system > cellprofiler
Traceback (most recent call last):
File “/home/anja/.local/bin/cellprofiler”, line 5, in 
from pkg_resources import load_entry_point
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2927, in 
@_call_aside
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2913, in _call_aside
f(*args, **kwargs)
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2940, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 635, in _build_master
ws.require(requires)
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 943, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 829, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘MySQL-python’ distribution was not found and is required by CellProfiler

However, the distribution is already installed:

sudo pip install mysql-python
Requirement already satisfied: mysql-python in /home/anja/.local/lib/python2.7/site-packages

The installation from source worked fine for version 2.2.0. What am I missing?

I've asked her to try pulling and running from the newest version and to keep an eye on this thread, FWIW.

@0x00b1
Copy link
Contributor

0x00b1 commented Sep 5, 2017

Unlike most packages, MySQL-python requires a number of binaries and does not make a Python Wheel available on PyPI. I would recommend trying to install mysqlclient-dev:

$ sudo apt install libmysqlclient-dev

@anou85
Copy link

anou85 commented Sep 6, 2017

Hi, the lib was already installed...

@AetherUnbound
Copy link
Collaborator

AetherUnbound commented Dec 15, 2017

You may need to install python-mysqldb through apt instead (see the comments): https://stackoverflow.com/a/5178698/3277713

@mcquin
Copy link
Contributor

mcquin commented Feb 11, 2018

@anou85 did installing python-mysqldb resolve this issue?

@anou85
Copy link

anou85 commented Feb 11, 2018

@mcquin no, I dropped this version and continued with 2.2.0. I managed a few days ago to install the 3.0.0 from master, but ran into some other issues [https://github.com//issues/3492] (#3492 )

@AetherUnbound
Copy link
Collaborator

@anou85 I'm going to close this issue then, but we'll continue looking into your other issue

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

5 participants