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 | |||
6 | libraries = [] |
||
7 | if os.name == 'posix': |
||
8 | libraries.append('m') |
||
9 | |||
10 | config = Configuration('widgets', parent_package, top_path) |
||
11 | config.add_subpackage('utils') |
||
12 | |||
13 | return config |
||
14 | |||
15 | if __name__ == '__main__': |
||
16 | 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 ![]() |
|||
17 | setup(**configuration(top_path='').todict()) |
||
18 |
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.