Skip to content
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

Client - Getting AttributeError when using ./start #6947

Open
rapcmia opened this issue Apr 3, 2024 · 5 comments
Open

Client - Getting AttributeError when using ./start #6947

rapcmia opened this issue Apr 3, 2024 · 5 comments
Labels

Comments

@rapcmia
Copy link
Contributor

rapcmia commented Apr 3, 2024

Describe the bug

There instances that when we open the client using ./start command on CLI, we are getting AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'. Did you mean: 'X509_V_FLAG_EXPLICIT_POLICY'?

(hummingbot)  ✘ ralph@hbot01  ~/github/hummingbot/6887   feat/coinbase_advanced_trade_v2.1  ./start
Traceback (most recent call last):
  File "/home/ralph/github/hummingbot/6887/./bin/hummingbot_quickstart.py", line 32, in <module>
    from hummingbot.core.management.console import start_management_console
  File "/home/ralph/github/hummingbot/6887/hummingbot/core/management/console.py", line 10, in <module>
    import asyncssh
  File "/home/ralph/miniconda3/envs/hummingbot/lib/python3.10/site-packages/asyncssh/__init__.py", line 31, in <module>
    from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
  File "/home/ralph/miniconda3/envs/hummingbot/lib/python3.10/site-packages/asyncssh/agent.py", line 34, in <module>
    from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
  File "/home/ralph/miniconda3/envs/hummingbot/lib/python3.10/site-packages/asyncssh/public_key.py", line 35, in <module>
    from .crypto import ed25519_available, ed448_available
  File "/home/ralph/miniconda3/envs/hummingbot/lib/python3.10/site-packages/asyncssh/crypto/__init__.py", line 58, in <module>
    from .x509 import X509Certificate, X509Name, X509NamePattern
  File "/home/ralph/miniconda3/envs/hummingbot/lib/python3.10/site-packages/asyncssh/crypto/x509.py", line 32, in <module>
    from OpenSSL import crypto
  File "/home/ralph/miniconda3/envs/hummingbot/lib/python3.10/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/home/ralph/miniconda3/envs/hummingbot/lib/python3.10/site-packages/OpenSSL/crypto.py", line 1579, in <module>
    class X509StoreFlags(object):
  File "/home/ralph/miniconda3/envs/hummingbot/lib/python3.10/site-packages/OpenSSL/crypto.py", line 1598, in X509StoreFlags
    NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'. Did you mean: 'X509_V_FLAG_EXPLICIT_POLICY'?

Note: For monitoring purpose

Steps to reproduce

TBA

Release version

dev-1.27.0

Type of installation

Source

Attach required files

No response

@rapcmia rapcmia added the bug label Apr 3, 2024
@nikspz
Copy link
Contributor

nikspz commented Apr 11, 2024

Reproduced (dev-1.27.0)

image

@nikspz
Copy link
Contributor

nikspz commented Apr 16, 2024

as workaround do clean reinstall with conda clean -a

./clean
conda deactivate
./uninstall
conda clean -a

Then

./install
conda activate hummingbot
./compile

@p-meier
Copy link
Contributor

p-meier commented May 3, 2024

any progress on this bug?

Having the same issue after updating the development branch and always completely building the conda-env from fresh is not that funny.

@nikspz any idea what is causing that bug?

@nikspz
Copy link
Contributor

nikspz commented May 6, 2024

I cathed this when changed port for gateway. On latest version can't reproduce this one.

P.s.
Also some commit on development had this issue for ./start command
image

fix merged to latest development now

@p-meier
Copy link
Contributor

p-meier commented May 7, 2024

That sounds great, thanks for the fix. Will see if it works after the next development-branch pull.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants