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

RuntimeWarning: 'cli_proton_python.sender' found in sys.modules after import of package 'cli_proton_python', but prior to execution of 'cli_proton_python.sender' #58

Open
jiridanek opened this issue Apr 19, 2023 · 1 comment

Comments

@jiridanek
Copy link
Member

% python3 -m cli_proton_python.sender --log-msgs=dict
<frozen runpy>:128: RuntimeWarning: 'cli_proton_python.sender' found in sys.modules after import of package 'cli_proton_python', but prior to execution of 'cli_proton_python.sender'; this may result in unpredictable behaviour
@jiridanek
Copy link
Member Author

jiridanek commented May 15, 2023

Running cli from source directory does not work

$ python3 cli_proton_python/sender.py --log-msgs=dict
Traceback (most recent call last):
  File "/home/jdanek/repos/testing/cli/cli-proton-python/cli_proton_python/sender.py", line 33, in <module>
    from cli_proton_python import coreclient, options, utils
ModuleNotFoundError: No module named 'cli_proton_python'

So to run from source, set PYTHONPATH

$ PYTHONPATH=. python3 cli_proton_python/sender.py --log-msgs=dict
ERROR {'cause' :'Transport error: proton.pythonio - Connection refused to all addresses'}
ERROR {'cause' :'Transport error: proton.pythonio - Connection refused to all addresses'}

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

No branches or pull requests

1 participant