-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get AttributeError: type object 'EllipticCurvePublicKey' has no attribute 'from_encoded_point' #305
Comments
This seems to have fixed it (found on https://stackoverflow.com/questions/54861026/how-to-silence-ellipticcurvepublicnumbers-encode-point-cryptographydeprecationwa?noredirect=1&lq=1) (I have no idea if this is a good idea or not; I know almost nothing about the python ecosystem, other than it's mostly a giant hairball of pain and suffering.) james@gig:~/workspace/awsemrlocaldocker$ pip3 install --upgrade paramiko |
Leaving the bug open because it seems like the install of flintrock should have picked this up as a problem. I'd understand if you want to close this as not-a-flintrock-bug though. |
Install of flintrock was by: pip3 install flintrock |
Hmm, can you reproduce the error and then share the output of Can you also share the output you got when you first installed Flintrock? I'm not clear on how you got an outdated version of Cryptography with the install. For the record, if working with Python is painful for you, you can always install the stand-alone version of Flintrock that bundles its own Python interpreter. |
After I updated paramiko, the error went away, so unfortunately I can't give you a repro any more. Here's the pip3 list output output though, if it's useful. Package Version apturl 0.5.2 |
And I don't remember seeing errors or warnings when I did the initial pip3 install flintrock. If there was output, though, I didn't capture it in any way. |
The only other information I can think of is that this is an initial install of flintrock, not an update. I never used previous versions. |
Hmm, it will be difficult to figure out what happened if you can't reproduce the issue. What I can say is that Flintrock already specifies Paramiko 2.7, so you should not have needed to do a separate upgrade of that package. The correct version of Paramiko would have been installed alongside Flintrock. So I suspect something was off either during the initial installation of Flintrock, or perhaps at some point after, causing the wrong version of Paramiko to get installed. You seem to be installing Flintrock into your global Python environment, which makes it possible that something else you installed after Flintrock into the same global environment bumped the version of Paramiko down. If you hit this issue again, feel free to reopen the ticket and we can continue the discussion. |
Flintrock version:
james@gig:~/workspace/awsemrlocaldocker$ flintrock --version
flintrock, version 1.0.0
Python version:
james@gig:~/workspace/awsemrlocaldocker$ /usr/bin/python3 --version
Python 3.7.3
OS:
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
Launch a cluster, say yes to
Do you want to terminate the 3 instances created by this operation? [Y/n]: y
Get this error:
james@gig:~/workspace/awsemrlocaldocker$ flintrock launch teststuff
Warning: Downloading Spark from an Apache mirror. Apache mirrors are often slow and unreliable, and typically only serve the most recent releases. We strongly recommend you specify a custom download source. For more background on this issue, please see: #238
Requesting 3 spot instances at a max price of $0.007...
0 of 3 instances granted. Waiting...
All 3 instances granted.
Do you want to terminate the 3 instances created by this operation? [Y/n]: y
Terminating instances...
Traceback (most recent call last):
File "/home/james/.local/bin/flintrock", line 10, in
sys.exit(main())
File "/home/james/.local/lib/python3.7/site-packages/flintrock/flintrock.py", line 1187, in main
cli(obj={})
File "/home/james/.local/lib/python3.7/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/james/.local/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/james/.local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/james/.local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/james/.local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/james/.local/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/james/.local/lib/python3.7/site-packages/flintrock/flintrock.py", line 456, in launch
tags=ec2_tags)
File "/home/james/.local/lib/python3.7/site-packages/flintrock/ec2.py", line 53, in wrapper
res = func(*args, **kwargs)
File "/home/james/.local/lib/python3.7/site-packages/flintrock/ec2.py", line 955, in launch
identity_file=identity_file)
File "/home/james/.local/lib/python3.7/site-packages/flintrock/core.py", line 625, in provision_cluster
run_against_hosts(partial_func=partial_func, hosts=hosts)
File "/home/james/.local/lib/python3.7/site-packages/flintrock/core.py", line 492, in run_against_hosts
future.result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/james/.local/lib/python3.7/site-packages/flintrock/core.py", line 675, in provision_node
wait=True)
File "/home/james/.local/lib/python3.7/site-packages/flintrock/ssh.py", line 66, in get_ssh_client
client.load_system_host_keys()
File "/home/james/.local/lib/python3.7/site-packages/paramiko/client.py", line 104, in load_system_host_keys
self._system_host_keys.load(filename)
File "/home/james/.local/lib/python3.7/site-packages/paramiko/hostkeys.py", line 101, in load
e = HostKeyEntry.from_line(line, lineno)
File "/home/james/.local/lib/python3.7/site-packages/paramiko/hostkeys.py", line 364, in from_line
key = ECDSAKey(data=decodebytes(key), validate_point=False)
File "/home/james/.local/lib/python3.7/site-packages/paramiko/ecdsakey.py", line 163, in init
key = ec.EllipticCurvePublicKey.from_encoded_point(
AttributeError: type object 'EllipticCurvePublicKey' has no attribute 'from_encoded_point'
The text was updated successfully, but these errors were encountered: