Repository navigation
MemoryError #12
Description
JMSwag asked me to report this error here (Please report to python-ed25519. I get the same error when I execute ed25519 from the repl.), this is in reference of the fololwing issue:
Digital-Sapphire/PyUpdater#45
How to reproduce:
pip install -U https://github.com/JMSwag/PyUpdater/tarball/master
Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
C:\Users\marce\repo\nextgendash>pyupdater keys -c
99 INFO: PyUpdater 0+unknown
[INFO] PyUpdater 0+unknown
99 DEBUG: PyUpdater config data folder is missing
99 ERROR: Not a PyUpdater repo: You must initialize your repository first
[ERROR] Not a PyUpdater repo: You must initialize your repository first
Please enter app name - No Default Available
--> SimRacingDash
5604 DEBUG: Under None
You entered SimRacingDash, is this correct?
[N/y]?y
8082 DEBUG: Must be true
8098 ERROR:
[ERROR]
8098 DEBUG:
Traceback (most recent call last):
File "c:\users\marce\appdata\local\programs\python\python36\lib\site-packages\pyupdater\key_handler\keys.py", line 99, in _gen_keypack
app_pri, app_pub = self._make_keys()
File "c:\users\marce\appdata\local\programs\python\python36\lib\site-packages\pyupdater\key_handler\keys.py", line 150, in _make_keys
privkey, pubkey = ed25519.create_keypair()
File "c:\users\marce\appdata\local\programs\python\python36\lib\site-packages\ed25519\keys.py", line 10, in create_keypair
sk = SigningKey(seed)
File "c:\users\marce\appdata\local\programs\python\python36\lib\site-packages\ed25519\keys.py", line 85, in init
vk_s, sk_s = _ed25519.publickey(sk_s)
MemoryError
8098 ERROR: Failed to create keypair; please report this issue on https://github.com/JMSwag/PyUpdater/issues
[ERROR] Failed to create keypair; please report this issue on https://github.com/JMSwag/PyUpdater/issues
8098 ERROR: Failed to create keypack
[ERROR] Failed to create keypack
C:\Users\marce\repo\nextgendash>
Activity
soundstripe commentedon Nov 25, 2017
I'm having the same issue--
Steps to reproduce:
wolfamongus2 commentedon Jan 7, 2018
@soundstripe @marcelomanzo Same here, any idea how to fix? To be fair I couldn't create any keys so I did: if ns.create is True and False: Rather than just True
log.error('You can not create off-line keys on your dev machine')
return
corneyl commentedon Jan 24, 2018
Same problem here, using Windows 10 and the stellar-base package.
Traceback:
acaspy commentedon Jan 31, 2018
same problem here stellar-base on win10 python 3.6.4
signing_key = ed25519.SigningKey(raw_seed) File "C:\Users\acaspy\ticketfactory\venv\lib\site-packages\ed25519\keys.py", line 85, in __init__ vk_s, sk_s = _ed25519.publickey(sk_s) MemoryErrorwbinek commentedon Mar 12, 2018
Same problem, Windows 10, python 3.6.4. Is there any idea how to fix it?
acaspy commentedon Mar 12, 2018
flutefreak7 commentedon Feb 5, 2019
I'm getting the same as OP with PyUpdater.
I am on Windows 10, Python 3.7.2 from Anaconda.
I can do one of the above examples fine:
But I get the same error as OP with the call to publickey.
Here's a bit of PyUpdater code that leads to the error:
This makes me wonder if it's something with the inputs to SigningKey - either the
private_key_rawor thekey_encoding.key_encodingis set to 'base64'.skyf0xx commentedon Mar 28, 2019
Downgraded to Python 3.6.0 and this solved it for me.
okready commentedon Apr 18, 2019
I opened a PR (#14) for what I believe fixes the issue. It seems to only occur with 64-bit versions of Python on Windows; 32-bit versions of Python (regardless of whether Windows itself is 32-bit or 64-bit) appear to be unaffected by the bug.
For anyone who tried downgrading, do you recall whether you switched to a 32-bit version of Python in the process?
warner commentedon Jun 1, 2019
I just released version 1.5 with that fix.. sorry it took so long. Could someone with an affected system give the new version a try and let me know if it works now?
JMSwag commentedon Jun 9, 2019
@warner 1.5 works without issue. Thanks!
Windows 10
Python 64bit