Hi Markus,

thanks for pointing this out. The reason for that error message is that
signal.SIGPIPE is not available under windows. This seems to have slipped
below our radar, since we developed the code on Linux.

There is a simple solution to this: In the mmpdb file, one needs to
import os

and then change the error-causing line to:
if not os.name=="nt": signal.signal(signal.SIGPIPE, signal.SIG_DFL)

That solves the problem on my window laptop.

I will add this and update mmpdb in the repo asap.

Bests,
Christian


*Dr. Christian Kramer*

Computer-Aided Drug Design (CADD) Scientist


F. Hoffmann-La Roche Ltd

Pharma Research and Early Development
Bldg. 092/3.56 C

CH-4070 Basel


Phone +41 61 682 2471

mailto: christian.kra...@roche.com


*Confidentiality Note: *This message is intended only for the use of the
named recipient(s) and may contain confidential and/or proprietary
information. If you are not the intended recipient, please contact the
sender and delete this message. Any unauthorized use of the information
contained in this message is prohibited.

On Fri, Sep 22, 2017 at 2:01 PM, Peter Gedeck <peter.ged...@gmail.com>
wrote:

> Here is a relevant stackoverflow question.
>
> https://stackoverflow.com/questions/1948862/is-the-
> python-3-x-signal-library-for-windows-incomplete
>
> What happens if you comment out the code if you run on windows?
>
> Best
>
> Peter
> On Fri, Sep 22, 2017 at 7:25 AM Markus Metz <metm...@gmail.com> wrote:
>
>> Hello Christian:
>>
>> I am trying to install your program and get the following error message:
>>
>> $ mmpdb help-analysis
>> Traceback (most recent call last):
>>   File "C:/Users/---/Anaconda3/envs/my-rdkit-env/Scripts/mmpdb", line 8,
>> in <module>
>>     signal.signal(signal.SIGPIPE, signal.SIG_DFL) # Allow the output pipe
>> to be closed
>> AttributeError: module 'signal' has no attribute 'SIGPIPE'
>>
>> Not sure what to do about it. Any input would be greatly appreciated.
>>
>> Cheers,
>> Markus
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot______
>> _________________________________________
>> Rdkit-discuss mailing list
>> Rdkit-discuss@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
>>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Rdkit-discuss mailing list
> Rdkit-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to