divio-cli is installed but still getting SyntaxError: invalid syntax - authentication

I am working on a Django project and i want to pull database from divio but when I run divio login or divio --version or only divio, i am getting this error (divio is installed)
Traceback (most recent call last):
File "C:\python\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\python\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\python\Scripts\divio.exe\__main__.py", line 4, in <module>
File "C:\python\lib\site-packages\divio_cli\cli.py", line 13, in <module>
from . import exceptions, localdev, messages, settings
File "C:\python\lib\site-packages\divio_cli\localdev\__init__.py", line 1, in <module>
from .main import * # NOQA
File "C:\python\lib\site-packages\divio_cli\localdev\main.py", line 19, in <module>
from ..cloud import get_divio_zone
File "C:\python\lib\site-packages\divio_cli\cloud.py", line 10, in <module>
from dateutil.parser import isoparse
File "C:\python\lib\site-packages\dateutil\parser.py", line 158
l.append("%s=%s" % (attr, `value`))
^
SyntaxError: invalid syntax
i tried to uninstall and install it again but still invain

Related

GLIBCXX_3.4.26' not found

```Traceback (most recent call last):
File "/home/<my_user_name>/.conda/envs/sam/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/<my_user_name>/.conda/envs/sam/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/<my_user_name>/sam/sam/sam_jax/train.py", line 23, in <module>
from sam.sam_jax.datasets import dataset_source as dataset_source_lib
File "/home/<my_user_name>/sam/sam/sam_jax/datasets/dataset_source.py", line 23, in <module>
from sam.sam_jax.datasets import augmentation
File "/home/<my_user_name>/sam/sam/sam_jax/datasets/augmentation.py", line 20, in <module>
from sam.autoaugment import autoaugment
File "/home/<my_user_name>/sam/sam/autoaugment/autoaugment.py", line 29, in <module>
import tensorflow.compat.v1 as tf
File "/home/<my_user_name>/.conda/envs/sam/lib/python3.10/site-packages/tensorflow/__init__.py", line 37, in <module>
from tensorflow.python.tools import module_util as _module_util
File "/home/<my_user_name>/.conda/envs/sam/lib/python3.10/site-packages/tensorflow/python/__init__.py", line 36, in <module>
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
File "/home/<my_user_name>/.conda/envs/sam/lib/python3.10/site-packages/tensorflow/python/pywrap_tensorflow.py", line 77, in <module>
raise ImportError(
ImportError: Traceback (most recent call last):
File "/home/<my_user_name>/.conda/envs/sam/lib/python3.10/site-packages/tensorflow/python/pywrap_tensorflow.py", line 62, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/<my_user_name>/.conda/envs/sam/lib/python3.10/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)'''
While trying to run deep learning code (JAX + TensorFlow), I encountered the above error message.
Our cluster is based on Rocky Linux 8.7.
What I've tried so far
I updated the libstdc++.so.6 link to the new version following thread.
Now, when I type strings /lib64/libstdc++.so.6 | grep GLIBCXX, I find that >= 3.4.26 versions are already installed. However, the error is not addressed.
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_3.4.26
GLIBCXX_3.4.27
GLIBCXX_3.4.28
GLIBCXX_3.4.29
GLIBCXX_3.4.30
GLIBCXX_DEBUG_MESSAGE_LENGTH
_ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv#GLIBCXX_3.4
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv##GLIBCXX_3.4.5
_ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw#GLIBCXX_3.4
_ZNKSt14basic_ifstreamIwSt11char_traitsIwEE7is_openEv##GLIBCXX_3.4.5
GLIBCXX_3.4.21
GLIBCXX_3.4.9
_ZSt10adopt_lock##GLIBCXX_3.4.11
GLIBCXX_3.4.10
GLIBCXX_3.4.16
GLIBCXX_3.4.1
_ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv#GLIBCXX_3.4
GLIBCXX_3.4.28
_ZNSs7_M_copyEPcPKcm#GLIBCXX_3.4
GLIBCXX_3.4.25
_ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv##GLIBCXX_3.4.5
_ZNSs7_M_moveEPcPKcm##GLIBCXX_3.4.5
_ZNKSt13basic_fstreamIwSt11char_traitsIwEE7is_openEv#GLIBCXX_3.4
_ZNKSt13basic_fstreamIcSt11char_traitsIcEE7is_openEv#GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEm##GLIBCXX_3.4.5
_ZNSs4_Rep26_M_set_length_and_sharableEm#GLIBCXX_3.4
_ZSt10defer_lock##GLIBCXX_3.4.11
_ZN10__gnu_norm15_List_node_base4swapERS0_S1_##GLIBCXX_3.4
_ZNSs9_M_assignEPcmc##GLIBCXX_3.4.5
_ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEmmPKc##GLIBCXX_3.4.5
_ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv##GLIBCXX_3.4.5
_ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwm#GLIBCXX_3.4
GLIBCXX_3.4.24
_ZNVSt9__atomic011atomic_flag12test_and_setESt12memory_order##GLIBCXX_3.4.11
GLIBCXX_3.4.20
_ZNSt11char_traitsIwE2eqERKwS2_##GLIBCXX_3.4.5
GLIBCXX_3.4.12
_ZNSi6ignoreEv##GLIBCXX_3.4.5
GLIBCXX_3.4.2
_ZNSt11char_traitsIcE2eqERKcS2_##GLIBCXX_3.4.5
GLIBCXX_3.4.6
_ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE#GLIBCXX_3.4.11
GLIBCXX_3.4.15
_ZNKSt13basic_fstreamIcSt11char_traitsIcEE7is_openEv##GLIBCXX_3.4.5
_ZNSs9_M_assignEPcmc#GLIBCXX_3.4
GLIBCXX_3.4.19
_ZNKSt14basic_ofstreamIwSt11char_traitsIwEE7is_openEv#GLIBCXX_3.4
_ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv#GLIBCXX_3.4
GLIBCXX_3.4.27
_ZN10__gnu_norm15_List_node_base7reverseEv##GLIBCXX_3.4
_ZN10__gnu_norm15_List_node_base4hookEPS0_##GLIBCXX_3.4
_ZNSt11char_traitsIwE2eqERKwS2_#GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwm#GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwm##GLIBCXX_3.4.5
GLIBCXX_3.4.23
GLIBCXX_3.4.3
GLIBCXX_3.4.7
_ZNSi6ignoreEl##GLIBCXX_3.4.5
_ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw##GLIBCXX_3.4.5
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv#GLIBCXX_3.4
_ZNKSt13basic_fstreamIwSt11char_traitsIwEE7is_openEv##GLIBCXX_3.4.5
_ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwm##GLIBCXX_3.4.5
GLIBCXX_3.4.18
_ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEm#GLIBCXX_3.4
GLIBCXX_3.4.30
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEl##GLIBCXX_3.4.5
_ZSt15future_category##GLIBCXX_3.4.14
_ZNSi6ignoreEl#GLIBCXX_3.4
GLIBCXX_3.4.29
_ZNSt11char_traitsIcE2eqERKcS2_#GLIBCXX_3.4
_ZNKSs15_M_check_lengthEmmPKc#GLIBCXX_3.4
_ZN10__gnu_norm15_List_node_base8transferEPS0_S1_##GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwmw#GLIBCXX_3.4
_ZNVSt9__atomic011atomic_flag5clearESt12memory_order##GLIBCXX_3.4.11
_ZNKSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv##GLIBCXX_3.4.5
_ZNKSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv#GLIBCXX_3.4
_ZNSs7_M_moveEPcPKcm#GLIBCXX_3.4
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEl#GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwmw##GLIBCXX_3.4.5
_ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEmmPKc#GLIBCXX_3.4
_ZNKSs11_M_disjunctEPKc##GLIBCXX_3.4.5
_ZN10__gnu_norm15_List_node_base6unhookEv##GLIBCXX_3.4
GLIBCXX_3.4.22
_ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv##GLIBCXX_3.4.5
_ZNSi6ignoreEv#GLIBCXX_3.4
_ZNSs7_M_copyEPcPKcm##GLIBCXX_3.4.5
GLIBCXX_3.4.8
GLIBCXX_3.4.13
_ZSt11try_to_lock##GLIBCXX_3.4.11
_ZNKSt14basic_ofstreamIwSt11char_traitsIwEE7is_openEv##GLIBCXX_3.4.5
GLIBCXX_3.4.17
GLIBCXX_3.4.4
_ZNKSs15_M_check_lengthEmmPKc##GLIBCXX_3.4.5
_ZNKSt14basic_ifstreamIwSt11char_traitsIwEE7is_openEv#GLIBCXX_3.4
_ZNSs4_Rep26_M_set_length_and_sharableEm##GLIBCXX_3.4.5
GLIBCXX_3.4.26
_ZNKSs11_M_disjunctEPKc#GLIBCXX_3.4
I find that installing newer version of gcc can address the problem as in this thread.
However, the solution seems to only work with Ubuntu. How can I apply this to Rocky Linux?
I would really appreciate it if someone could give some solutions.

having trouble running auto-py-to-exe

I was having trouble running auto-py-to-exe and after executing, this will appear.
I'm not sure if any of my installed packages are cause for this issue. I tried to reinstall but still this problem will appear. What can I do to fix this?
C:\Users\Admin>auto-py-to-exe
Traceback (most recent call last):
File "c:\users\admin\appdata\local\programs\python\python36-32\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\admin\appdata\local\programs\python\python36-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\Scripts\auto-py-to-exe.exe_main_.py", line 5, in
File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\auto_py_to_exe_main_.py", line 10, in
from . import ui
File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\auto_py_to_exe\ui.py", line 5, in
import eel
File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\eel_init_.py", line 13, in
import pyparsing as pp
File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pyparsing_init_.py", line 130, in
version = version_info.version
AttributeError: 'version_info' object has no attribute 'version'

AttributeError: module 'tensorflow.python.pywrap_tensorflow' has no attribute 'TFE_MonitoringNewCounter0'

I'm using Rasa for a chatbot project and recently completed the installation. When I try to train my bot using the 'rasa train' command, it shows me this error and I cant seem to find a way to solve it.
I've reinstalled tensorflow as suggested on another forum, but it didnt make a difference
Traceback (most recent call last):
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Rithesh\Anaconda3_update\envs\tf_gpu\Scripts\rasa.exe\__main__.py", line 9, in <module>
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\rasa\__main__.py", line 69, in main
set_log_level(log_level)
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\rasa\utils\common.py", line 68, in set_log_level
update_tensorflow_log_level()
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\rasa\utils\common.py", line 87, in update_tensorflow_log_level
import tensorflow as tf
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\tensorflow\__init__.py", line 29, in <module>
from tensorflow._api.v1 import compat
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\tensorflow\_api\v1\compat\__init__.py", line 21, in <module>
from tensorflow._api.v1.compat import v1
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\tensorflow\_api\v1\compat\v1\__init__.py", line 626, in <module>
child_package_str=('tensorflow_estimator.python.estimator.api.estimator'))
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\tensorflow\python\tools\component_api_helper.py", line 56, in package_hook
child_pkg = importlib.import_module(child_package_str)
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\tensorflow_estimator\__init__.py", line 8, in <module>
from tensorflow_estimator._api.v1 import estimator
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\tensorflow_estimator\_api\v1\estimator\__init__.py", line 8, in <module>
from tensorflow_estimator._api.v1.estimator import experimental
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\tensorflow_estimator\_api\v1\estimator\experimental\__init__.py", line 8, in <module>
from tensorflow_estimator.python.estimator.canned.dnn import dnn_logit_fn_builder
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\tensorflow_estimator\python\estimator\__init__.py", line 25, in <module>
import tensorflow_estimator.python.estimator.estimator_lib
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\tensorflow_estimator\python\estimator\estimator_lib.py", line 22, in <module>
from tensorflow_estimator.python.estimator.canned.baseline import BaselineClassifier
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\tensorflow_estimator\python\estimator\canned\baseline.py", line 67, in <module>
from tensorflow_estimator.python.estimator import estimator
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 37, in <module>
from tensorflow.python.eager import monitoring
File "c:\users\rithesh\anaconda3_update\envs\tf_gpu\lib\site-packages\tensorflow\python\eager\monitoring.py", line 31, in <module>
create=pywrap_tensorflow.TFE_MonitoringNewCounter0,
AttributeError: module 'tensorflow.python.pywrap_tensorflow' has no attribute 'TFE_MonitoringNewCounter0'
Did you read this already?
AttributeError: module 'tensorflow.python.pywrap_tensorflow' has no attribute 'TFE_Py_RegisterExceptionClass'
In my experience a clean conda environment goes a long way. Also the order in which you type your conda install commands matters.

How to fix this "TypeError: __init__() missing 1 required positional argument: 'deprecated_to_canonical'?

I am new to Tensorflow and following this tutorial please help me to fix this
I don't what's wrong i can't undarstant why this error
$ python tfml.py
Traceback (most recent call last):
File "tfml.py", line 2, in <module>
import tensorflow as tf
File "C:\Users\rkria\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\__init__.py", line 34, in <module>
from tensorflow._api.v1 import compat
File "C:\Users\rkria\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\_api\v1\compat\__init__.py", line 21, in <module>
from tensorflow._api.v1.compat import v1
File "C:\Users\rkria\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\_api\v1\compat\v1\__init__.py", line 643, in <module>
'tensorflow_estimator.python.estimator.api._v1.estimator'))
File "C:\Users\rkria\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\tools\component_api_helper.py", line 56, in package_hook
child_pkg = importlib.import_module(child_package_str)
File "C:\Users\rkria\AppData\Local\Programs\Python\Python37\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\rkria\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_estimator\__init__.py", line 8, in <module>
from tensorflow_estimator._api.v1 import estimator
File "C:\Users\rkria\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_estimator\_api\v1\estimator\__init__.py", line 8, in <module>
from tensorflow_estimator._api.v1.estimator import experimental
File "C:\Users\rkria\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_estimator\_api\v1\estimator\experimental\__init__.py", line 29, in
<module>
_sys.modules[__name__], "estimator.experimental")
TypeError: __init__() missing 1 required positional argument: 'deprecated_to_canonical'

Observed error while installing PDFMiner for Python2.7

I followed the instruction from here:
file:///home/bioinfo/Descargas/pdfminer3k-1.3.0/docs/index.html
after download pdfminer3k-1.3.0 I did:
python setup.py install
But when I do
pdf2txt.py samples/simple1.pdf
And it doesn't read the pdf, the path is ok.
It give me back the error:
>
Traceback (most recent call last):
File "/usr/local/bin/pdf2txt.py", line 5, in <module>
pkg_resources.run_script('pdfminer3k==1.3.0', 'pdf2txt.py')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1394, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/pdfminer3k-1.3.0-py2.7.egg/EGG-INFO/scripts/pdf2txt.py", line 6, in <module>
from pdfminer.pdfinterp import PDFResourceManager, process_pdf
File "/usr/local/lib/python2.7/dist-packages/pdfminer3k-1.3.0-py2.7.egg/pdfminer/pdfinterp.py", line 5, in <module>
from .cmapdb import CMapDB, CMap
File "/usr/local/lib/python2.7/dist-packages/pdfminer3k-1.3.0-py2.7.egg/pdfminer/cmapdb.py", line 23, in <module>
from .psparser import PSStackParser
File "/usr/local/lib/python2.7/dist-packages/pdfminer3k-1.3.0-py2.7.egg/pdfminer/psparser.py", line 4, in <module>
from .utils import choplist
File "/usr/local/lib/python2.7/dist-packages/pdfminer3k-1.3.0-py2.7.egg/pdfminer/utils.py", line 212, in <module>
0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff,
File "/usr/local/lib/python2.7/dist-packages/pdfminer3k-1.3.0-py2.7.egg/pdfminer/utils.py", line 180, in <genexpr>
PDFDocEncoding = ''.join( chr(x) for x in (
ValueError: chr() arg not in range(256)
Is it any solution?
The latest code (version 20140328) uses unichr(). Try this instead:
pip install pdfminer==20140328
Or download from https://pypi.python.org/pypi/pdfminer/20140328.