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

Receive userWarning: Charset-Normalizer require 'C:\Users\juergens\AppData\Local\Temp\_MEI143042\charset_normalizer\assets/frequencies.json' #86

Closed
hjs-develop opened this issue Sep 1, 2021 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@hjs-develop
Copy link

hjs-develop commented Sep 1, 2021

Describe the bug
A package has dependency to charset-normalizer 2.0.4
We use Pyinstaller to package our application into an EXEcutable.

Executing the EXE brings this waring:
charset_normalizer\assets_init.py:17: UserWarning: Charset-Normalizer require 'C:\Users\juergens\AppData\Local\Temp_MEI143042\charset_normalizer\assets/frequencies.json' to be existent for language/coherence detection. Detection WILL be weaker._

Expected behavior
No warning.

Desktop (please complete the following information):

  • OS: Windows 10
  • Python version 2.9.1
  • Package version 2.0.4

Additional context
The requested JSON frequencies.json is not found in the Conda package of v2.0.4, nor found in teg Github repo of charset-normalizer.
The folder charset_normalizer\assets only includes the _init_.py file.

The folder Temp_MEI143042 is created by PYinstaller to unpack the EXE into a temp folder before execution.

@hjs-develop hjs-develop added bug Something isn't working help wanted Extra attention is needed labels Sep 1, 2021
@Ousret
Copy link
Collaborator

Ousret commented Sep 2, 2021

Hi,

This should not happen. The package is no longer dependent on frequencies.json since https://github.com/Ousret/charset_normalizer/releases/tag/2.0.1 #55
Yet you mention v2.0.4,

Either something is wrong with the Conda package and I am not the package maintainer at Conda, or you have two versions installed/conflict. Make sure that you have only the latest installed.

@hjs-develop
Copy link
Author

Thank you for your swift rely.

I solved it to us in the conda environment pip to install von PyPi and not Anaconda repro. So it is definitly a bug of the package charset-normalizer==2.0.4 used as Conda package.

Thanks again!
HJ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants