Showing posts with label debugging. Show all posts
Showing posts with label debugging. Show all posts

AttributeError: module 'numpy.distutils.__config__' has no attribute 'blas_opt_info'

Errors

AttributeError: module 'numpy.distutils.__config__' has no attribute 'blas_opt_info'


Based on the issue discussed in https://github.com/numpy/numpy/issues/21079, a workaround is to change the cmodule in theano by commenting out the first line below and changing it to the second line.

$ vim ~/anaconda3/envs/pymc_env/lib/python3.10/site-packages/theano/link/c/cmodule.py:2621

2621             #blas_info = numpy.distutils.__config__.blas_opt_info
2622             blas_info = numpy.__config__.blas_opt_info

WARNING:tensorflow:Early stopping conditioned on metric `val_loss` which is not available. Available metrics are: xxx

Error message 

"WARNING:tensorflow:Early stopping conditioned on metric `val_loss` which is not available. Available metrics are: loss,mae,mse,mape"


Cause

This is normally due to the validation dataset is empty, so there is no associated val_loss for the empty validation data.

TypeError: Descriptors cannot not be created directly.

TypeError: Descriptors cannot not be created directly.

If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.

If you cannot immediately regenerate your protos, some other possible workarounds are:

 1. Downgrade the protobuf package to 3.20.x or lower.

 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).  

####################################################


As suggested by the error message itself, we just need to downgrade the protobuf package to 3.20.x or lower.

$ pip install protobuf==3.20.*

[Twitter4J] Re: 401:Authentication credentials were missing or incorrect. - msg#00147

Error while using Twitter4J :
[Twitter4J] Re: 401:Authentication credentials were missing or incorrect. - msg#00147

Solution : 
Check the system time sync refer to the Youtube video below:

Error : The entity “nbsp” was referenced, but not declared

Error : The entity “nbsp” was referenced, but not declared while parsing RDFa using Semalgl parser.


Solution : Using &#160 instead of &nbsp