emorjon2 0 Newbie Poster

Hi all!

I try to install PyBluez on my python 2.6 in Windows 7, so a can communicate with my NXT brick,
but it seens like there's a file in the library that dosn't work.
When I installed PyBluez, it was impossible to import the library into code because
then I got this message:

>>> import bluetooth

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import bluetooth
  File "C:\Python26\lib\site-packages\bluetooth\__init__.py", line 31, in <module>
    from msbt import *
  File "C:\Python26\lib\site-packages\bluetooth\msbt.py", line 2, in <module>
    import _msbt as bt
ImportError: DLL load failed: %1 är inte ett giltigt Win32-program.
>>>

"%1 är inte ett giltigt Win32-program" is in swedish and means "%1 is not a valid Win32-software", so a DLL file in the library is probably damaged or simply
not seen by the computer as a DLL.

please help me! I have installed it before on windows XP on my old computer, and in
that time it worked. But not now on my new computer with Windows 7.

will be very happy for answers! :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.