pycryptodome 3.5.1 stop working after installing python "requests" packages

20 views
Skip to first unread message

Herman Wijaya

unread,
Mar 20, 2018, 3:13:46 AM3/20/18
to PyCryptodome
My pycryptodome 3.5.1 stop working after installing the following python "requests" packages:
    asn1crypto:      0.24.0-py36_0
    ca-certificates: 2017.08.26-h94faf87_0
    cffi:            1.11.5-py36h945400d_0
    chardet:         3.0.4-py36h420ce6e_1
    cryptography:    2.1.4-py36he1d7878_0
    idna:            2.6-py36h148d497_1
    openssl:         1.0.2n-h74b6da3_0
    pycparser:       2.18-py36hd053e01_1
    pyopenssl:       17.5.0-py36h5b7d817_0
    pysocks:         1.6.8-py36_0
    requests:        2.18.4-py36h4371aae_1
    six:             1.11.0-py36h4db2310_1
    urllib3:         1.22-py36h276f60a_0
    win_inet_pton:   1.0.1-py36he67d7fd_1
Any solutions? I've rolled-back my environment and it works again normally. Thanks.

Helder Eijs

unread,
Mar 20, 2018, 5:09:48 AM3/20/18
to Herman Wijaya, PyCryptodome
Hi Herman,

That's bizarre. Could you share what error or exception you see exactly?

It could be that one of those packages pulls the old pycrypto, but
that does not seem the case to me.

H.E.
> --
> You received this message because you are subscribed to the Google Groups
> "PyCryptodome" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pycryptodome...@googlegroups.com.
> To post to this group, send email to pycryp...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Herman Wijaya

unread,
Mar 20, 2018, 9:30:22 AM3/20/18
to Helder Eijs, PyCryptodome
Hi Helder,

Good to hear from you!

After I installed the "requests" and its dependency packages, I was trying to use run my script which uses the RSA key generator (RSA.generate(2048)) from the Cryptodome.PublicKey. It throwed this error:
gnu mp: cannot allocate memory (old_size=8 new_size=187904819464)

Similarly, when I tried to switch using the ECC key generator (ECC.generate(curve="P-256") for DSS, it also didn't work. Unfortunately I didn't capture the error for this.

I used conda package manager and able to roll-back to the previous environment state. Upon rolling-back to the earlier state, all the above calls work perfectly fine.

Best regards,

Herman Wijaya
SSCP, BCompSc-DSS (UOW)

Helder Eijs

unread,
Mar 20, 2018, 5:38:19 PM3/20/18
to Herman Wijaya, PyCryptodome
Hi Herman,

If you don't mind, could you answer these 3 questions:
1) Which OS are you using (Linux/Windows 7/Mac, 32/64 bits)?
2) To which version have you rolled back?
3) Are you using package pycryptodome (Crypto.PublicKey) or
pycryptodomex (Cryptodome.PublicKey)?

Thanks,

H.E.
>> > email to pycryptodome...@googlegroups.com.

Herman Wijaya

unread,
Mar 20, 2018, 7:45:18 PM3/20/18
to Helder Eijs, PyCryptodome
Hi Helder,

1. I'm using Windows 10 64-bit
2. I'm using Anaconda distribution and rolled back my earlier Python environment by removing the "requests" package and its dependancies as the following:
>     asn1crypto:      0.24.0-py36_0
>     ca-certificates: 2017.08.26-h94faf87_0
>     cffi:            1.11.5-py36h945400d_0
>     chardet:         3.0.4-py36h420ce6e_1
>     cryptography:    2.1.4-py36he1d7878_0
>     idna:            2.6-py36h148d497_1
>     openssl:         1.0.2n-h74b6da3_0
>     pycparser:       2.18-py36hd053e01_1
>     pyopenssl:       17.5.0-py36h5b7d817_0
>     pysocks:         1.6.8-py36_0
>     requests:        2.18.4-py36h4371aae_1
>     six:             1.11.0-py36h4db2310_1
>     urllib3:         1.22-py36h276f60a_0
>     win_inet_pton:   1.0.1-py36he67d7fd_1
3. I'm using pycryptodomex package (Cryptodome.PublicKey)

Many thanks.


Best regards,

Herman Wijaya
SSCP, BCompSc-DSS (UOW)

Reply all
Reply to author
Forward
0 new messages