|
List Info
Thread: ActiveState Python 2.5.1.1, Boost 1.34.1 and MSVC 8 SP1 problem
|
|
| ActiveState Python 2.5.1.1, Boost
1.34.1 and MSVC 8 SP1 problem |

|
2008-03-28 04:34:03 |
|
Hi
all,
I'am currently working on small project which
involves a python programm which calls a C++ DLL using Boost
Python. I use MSVC 8 with SP1 and Boost Python 1.34.1, compiled as follows:
goto: cd C:Program FilesMicrosoft Visual
Studio 8VCbin exec: vcvars32.bat goto: cd
$(BOOST_DIR)/tools/jam/src exec: build.bat vc8 goto: cd
$(BOOST_DIR) exec: toolsjamsrcbin.ntx86bjam.exe
-sPYTHON_VERSION=2.5 -sPYTHON_ROOT=c:Python25 --toolset=msvc-8.0
--with-python --stagedir=. stage debug release
Everything
worked fine using ActiveState Python 2.3.2-232 and ActiveState Python
2.4.3.12. But after switching to ActiveState Python 2.5.1.1, I can
not import the DLL anymore (without any detailed error message). It
simply doesn't work.
So the question is, is this a problem of
the ActiveState Python (in which case I apologize this stupid post
), or a problem of Boost Python with Python 2.5?? I have not found
an answer to the problem on the web.
Any help is
welcome.
Cheers boro
|
| Re: ActiveState Python 2.5.1.1, Boost
1.34.1 and MSVC 8 SP1 problem |

|
2008-03-28 05:39:52 |
|
> From:
c++-sig-bounces python.org [mailto:c++-sig-bounces python.org] On Behalf Of
Stefan.Borovac t-online.de >
Sent: 28 March 2008 09:34 > To:
c++-sig python.org > Subject:
[C++-sig] ActiveState Python 2.5.1.1,Boost 1.34.1 and MSVC 8 SP1
problem > Everything worked fine using ActiveState
Python 2.3.2-232 and ActiveState Python 2.4.3.12. > But after switching to ActiveState
Python 2.5.1.1, I can not import the DLL anymore (without > any detailed error message). It simply
doesn't work.
Have you tried examining the DLL with DependencyWalker
?
Also sometimes details about
failed DLL imports can appear in the EventLog.
Were you building previously
against Python 2.3 and 2.4 using MSVC 8 ? If not you may now be encountering a a
c-runtime conflict although that's just a guess. If that is the problem,
try building a Python 2.5 from source with VC 8. This will make your build
non-standard though, so then you face issues distributing your
DLL.
Good luck,
Mark
_______________________________________________________________________
This email is intended only for the use of the individual(s) to whom
it is addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive this
e-mail in error, please advise immediately and delete the original
message without copying, using, or telling anyone about its contents.
This message may have been altered without your or our knowledge and
the sender does not accept any liability for any errors or omissions
in the message.
This message does not create or change any contract. Royal Bank of
Canada and its subsidiaries accept no responsibility for damage caused
by any viruses contained in this email or its attachments. Emails may
be monitored.
RBC Capital Markets is a business name used by branches and
subsidiaries of Royal Bank of Canada, including Royal Bank of Canada,
London branch and Royal Bank of Canada Europe Limited. In accordance
with English law requirements, details regarding Royal Bank of Canada
Europe Limited are set out below:
ROYAL BANK OF CANADA EUROPE LIMITED
Registered in England and Wales 995939
Registered Address: 71 Queen Victoria Street, London, EC4V 4DE.
Authorised and regulated by the Financial Service Authority.
Member of the London Stock Exchange
|
| Re: ActiveState Python 2.5.1.1, Boost
1.34.1 and MSVC 8 SP1 problem |

|
2008-03-28 06:21:58 |
|
>> Everything worked fine
using ActiveState Python 2.3.2-232 and ActiveState Python 2.4.3.12. >> But after
switching to ActiveState Python 2.5.1.1, I can not import the DLL
anymore (without >>
any detailed error message). It simply doesn't
work. > Have you tried examining the DLL with
DependencyWalker ?
Yes, there was nothing suspicious.
> Also sometimes details about failed DLL imports
can appear in the EventLog. Also, nothing at all. When I used the
Python import statement, the interpreter answers:
>>> import TTBridge Traceback (most recent call
last): File "<stdin>", line 1, in ? ImportError: No module named TTBridge
>Were you
building previously against Python 2.3 and 2.4 using MSVC 8 ? Yes,
yesterday I tried out all configurations mentioned earlier.
> If that is the problem, try building a Python 2.5 from source
with VC 8. This will make your build non-standard > though, so
then you face issues distributing your DLL. Probably there will be
a post until monday. If not, I will try to build Python 2.5 on my
own.
>Good
luck, >Mark
Cheers,
Stefan
|
| Re: ActiveState Python 2.5.1.1, Boost
1.34.1 and MSVC 8 SP1 problem |

|
2008-03-28 06:27:26 |
|
|
>>> import
TTBridge Traceback (most recent call last): File "<stdin>",
line 1, in ? ImportError: No module named
TTBridge
Are you sure your module
is on the Python25 PYTHONPATH
? _______________________________________________________________________
This email is intended only for the use of the individual(s) to whom
it is addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive this
e-mail in error, please advise immediately and delete the original
message without copying, using, or telling anyone about its contents.
This message may have been altered without your or our knowledge and
the sender does not accept any liability for any errors or omissions
in the message.
This message does not create or change any contract. Royal Bank of
Canada and its subsidiaries accept no responsibility for damage caused
by any viruses contained in this email or its attachments. Emails may
be monitored.
RBC Capital Markets is a business name used by branches and
subsidiaries of Royal Bank of Canada, including Royal Bank of Canada,
London branch and Royal Bank of Canada Europe Limited. In accordance
with English law requirements, details regarding Royal Bank of Canada
Europe Limited are set out below:
ROYAL BANK OF CANADA EUROPE LIMITED
Registered in England and Wales 995939
Registered Address: 71 Queen Victoria Street, London, EC4V 4DE.
Authorised and regulated by the Financial Service Authority.
Member of the London Stock Exchange
|
| Re: ActiveState Python 2.5.1.1, Boost
1.34.1 and MSVC 8 SP1 problem |
  Germany |
2008-03-28 06:35:23 |
Am Freitag, 28. März 2008 12:21:58 schrieb
Stefan.Borovac t-online.de:
> <font style="font-family:
arial,helvetica,sans-serif;"
size="2"><div
> align="left" dir="ltr"><font
face="Tahoma"><font
size="2"><br
> /></font></font><font
style="font-family:
> arial,helvetica,sans-serif;"><font
size="2"><span
> class="539543310-28032008"><font
color="#0000ff"><font
face="Tahoma"
Please stop sending HTML junk to the mailing list.
--
Ciao, / /
/--/
/ / ANS
_______________________________________________
C++-sig mailing list
C++-sig python.org
http:
//mail.python.org/mailman/listinfo/c++-sig
|
|
| Re: ActiveState Python 2.5.1.1, Boost
1.34.1 and MSVC 8 SP1 problem |

|
2008-03-28 07:42:26 |
> >>> import TTBridge
> Traceback (most recent call last):
> File "", line 1, in ?
> ImportError: No module named TTBridge
> Are you sure your module is on the Python25
PYTHONPATH ?
Yes, I tested it also.
However, we start considering another approach to this
problem.
We can use Python 2.4 until we found a workaraound. That is
a pity
but unavoidable in these conditions (I don't have the
time).
Cheers
Stefan
P.S.: Sorry about the HTML junk, hope this message is plain
text only!
_______________________________________________
C++-sig mailing list
C++-sig python.org
http:
//mail.python.org/mailman/listinfo/c++-sig
|
|
| Re: ActiveState Python 2.5.1.1, Boost
1.34.1 and MSVC 8 SP1 problem |
  United States |
2008-03-28 10:03:52 |
Stefan.Borovac t-online.de wrote:
> I'am currently working on small project which involves
> a python programm which calls a C++ DLL using Boost
Python.
>
> Everything worked fine using ActiveState Python
2.3.2-232 and ActiveState Python
> 2.4.3.12.
> But after switching to ActiveState Python 2.5.1.1, I
can not import the DLL
> anymore (without
> any detailed error message). It simply doesn't work.
Try renaming your .dll to .pyd? See this section in the
"What's New in
Python 2.5" documentation:
http://docs.python.org/whatsnew/ports.ht
ml#SECTION0001510000000000000000
"Windows: .dll is no longer supported as a filename
extension for
extension modules. .pyd is now the only filename extension
that will be
searched for."
_______________________________________________
C++-sig mailing list
C++-sig python.org
http:
//mail.python.org/mailman/listinfo/c++-sig
|
|
[1-7]
|
|