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

Logging warnings when first import #231

Open
Sheile opened this issue Aug 7, 2019 · 6 comments
Open

Logging warnings when first import #231

Sheile opened this issue Aug 7, 2019 · 6 comments

Comments

@Sheile
Copy link

Sheile commented Aug 7, 2019

Summary

When import parser in addresslib first time, I'm getting same warning that is #196
When import next time, warnings aren't displayed.

IMO, The parser is working correctly.

Reproduce

  1. uninstall flanker
% pip uninstall -y flanker
Uninstalling flanker-0.9.0:
  Successfully uninstalled flanker-0.9.0
  1. install flanker
% pip install flanker
...
Installing collected packages: flanker
  Running setup.py install for flanker ... done
Successfully installed flanker-0.9.0
  1. import and get warnings
% python -c 'from flanker.addresslib import address'
Symbol 'mailbox_or_url_list' is unreachable
Symbol 'delim' is unreachable
Symbol 'mailbox_or_url' is unreachable
Symbol 'url' is unreachable
Symbol 'mailbox_or_url_list' is unreachable
Symbol 'delim' is unreachable
Symbol 'mailbox_or_url' is unreachable
Symbol 'mailbox' is unreachable
Symbol 'url' is unreachable
Symbol 'angle_addr' is unreachable
Symbol 'name_addr' is unreachable
Symbol 'phrase' is unreachable
Symbol 'mailbox_or_url_list' is unreachable
Symbol 'delim' is unreachable
Symbol 'mailbox_or_url' is unreachable
Symbol 'mailbox' is unreachable
Symbol 'addr_spec' is unreachable
Symbol 'angle_addr' is unreachable
Symbol 'name_addr' is unreachable
Symbol 'phrase' is unreachable
Symbol 'local_part' is unreachable
Symbol 'domain' is unreachable
Symbol 'quoted_string' is unreachable
Symbol 'domain_literal' is unreachable
Symbol 'quoted_string_text' is unreachable
Symbol 'domain_literal_text' is unreachable
Symbol 'mailbox_or_url_list' is unreachable
Symbol 'delim' is unreachable
  1. import and DON'T get warnings
% python -c 'from flanker.addresslib import address'

Remarks

Python: 3.7.4
flanker: 0.9.0

@Sheile
Copy link
Author

Sheile commented Aug 7, 2019

flanker 0.9.8 is working without warnings.
Could you release 0.9.8 to PyPI?

pip uninstall -y flanker
pip install git+https://github.com/mailgun/[email protected]
python -c 'from flanker.addresslib import address'

@rotem-dafni
Copy link

We're using flanker 0.9.11 in AWS Lambda (python3.6) and still seeing these warnings

@marban
Copy link

marban commented Mar 5, 2020

In case this has been fixed in 0.9.12, could you release the package?

@n3storm
Copy link

n3storm commented Mar 11, 2020

It is not solved.

Python 3.5.3 debian
Pip install from git and I get same output.

The problem is we are using flanker in a postfix transport and error returns as a mail delivery error.

ap-wtioit added a commit to ap-wtioit/docker-odoo-base that referenced this issue Mar 9, 2022
and ignore the warnings printed on the first import
see mailgun/flanker#231
ap-wtioit added a commit to ap-wtioit/docker-odoo-base that referenced this issue Mar 9, 2022
and ignore the warnings printed on the first import
see mailgun/flanker#231
@Torxed
Copy link

Torxed commented Feb 19, 2023

I'm also curious why this triest to create files on my system after launch:

Couldn't create 'flanker.addresslib._parser.mailbox_parsetab'. [Errno 13] Permission denied: '/usr/lib/python3.10/site-packages/flanker/addresslib/_parser/mailbox_parsetab.py'

Felt extremely sketchy.

@danielkauffman
Copy link

@Torxed Are you using Debian or a derivative? See my bug report at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033714

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

6 participants