1 | import os |
||
2 | |||
3 | def configuration(parent_package='', top_path=None): |
||
4 | from numpy.distutils.misc_util import Configuration |
||
0 ignored issues
–
show
|
|||
5 | import numpy |
||
0 ignored issues
–
show
The import
numpy 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 ![]() |
|||
6 | |||
7 | libraries = [] |
||
8 | if os.name == 'posix': |
||
9 | libraries.append('m') |
||
10 | |||
11 | config = Configuration('Orange', parent_package, top_path) |
||
12 | config.add_subpackage('classification') |
||
13 | config.add_subpackage('data') |
||
14 | config.add_subpackage('evaluation') |
||
15 | config.add_subpackage('misc') |
||
16 | config.add_subpackage('preprocess') |
||
17 | config.add_subpackage('statistics') |
||
18 | config.add_subpackage('testing') |
||
19 | config.add_subpackage('tests') |
||
20 | config.add_subpackage('widgets') |
||
21 | |||
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.