Code Monkey home page Code Monkey logo

autowig's Introduction

https://travis-ci.org/StatisKit/StatisKit.svg?branch=master https://ci.appveyor.com/api/projects/status/ashg5htpprb5hssl/branch/master?svg=true

StatisKit: A Software Suite for Statistical Analyses

StatisKit is a collection of open source software designed to provide an environment for performing statistical analyses in C++ or Python.

autowig's People

Contributors

gbaty avatar pfernique avatar pradal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autowig's Issues

Are you considering publishing wheels on pypi?

This project is really cool. It's very similar to the autogenerator I've been trying to create for the RobotPy project, but this considerably more comprehensive at the present moment.

A primary problem I have with it (and I suspect others might also) is that I don't use conda at all, and I'm not really interested in doing so for a variety of reasons. I tried using conda-press to make this into a wheel, but the result was quite ugly.

It would be great if one could just do 'pip install autowig' and have it work. Is that on the roadmap for this project?

vplants namespace is not needed

Remove the vplants namespace to not overcomplicated the API and the installation.
Also, simplify dependencies to only thus needed: e.g.
path.py rather than openalea.core.path

unit test fails

using python 3.5 on MacBook
py.test
============================= test session starts ==============================
platform darwin -- Python 3.5.3, pytest-3.1.2, py-1.4.34, pluggy-0.4.0
rootdir: /workAutoWIG, inifile:
plugins: xdist-1.14, cov-2.2.1
collected 0 items / 3 errors

==================================== ERRORS ====================================
_____________________ ERROR collecting test/test_basic.py ______________________
../../../../anaconda3/lib/python3.5/site-packages/_pytest/python.py:408: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../../../../anaconda3/lib/python3.5/site-packages/py/_path/local.py:662: in pyimport
import(modname)
E File "/workAutoWIG/test/test_basic.py", line 42
E exec code in globals()
E ^
E SyntaxError: invalid syntax
____________________ ERROR collecting test/test_feedback.py ____________________
ImportError while importing test module '/workAutoWIG/test/test_feedback.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test_feedback.py:17: in
import autowig
../../../../anaconda3/lib/python3.5/site-packages/autowig-1.0.0-py3.5.egg/autowig/init.py:35: in
from ._feedback import feedback
../../../../anaconda3/lib/python3.5/site-packages/autowig-1.0.0-py3.5.egg/autowig/_feedback.py:18: in
import parse
E ImportError: No module named 'parse'
_____________________ ERROR collecting test/test_subset.py _____________________
../../../../anaconda3/lib/python3.5/site-packages/_pytest/python.py:408: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../../../../anaconda3/lib/python3.5/site-packages/py/_path/local.py:662: in pyimport
import(modname)
E File "/workAutoWIG/test/test_subset.py", line 44
E exec code in globals()
<E ^

Make a try at CastXML

Hi @pfernique,
XDress has lots of problems with libclang.

KitWare recently release CastXML, a replacement of gcc-xml, ported to c++-11.
It will be usefull to try it.

Test Django template engine

Coverage of Mako templates is not working.
In order to have code coverage taking into account the templates, we should try to replace Mako templates by Django ones.

KeyError in Autowig with StatisKit.Core

Hi, I have some KeyError when using Autowig on StatisKit.Core.
Using the Sublime Text build system (Ctrl + Shift + B then choosing "StatisKit"), I have the following error message:

scons: *** [/home/jean/.miniconda/envs/statiskit/lib/python3.6/site-packages/scons_tools/site_autowig/ASG/statiskit_core.pkl] KeyError : Path("'enum ::std::io_errc' parameter")
Traceback (most recent call last):
  File "/home/jean/.miniconda/envs/statiskit/lib/python3.6/site-packages/SCons/Action.py", line 1192, in execute
    result = self.execfunction(target=target, source=rsources, env=env)
  File "/home/jean/.miniconda/envs/statiskit/lib/python3.6/site-packages/scons_tools/site_tools/wig.py", line 109, in boost_python_builder
    **kwargs)
  File "/home/jean/.miniconda/envs/statiskit/lib/python3.6/site-packages/scons_tools/site_autowig/controller/statiskit_core.py", line 4, in controller
    return stl_controller(asg, library=False)
  File "/home/jean/.miniconda/envs/statiskit/lib/python3.6/site-packages/scons_tools/site_autowig/controller/statiskit_stl.py", line 68, in controller
    template = template.desugared_type.unqualified_type
  File "/home/jean/.miniconda/envs/statiskit/lib/python3.6/site-packages/autowig/asg.py", line 805, in desugared_type
    desugared_type = self._asg[self._target]
  File "/home/jean/.miniconda/envs/statiskit/lib/python3.6/site-packages/autowig/asg.py", line 1802, in __getitem__
    raise KeyError('\'' + node + '\' parameter')
KeyError: Path("'enum ::std::io_errc' parameter")
scons: building terminated because of errors.
[Finished in 384.8s with exit code 2]
[cmd: bash -c 'source /home/jean/.miniconda/bin/activate statiskit && scons autowig --diagnostics-color=never && scons --diagnostics-color=never --with-nose-debug=none']
[dir: /home/jean/Bureau/developpement/Core]
[path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin]

Default controller removes pthread_mutex_t, but not completely?

Hello,

This is a really cool project, thank you for your work on it!

I could have this wrong, but here's what I think is happening. When I create the AbstractSyntaxGraph and populate it by parsing headers, it contains a node for ::pthread_mutex_t. That type isn't directly used in the headers that I passed to autowig.parser, so the default controller removes it. However, it's still listed in asg._syntax_edges['::'].

Then, when I'm writing out the wrappers generated by the pybind11_internal generator with closure = False, I get a KeyError as it's iterating the typedefs() of the namespace :: - it can't find asg['::pthread_mutex_t']:

KeyError                                  Traceback (most recent call last)
<ipython-input-180-44089cff49a2> in <module>
----> 1 wrappers.write()

/export/home/smithtg/miniconda3/envs/autowig/lib/python3.7/site-packages/autowig/pybind11_generator.py in write(self, header, exports, decorator, processes)
   1011                 decorator = self.decorator
   1012             if decorator:
-> 1013                 decorator.write()
   1014 
   1015     def remove(self, header=True, exports=True, decorator=True):

/export/home/smithtg/miniconda3/envs/autowig/lib/python3.7/site-packages/autowig/asg.py in write(self)
    311             if not parent.on_disk:
    312                 parent.makedirs()
--> 313         content = self.content
    314         if content:
    315             with open(self.globalname, 'w') as filehandler:

/export/home/smithtg/miniconda3/envs/autowig/lib/python3.7/site-packages/autowig/asg.py in get_content(self)
    326 
    327 def get_content(self):
--> 328     if hasattr(self, '_content'):
    329         return self._content
    330     elif self.on_disk:

/export/home/smithtg/miniconda3/envs/autowig/lib/python3.7/site-packages/autowig/pybind11_generator.py in get_content(self)
   1214             for scope in export.scope.ancestors + [export.scope]:
   1215                 if isinstance(scope, NamespaceProxy) and not ignore(scope):
-> 1216                     typedefs.extend([tdf for tdf in scope.typedefs() if tdf.pybind11_export and tdf.qualified_type.desugared_type.unqualified_type.pybind11_export and tdf.qualified_type.desugared_type.unqualified_type.pybind11_export is not True])
   1217             declaration = export.declaration
   1218             if isinstance(declaration, ClassProxy) and not ignore(declaration):

/export/home/smithtg/miniconda3/envs/autowig/lib/python3.7/site-packages/autowig/asg.py in typedefs(self, **kwargs)
   1580 
   1581     def typedefs(self, **kwargs):
-> 1582         return [dcl for dcl in self.declarations(**kwargs) if isinstance(dcl, TypedefProxy)]
   1583 
   1584     def variables(self, **kwargs):

/export/home/smithtg/miniconda3/envs/autowig/lib/python3.7/site-packages/autowig/asg.py in declarations(self, pattern, nested)
   1565     def declarations(self, pattern=None, nested=False):
   1566         if pattern is None:
-> 1567             declarations = [self._asg[node] for node in self._asg._syntax_edges[self._node]]
   1568         else:
   1569             declarations = [self._asg[node] for node in self._asg._syntax_edges[self._node] if re.match(pattern, node)]

/export/home/smithtg/miniconda3/envs/autowig/lib/python3.7/site-packages/autowig/asg.py in <listcomp>(.0)
   1565     def declarations(self, pattern=None, nested=False):
   1566         if pattern is None:
-> 1567             declarations = [self._asg[node] for node in self._asg._syntax_edges[self._node]]
   1568         else:
   1569             declarations = [self._asg[node] for node in self._asg._syntax_edges[self._node] if re.match(pattern, node)]

/export/home/smithtg/miniconda3/envs/autowig/lib/python3.7/site-packages/autowig/asg.py in __getitem__(self, node)
   1871                         raise KeyError('\'' + node + '\' parameter')
   1872                 else:
-> 1873                     raise KeyError('\'' + node + '\' parameter')
   1874 
   1875 __all__ += [subclass.__name__.rsplit('.', 1).pop() for subclass in subclasses(NodeProxy)]

KeyError: Path("'::pthread_mutex_t' parameter")

I've worked around this by adding a bogus pthread_mutex_t variable to one of my classes. Is there a smarter workaround or anything else I should be doing?

`GXX` environment variable is undefined

I succeeded in installing AutoWIG on my machine (Ubuntu 16.04 with Miniconda3), but sadly I still got an error message as soon as I tried to parse an actual header. This was the error message:

import autowig
asg = autowig.AbstractSemanticGraph()
asg = autowig.parser(asg, ['test.hpp'],['-x','c++','-std=c++11'])
Traceback (most recent call last):
File "", line 1, in
File "/home/galanis/miniconda3/envs/AutoWIG/lib/python3.7/site-packages/clanglite/autowig_parser.py", line 42, in autowig_parser
header = pre_processing(asg, headers, flags, **kwargs)
File "/home/galanis/miniconda3/envs/AutoWIG/lib/python3.7/site-packages/autowig/_parser.py", line 176, in pre_processing
if "CONDA_PREFIX" in os.environ and not os.path.join(os.environ["CONDA_PREFIX"], os.environ['ROS_HOME'], 'sysroot', 'usr', 'include') in sysincludes:
File "/home/galanis/miniconda3/envs/AutoWIG/lib/python3.7/os.py", line 678, in getitem
raise KeyError(key) from None
KeyError: 'GXX'

After I changed GXX with an existing variable, the parsing went fine and I could auto-generate wrappers.

Error in Autowig compilation in StatisKit.Core

Hi, I have an Error when using AutoWIG on StatisKit.Core.

The commit is jpeyhardi/Core@3e19064 and the environment used for the build is described by environment.txt

Using the Sublime Text build system (Ctrl + Shift + B then choosing StatisKit without clean before), I have the following error message:

[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 7, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:7:145: error: 'UniformDistribution' is not a member of 'statiskit'
     class Wrap_075f4a1dea37583ebdb7b34686ef683f : public ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution >, public boost::python::wrapper< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >
                                                                                                                                                 ^~~~~~~~~~~~~~~~~~~
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:7:145: note: suggested alternative: 'ShiftedDistribution'
     class Wrap_075f4a1dea37583ebdb7b34686ef683f : public ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution >, public boost::python::wrapper< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >
                                                                                                                                                 ^~~~~~~~~~~~~~~~~~~
                                                                                                                                                 ShiftedDistribution
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 7, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:7:145: error: 'UniformDistribution' is not a member of 'statiskit'
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:7:145: note: suggested alternative: 'ShiftedDistribution'
     class Wrap_075f4a1dea37583ebdb7b34686ef683f : public ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution >, public boost::python::wrapper< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >
                                                                                                                                                 ^~~~~~~~~~~~~~~~~~~
                                                                                                                                                 ShiftedDistribution
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 7, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:7:219: error: template argument 2 is invalid
     class Wrap_075f4a1dea37583ebdb7b34686ef683f : public ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution >, public boost::python::wrapper< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >
                                                                                                                                                                                                                           ^
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 7, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:7:353: error: 'UniformDistribution' in namespace 'statiskit' does not name a type
     class Wrap_075f4a1dea37583ebdb7b34686ef683f : public ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution >, public boost::python::wrapper< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >
                                                                                                                                                                                                                                                                                                                                                                 ^~~~~~~~~~~~~~~~~~~
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 7, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:7:427: error: template argument 2 is invalid
     class Wrap_075f4a1dea37583ebdb7b34686ef683f : public ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution >, public boost::python::wrapper< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >
                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 7, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:7:429: error: template argument 1 is invalid
     class Wrap_075f4a1dea37583ebdb7b34686ef683f : public ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution >, public boost::python::wrapper< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >
                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp: In member function 'virtual double autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f::get_variance() const':
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 12, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:12:28: error: 'const class autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f' has no member named 'get_override'; did you mean 'get_variance'?
             { return this->get_override("get_variance")(); }
                            ^~~~~~~~~~~~
                            get_variance
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp: In member function 'virtual double autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f::get_mean() const':
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 15, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:15:28: error: 'const class autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f' has no member named 'get_override'; did you mean 'get_variance'?
             { return this->get_override("get_mean")(); }
                            ^~~~~~~~~~~~
                            get_variance
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp: In member function 'virtual double autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f::quantile(const double&) const':
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 18, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:18:28: error: 'const class autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f' has no member named 'get_override'; did you mean 'get_variance'?
             { return this->get_override("quantile")(param_0); }
                            ^~~~~~~~~~~~
                            get_variance
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp: In member function 'virtual double autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f::cdf(const double&) const':
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 21, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:21:28: error: 'const class autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f' has no member named 'get_override'; did you mean 'get_variance'?
             { return this->get_override("cdf")(param_0); }
                            ^~~~~~~~~~~~
                            get_variance
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp: In member function 'virtual double autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f::pdf(const double&) const':
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 24, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:24:28: error: 'const class autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f' has no member named 'get_override'; did you mean 'get_variance'?
             { return this->get_override("pdf")(param_0); }
                            ^~~~~~~~~~~~
                            get_variance
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp: In member function 'virtual double autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f::ldf(const double&) const':
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 27, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:27:28: error: 'const class autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f' has no member named 'get_override'; did you mean 'get_variance'?
             { return this->get_override("ldf")(param_0); }
                            ^~~~~~~~~~~~
                            get_variance
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp: In member function 'virtual std::unique_ptr<statiskit::UnivariateEvent> autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f::simulate() const':
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 31, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:31:175: error: 'const class autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f' has no member named 'get_override'; did you mean 'get_variance'?
                  ::std::unique_ptr< struct ::statiskit::UnivariateEvent, struct ::std::default_delete< struct ::statiskit::UnivariateEvent > > ::element_type* result = this->get_override("simulate")();
                                                                                                                                                                               ^~~~~~~~~~~~
                                                                                                                                                                               get_variance
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp: In member function 'virtual unsigned int autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f::get_nb_parameters() const':
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 36, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:36:28: error: 'const class autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f' has no member named 'get_override'; did you mean 'get_variance'?
             { return this->get_override("get_nb_parameters")(); }
                            ^~~~~~~~~~~~
                            get_variance
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp: In function 'void wrapper_075f4a1dea37583ebdb7b34686ef683f()':
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 70, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:70:123: error: 'UniformDistribution' in namespace 'statiskit' does not name a type
     if(autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::is_class)
                                                                                                                           ^~~~~~~~~~~~~~~~~~~
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 70, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:70:197: error: template argument 2 is invalid
     if(autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::is_class)
                                                                                                                                                                                                     ^
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 70, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:70:199: error: template argument 1 is invalid
     if(autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::is_class)
                                                                                                                                                                                                       ^
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 72, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:72:234: error: 'UniformDistribution' in namespace 'statiskit' does not name a type
         boost::python::implicitly_convertible< autowig::Held< autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f >::Type, autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type >();
                                                                                                                                                                                                                                          ^~~~~~~~~~~~~~~~~~~
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 72, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:72:308: error: template argument 2 is invalid
         boost::python::implicitly_convertible< autowig::Held< autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f >::Type, autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type >();
                                                                                                                                                                                                                                                                                                                    ^
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 72, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:72:310: error: template argument 1 is invalid
         boost::python::implicitly_convertible< autowig::Held< autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f >::Type, autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type >();
                                                                                                                                                                                                                                                                                                                      ^
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 72, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:72:320: error: no matching function for call to 'implicitly_convertible<autowig::Held<autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f>::Type, <expression error> >()'
         boost::python::implicitly_convertible< autowig::Held< autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f >::Type, autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type >();
                                                                                                                                                                                                                                                                                                                                ^
In file included from /home/jean/.miniconda/envs/statiskit/include/boost/python.hpp:33:0,
                 from build/src/py/wrapper/_core.h:4:
/home/jean/.miniconda/envs/statiskit/include/boost/python/implicit.hpp:20:6: note: candidate: template<class Source, class Target> void boost::python::implicitly_convertible(boost::type<Target>*, boost::type<U>*)
 void implicitly_convertible(boost::type<Source>* = 0, boost::type<Target>* = 0)
      ^~~~~~~~~~~~~~~~~~~~~~
/home/jean/.miniconda/envs/statiskit/include/boost/python/implicit.hpp:20:6: note:   template argument deduction/substitution failed:
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 72, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:72:320: error: template argument 2 is invalid
         boost::python::implicitly_convertible< autowig::Held< autowig::Wrap_075f4a1dea37583ebdb7b34686ef683f >::Type, autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type >();
                                                                                                                                                                                                                                                                                                                                ^
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 73, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:73:163: error: 'UniformDistribution' in namespace 'statiskit' does not name a type
         boost::python::register_ptr_to_python< autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type >();
                                                                                                                                                                   ^~~~~~~~~~~~~~~~~~~
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 73, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:73:237: error: template argument 2 is invalid
         boost::python::register_ptr_to_python< autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type >();
                                                                                                                                                                                                                                             ^
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 73, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:73:239: error: template argument 1 is invalid
         boost::python::register_ptr_to_python< autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type >();
                                                                                                                                                                                                                                               ^
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 73, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:73:249: error: no matching function for call to 'register_ptr_to_python<<expression error> >()'
         boost::python::register_ptr_to_python< autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type >();
                                                                                                                                                                                                                                                         ^
In file included from /home/jean/.miniconda/envs/statiskit/include/boost/python.hpp:58:0,
                 from build/src/py/wrapper/_core.h:4:
/home/jean/.miniconda/envs/statiskit/include/boost/python/register_ptr_to_python.hpp:15:6: note: candidate: template<class P> void boost::python::register_ptr_to_python()
 void register_ptr_to_python()
      ^~~~~~~~~~~~~~~~~~~~~~
/home/jean/.miniconda/envs/statiskit/include/boost/python/register_ptr_to_python.hpp:15:6: note:   template argument deduction/substitution failed:
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 73, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:73:249: error: template argument 1 is invalid
         boost::python::register_ptr_to_python< autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type >();
                                                                                                                                                                                                                                                         ^
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 74, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:74:163: error: 'UniformDistribution' in namespace 'statiskit' does not name a type
         boost::python::implicitly_convertible< autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type, autowig::Held< struct ::statiskit::ContinuousUnivariateDistribution >::Type >();
                                                                                                                                                                   ^~~~~~~~~~~~~~~~~~~
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 74, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:74:237: error: template argument 2 is invalid
         boost::python::implicitly_convertible< autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type, autowig::Held< struct ::statiskit::ContinuousUnivariateDistribution >::Type >();
                                                                                                                                                                                                                                             ^
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 74, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:74:239: error: template argument 1 is invalid
         boost::python::implicitly_convertible< autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type, autowig::Held< struct ::statiskit::ContinuousUnivariateDistribution >::Type >();
                                                                                                                                                                                                                                               ^
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 74, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:74:326: error: no matching function for call to 'implicitly_convertible<<expression error>, autowig::Held<statiskit::ContinuousUnivariateDistribution>::Type>()'
         boost::python::implicitly_convertible< autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type, autowig::Held< struct ::statiskit::ContinuousUnivariateDistribution >::Type >();
                                                                                                                                                                                                                                                                                                                                      ^
In file included from /home/jean/.miniconda/envs/statiskit/include/boost/python.hpp:33:0,
                 from build/src/py/wrapper/_core.h:4:
/home/jean/.miniconda/envs/statiskit/include/boost/python/implicit.hpp:20:6: note: candidate: template<class Source, class Target> void boost::python::implicitly_convertible(boost::type<Target>*, boost::type<U>*)
 void implicitly_convertible(boost::type<Source>* = 0, boost::type<Target>* = 0)
      ^~~~~~~~~~~~~~~~~~~~~~
/home/jean/.miniconda/envs/statiskit/include/boost/python/implicit.hpp:20:6: note:   template argument deduction/substitution failed:
[Build error - file "src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp" at line 74, see build results]
build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.cpp:74:326: error: template argument 1 is invalid
         boost::python::implicitly_convertible< autowig::Held< struct ::statiskit::PolymorphicCopy< struct ::statiskit::UnivariateDistribution, class ::statiskit::UniformDistribution, struct ::statiskit::ContinuousUnivariateDistribution > >::Type, autowig::Held< struct ::statiskit::ContinuousUnivariateDistribution >::Type >();
                                                                                                                                                                                                                                                                                                                                      ^
/home/jean/.miniconda/envs/statiskit/bin/x86_64-conda_cos6-linux-gnu-g++ -o build/src/py/wrapper/wrapper_08568636c5a25349ad6ad5335ed1718e.os -c -std=c++11 -fvisibility=hidden -Wl,--no-undefined -fdiagnostics-color=never -Wno-attributes -Wno-ignored-attributes -Winvalid-pch -fPIC -DBOOST_PYTHON_DYNAMIC_LIB -DBOOST_ALL_NO_LIB -I/home/jean/.miniconda/envs/statiskit/include -I/home/jean/.miniconda/envs/statiskit/include/python3.6m build/src/py/wrapper/wrapper_08568636c5a25349ad6ad5335ed1718e.cpp
/home/jean/.miniconda/envs/statiskit/bin/x86_64-conda_cos6-linux-gnu-g++ -o build/src/py/wrapper/wrapper_08e79862ae80532bb837c70a9c93652b.os -c -std=c++11 -fvisibility=hidden -Wl,--no-undefined -fdiagnostics-color=never -Wno-attributes -Wno-ignored-attributes -Winvalid-pch -fPIC -DBOOST_PYTHON_DYNAMIC_LIB -DBOOST_ALL_NO_LIB -I/home/jean/.miniconda/envs/statiskit/include -I/home/jean/.miniconda/envs/statiskit/include/python3.6m build/src/py/wrapper/wrapper_08e79862ae80532bb837c70a9c93652b.cpp
scons: *** [build/src/py/wrapper/wrapper_075f4a1dea37583ebdb7b34686ef683f.os] Error 1
/home/jean/.miniconda/envs/statiskit/bin/x86_64-conda_cos6-linux-gnu-g++ -o build/src/py/wrapper/wrapper_0950e6469e715d39b9590b5a0c7f484e.os -c -std=c++11 -fvisibility=hidden -Wl,--no-undefined -fdiagnostics-color=never -Wno-attributes -Wno-ignored-attributes -Winvalid-pch -fPIC -DBOOST_PYTHON_DYNAMIC_LIB -DBOOST_ALL_NO_LIB -I/home/jean/.miniconda/envs/statiskit/include -I/home/jean/.miniconda/envs/statiskit/include/python3.6m build/src/py/wrapper/wrapper_0950e6469e715d39b9590b5a0c7f484e.cpp
scons: building terminated because of errors.
[Finished in 10.6s with exit code 2]
[cmd: bash -c 'source /home/jean/.miniconda/bin/activate statiskit && scons autowig --diagnostics-color=never && scons --diagnostics-color=never --with-nose-debug=none']
[dir: /home/jean/Bureau/developpement/Core]
[path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.