1 | # Author: Alexandre Gramfort <[email protected]> |
||
2 | # License: BSD Style. |
||
3 | import os |
||
4 | |||
5 | import numpy |
||
0 ignored issues
–
show
|
|||
6 | |||
7 | |||
8 | def configuration(parent_package='', top_path=None): |
||
9 | from numpy.distutils.misc_util import Configuration |
||
0 ignored issues
–
show
The import
numpy.distutils.misc_util could not be resolved.
This can be caused by one of the following: 1. Missing DependenciesThis error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands. # .scrutinizer.yml
before_commands:
- sudo pip install abc # Python2
- sudo pip3 install abc # Python3
Tip: We are currently not using virtualenv to run pylint, when installing your modules make sure to use
the command for the correct version.
2. Missing __init__.py filesThis error could also result from missing ![]() |
|||
10 | |||
11 | libraries = [] |
||
12 | if os.name == 'posix': |
||
13 | libraries.append('m') |
||
14 | |||
15 | config = Configuration('preprocess', parent_package, top_path) |
||
16 | for source in ('_discretize.c', |
||
17 | '_relieff.cpp'): |
||
18 | config.add_extension(source.rsplit('.', 1)[0], |
||
19 | sources=[source], |
||
20 | include_dirs=[numpy.get_include()], |
||
21 | libraries=libraries) |
||
22 | return config |
||
23 | |||
24 | if __name__ == '__main__': |
||
25 | from numpy.distutils.core import setup |
||
0 ignored issues
–
show
The import
numpy.distutils.core could not be resolved.
This can be caused by one of the following: 1. Missing DependenciesThis error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands. # .scrutinizer.yml
before_commands:
- sudo pip install abc # Python2
- sudo pip3 install abc # Python3
Tip: We are currently not using virtualenv to run pylint, when installing your modules make sure to use
the command for the correct version.
2. Missing __init__.py filesThis error could also result from missing ![]() |
|||
26 | setup(**configuration(top_path='').todict()) |
||
27 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.py
files in your module folders. Make sure that you place one file in each sub-folder.