[code-quality] Problem with pylint, python3.4, multiprocessing
Mikael Pahmp
mikael.pahmp at gmail.com
Mon May 26 16:08:04 CEST 2014
Hi, I'm having a problem using pylint on Ubuntu 14.04 in a virtualenv based
on python3.4. Here are steps to reproduce it:
- virtualenv --python=python3.4 VENV
- source VENV/bin/activate
- pip install pylint==1.2
- echo "import multiprocessing" > test.py
- echo "print(multiprocessing.cpu_count())" >> test.py
- pylint test.py
The problem is that pylint reports:
E: 2,22: Module 'multiprocessing' has no 'cpu_count' member (no-member)
but python has no problem executing the file.
There is no error when run with python3.3. The multiprocessing package has
changed in python3.4 regarding how it exposes its methods which might be
troublesome for pylint.
Could you please confirm there is a problem or if I'm doing something wrong.
Regards,
Mikael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/code-quality/attachments/20140526/b8eac412/attachment.html>
More information about the code-quality
mailing list