[C++-sig] Cant Link Boost python example / Re: Cplusplus-sig Digest, Vol 118, Issue 1

Lewis Evans lewis.evans at bayforest.ai
Fri May 17 09:40:33 EDT 2019


Afternoon,

We built boost 1.70.0 with python 3.7 just two days ago, and we also
encountered the error about pyconfig.h.

We resolved it with this env-var export of CPLUS_INCLUDE_PATH:
export
CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/local/miniconda/envs/python3/include/python3.7m/"

(you will need to change the path to the location of your local install of
python-anaconda)



Bayforest Technologies Limited
16 Berkeley Street
London, W1J 8DZ
work1:  +44 203 907 3883  (dial-in for UK)
work2:   +1 347 746 0976    (dial-in for US)
email: lewis.evans at bayforest.ai
web:    https://bayforest.ai/


On Fri, May 17, 2019 at 2:18 PM <cplusplus-sig-request at python.org> wrote:

> Send Cplusplus-sig mailing list submissions to
>         cplusplus-sig at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mail.python.org/mailman/listinfo/cplusplus-sig
> or, via email, send a message with subject or body 'help' to
>         cplusplus-sig-request at python.org
>
> You can reach the person managing the list at
>         cplusplus-sig-owner at python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Cplusplus-sig digest..."
>
>
> Today's Topics:
>
>    1. Python support in boost::python (what version)
>       (Jones, Torrin A (US))
>    2. Re: Python support in boost::python (what version) (stefan)
>    3. Cant link Boost Python Examples (Jimmy Rizos)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 16 May 2019 19:43:30 +0000
> From: "Jones, Torrin A (US)" <torrin.jones at baesystems.com>
> To: 'Development of Python/C++ integration' <cplusplus-sig at python.org>
> Subject: [C++-sig] Python support in boost::python (what version)
> Message-ID: <454hhW1T16zndqq at mail.python.org>
> Content-Type: text/plain; charset="us-ascii"
>
> What version of python does boost::python officially support?  I noticed
> in the python build file (see link below), it will only find from version
> 1.5 to 3.4.  Does this mean that boost python really only supports up to
> 3.4?  Folks do appear to be using other versions, but the fact that this
> only goes to 3.4 leads me to believe that is as far as it's been tested.
> Is that right?
>
> What are the official versions?  Is there any documentation that says that?
>
> https://github.com/boostorg/build/blob/develop/src/tools/python.jam#L401
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.python.org/pipermail/cplusplus-sig/attachments/20190516/018ed420/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 16 May 2019 15:56:49 -0400
> From: stefan <stefan at seefeld.name>
> To: cplusplus-sig at python.org
> Subject: Re: [C++-sig] Python support in boost::python (what version)
> Message-ID: <c3bb73ef-0a2f-e8d1-1821-4cf86c450ef2 at seefeld.name>
> Content-Type: text/plain; charset="windows-1252"; Format="flowed"
>
> On 2019-05-16 3:43 p.m., Jones, Torrin A (US) wrote:
>
> > What version of python does boost::python officially support?
> >
> Anything above version 2.2
>
> > I noticed in the python build file (see link below), it will only find
> > from version 1.5 to 3.4.? Does this mean that boost python really only
> > supports up to 3.4? Folks do appear to be using other versions, but
> > the fact that this only goes to 3.4 leads me to believe that is as far
> > as it?s been tested.? Is that right?
> >
> Definitely not. You are right, though: this file needs to be fixed. (I'm
> not maintaining this file myself, so I'll follow up with the relevant
> people (Boost.Build).)
>
> Boost internally regularly builds and tests Boost.Python with versions >
> 3.4. and I know various distributions containing Boost.Python packages
> built against more recent Python versions.
>
> See for example https://anaconda.org/anaconda/boost/files
>
> > What are the official versions? Is there any documentation that says
> that?
> >
> Not really, as Boost only "officially" releases source packages. Users
> are free to compile against a large range of tools and prerequisites
> (compilers, Python versions, etc.).
>
> If you find any issues building and running against a particular Python
> version, please file a bug report, and I'll try to help as quickly as
> possible.
>
>
> Stefan
>
> --
>
>        ...ich hab' noch einen Koffer in Berlin...
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.python.org/pipermail/cplusplus-sig/attachments/20190516/f7073771/attachment-0001.html
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.png
> Type: image/png
> Size: 1478 bytes
> Desc: not available
> URL: <
> http://mail.python.org/pipermail/cplusplus-sig/attachments/20190516/f7073771/attachment-0001.png
> >
>
> ------------------------------
>
> Message: 3
> Date: Thu, 16 May 2019 20:33:55 +0000
> From: Jimmy Rizos <jrizos at 400capital.com>
> To: "'cplusplus-sig at python.org'" <cplusplus-sig at python.org>
> Subject: [C++-sig] Cant link Boost Python Examples
> Message-ID: <f1b35cba27674ce7ab864720ebf5f42d at FHCNYEX01.fhc.local>
> Content-Type: text/plain; charset="windows-1252"
>
> Hello,
>
> As I am sure others have run into this problem, surprisingly there is very
> little actually describing a solution.
> I just built boost 1.70 yesterday but has still not been able to
> successfully build the tests.  Below is the output I get.  I cant find a
> boost_python library anywhere.
> I am using 32bit python 3.5 through anaconda.
>
> Any advice would be appreciated.
> Thanks
>
> C:\Development\boost_1_70_0\libs\python\example\quickstart>
> ..\..\..\..\b2.exe toolset=msvc link=shared --verbose-test test
> ...found 34 targets...
> ...updating 9 targets...
> msvc.link.dll extending.pyd
> LINK : fatal error LNK1181: cannot open input file 'boost_python.lib'
>
>         call "..\bin\standalone\msvc\msvc-14.1\msvc-setup.bat"  >nul
> link /NOLOGO /INCREMENTAL:NO /DLL /NOENTRY /DEBUG /MACHINE:X86 /MANIFEST
> /subsystem:console /out:"extending.pyd"  /LIBPATH:"C:\Miniconda3\libs"
>  @"extending.pyd.rsp"
>         if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
>
> ...failed msvc.link.dll extending.pyd extending.pdb...
> ...skipped <p.>test_ext for lack of <p.>extending.pyd...
> compile-c-c++ embedding.obj
> embedding.cpp
> C:\Development\boost_1_70_0\boost/python/detail/wrap_python.hpp(57): fatal
> error C1083: Cannot open include file: 'pyconfig.h': No such file or
> directory
>
>     call "..\bin\standalone\msvc\msvc-14.1\msvc-setup.bat"  >nul
> cl /Zm800 -nologo @"embedding.obj.rsp"
>
> ...failed compile-c-c++ embedding.obj...
> ...skipped <p.>test_embed.exe for lack of <p.>embedding.obj...
> ...skipped <p.>test_embed.run for lack of <p.>test_embed.exe...
> ...failed updating 3 targets...
> ...skipped 5 targets...
>
> C:\Development\boost_1_70_0\libs\python\example\quickstart>
>
> Jimmy Rizos
> Managing Director, Chief Technology Officer
>
> [cid:image001.gif at 01CC76C9.E6CF4870]
> 400 Capital Management LLC  |   510 Madison Avenue   |   17th Floor   |
>  New York, NY 10022
> o  212.767.3136  |  m  917.716.4108  |  jimmy.rizos at 400capital.com<mailto:
> jimmy.rizos at 400capital.com> | www.400capital.com<http://www.400capital.com
> >
>
>
>
> This email, together with its attachments, if any, and the information
> contained therein is confidential and is intended solely for the recipient.
> Delivery of this email or any of the information contained herein to anyone
> other than the recipient or his designated representative is unauthorized
> and any other use, reproduction, distribution or copying of this email or
> the information contained herein, in whole or in part, without the prior
> written consent of 400 Capital Management LLC or its affiliates is
> prohibited. 400 Capital Management LLC accepts no liability for any errors
> or omissions arising as a result of this transmission. No assurances are
> given that this e-mail message and any attachments are free of viruses
> and/or other harmful code, and 400 Capital Management LLC accepts no
> liability for any damage sustained as a result of such viruses or harmful
> code. The contents of this e-mail message and any attachments should not be
> regarded as a solicitation or offer to buy or sel
>  l any securities. This email and the information contained herein shall
> not constitute an offer to sell or the solicitation of an offer to purchase
> an interest in a fund. Any such offer or solicitation will be made to
> qualified investors only by means of delivery of appropriate documentation,
> including without limitation, offering memoranda and related subscription
> agreement as applicable. Securities shall not be offered or sold in any
> jurisdiction in which such offer, solicitation or sale would be unlawful
> until the requirements of the laws of such jurisdiction have been
> satisfied. Any performance information contained herein may be unaudited
> and estimated. Past performance is not indicative of future results. If you
> have received this message in error, please notify the sender immediately
> and delete this message and any related attachments.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.python.org/pipermail/cplusplus-sig/attachments/20190516/799cb300/attachment.html
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image001.gif
> Type: image/gif
> Size: 1059 bytes
> Desc: image001.gif
> URL: <
> http://mail.python.org/pipermail/cplusplus-sig/attachments/20190516/799cb300/attachment.gif
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> https://mail.python.org/mailman/listinfo/cplusplus-sig
>
>
> ------------------------------
>
> End of Cplusplus-sig Digest, Vol 118, Issue 1
> *********************************************
>

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

-- 


The information
contained in this transmission may contain privileged and 
confidential
information.  It is intended only for the
use of the person(s) 
named above.  If you
are not the intended recipient, you are hereby 
notified that any review,
dissemination, distribution or duplication of 
this communication is strictly
prohibited.  This communication is for

information purposes only and should not be regarded as an offer to sell or 
as
a solicitation of an offer to buy any financial product, an official 
confirmation
of any transaction, or as an official statement of Bayforest 
Capital Limited
and Bayforest Technologies Limited.  If
you are not the 
intended recipient, please contact the sender by replying to
this e-mail 
and destroy all copies of this e-mail (and any attachment(s)) from
your 
system.  To reply to our e-mail
administrator directly, please send an 
e-mail to admin at bayforest.ai <mailto:admin at bayforest.ai>.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20190517/57438fdf/attachment-0001.html>


More information about the Cplusplus-sig mailing list