Import error when using kivy - dll

When I installed kivy and the dependencies successfully, I ran the simple code on kivy's homepage, and this error showed up:
[INFO ] [Logger ] Record log in C:\Users\myname\.kivy\logs\kivy_16-06-04_9.txt
[INFO ] [Kivy ] v1.9.1
[INFO ] [Python ] v3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)]
[INFO ] [Factory ] 179 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
Traceback (most recent call last):
File "C:\Python34\ghhg.py", line 1, in <module>
from kivy.app import App
File "C:\Python34\lib\site-packages\kivy\app.py", line 327, in <module>
from kivy.uix.widget import Widget
File "C:\Python34\lib\site-packages\kivy\uix\widget.py", line 219, in <module>
from kivy.graphics import (
File "C:\Python34\lib\site-packages\kivy\graphics\__init__.py", line 89, in <module>
from kivy.graphics.instructions import Callback, Canvas, CanvasBase, \
File "kivy\graphics\vbo.pxd", line 7, in init kivy.graphics.instructions (kivy\graphics\instructions.c:14640)
cdef class VBO:
File "kivy\graphics\compiler.pxd", line 1, in init kivy.graphics.vbo (kivy\graphics\vbo.c:5482)
cdef class GraphicsCompiler
File "kivy\graphics\shader.pxd", line 5, in init kivy.graphics.compiler (kivy\graphics\compiler.c:2983)
cdef class ShaderSource:
File "kivy\graphics\texture.pxd", line 3, in init kivy.graphics.shader (kivy\graphics\shader.c:11990)
cdef class Texture:
File "kivy\graphics\fbo.pxd", line 5, in init kivy.graphics.texture (kivy\graphics\texture.c:31800)
cdef class Fbo(RenderContext):
File "kivy\graphics\fbo.pyx", line 84, in init kivy.graphics.fbo (kivy\graphics\fbo.c:7683)
ImportError: DLL load failed: The specified procedure could not be found.
I replaced the code with this line:
from kivy.uix.button import Button
And this error popped up:
[INFO ] [Logger ] Record log in C:\Users\myname\.kivy\logs\kivy_16-06-04_12.txt
[INFO ] [Kivy ] v1.9.1
[INFO ] [Python ] v3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)]
[INFO ] [Factory ] 179 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
Traceback (most recent call last):
File "C:\Python34\ghhg.py", line 1, in <module>
from kivy.uix.button import Button
File "C:\Python34\lib\site-packages\kivy\uix\button.py", line 40, in <module>
from kivy.uix.label import Label
File "C:\Python34\lib\site-packages\kivy\uix\label.py", line 238, in <module>
from kivy.uix.widget import Widget
File "C:\Python34\lib\site-packages\kivy\uix\widget.py", line 219, in <module>
from kivy.graphics import (
File "C:\Python34\lib\site-packages\kivy\graphics\__init__.py", line 89, in <module>
from kivy.graphics.instructions import Callback, Canvas, CanvasBase, \
File "kivy\graphics\vbo.pxd", line 7, in init kivy.graphics.instructions (kivy\graphics\instructions.c:14640)
cdef class VBO:
File "kivy\graphics\compiler.pxd", line 1, in init kivy.graphics.vbo (kivy\graphics\vbo.c:5482)
cdef class GraphicsCompiler
File "kivy\graphics\shader.pxd", line 5, in init kivy.graphics.compiler (kivy\graphics\compiler.c:2983)
cdef class ShaderSource:
File "kivy\graphics\texture.pxd", line 3, in init kivy.graphics.shader (kivy\graphics\shader.c:11990)
cdef class Texture:
File "kivy\graphics\fbo.pxd", line 5, in init kivy.graphics.texture (kivy\graphics\texture.c:31800)
cdef class Fbo(RenderContext):
File "kivy\graphics\fbo.pyx", line 84, in init kivy.graphics.fbo (kivy\graphics\fbo.c:7683)
ImportError: DLL load failed: The specified procedure could not be found.
Looks like the same error with few different lines, and I have no idea what to do. Any help is appreciated.

Related

yolov7 ImportError: DLL load failed while importing _fblas: %1 is not a Win32 application

When I start the tutorial it shows an error. I am using windows 11 64 bit. I installed all the packages through anaconda, and I can’t understand what the problem could be. (Python 3.9)
Traceback (most recent call last):
File "C:\Users\iirof\PycharmProjects\rf_detect_mob\yolov7-custom\train.py", line 24, in <module>
import test # import test.py to get mAP after each epoch
File "C:\Users\iirof\PycharmProjects\rf_detect_mob\yolov7-custom\test.py", line 12, in <module>
from models.experimental import attempt_load
File "C:\Users\iirof\PycharmProjects\rf_detect_mob\yolov7-custom\models\experimental.py", line 6, in <module>
from models.common import Conv, DWConv
File "C:\Users\iirof\PycharmProjects\rf_detect_mob\yolov7-custom\models\common.py", line 17, in <module>
from utils.plots import color_list, plot_one_box
File "C:\Users\iirof\PycharmProjects\rf_detect_mob\yolov7-custom\utils\plots.py", line 19, in <module>
from scipy.signal import butter, filtfilt
File "C:\Users\iirof\anaconda3\envs\rf\lib\site-packages\scipy\signal\__init__.py", line 309, in <module>
from . import _sigtools, windows
File "C:\Users\iirof\anaconda3\envs\rf\lib\site-packages\scipy\signal\windows\__init__.py", line 41, in <module>
from ._windows import *
File "C:\Users\iirof\anaconda3\envs\rf\lib\site-packages\scipy\signal\windows\_windows.py", line 7, in <module>
from scipy import linalg, special, fft as sp_fft
File "C:\Users\iirof\anaconda3\envs\rf\lib\site-packages\scipy\__init__.py", line 233, in __getattr__
return _importlib.import_module(f'scipy.{name}')
File "C:\Users\iirof\anaconda3\envs\rf\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\iirof\anaconda3\envs\rf\lib\site-packages\scipy\linalg\__init__.py", line 197, in <module>
from ._misc import *
File "C:\Users\iirof\anaconda3\envs\rf\lib\site-packages\scipy\linalg\_misc.py", line 3, in <module>
from .blas import get_blas_funcs
File "C:\Users\iirof\anaconda3\envs\rf\lib\site-packages\scipy\linalg\blas.py", line 213, in <module>
from scipy.linalg import _fblas
ImportError: DLL load failed while importing _fblas: %1 не является приложением Win32.
Tried to install different versions of python, but nothing new.

Failed to import from tf_agents.agents.categorical_dqn import categorical_dqn_agent

Im getting this error when importing this command on python
from tf_agents.agents.categorical_dqn import categorical_dqn_agent
Traceback (most recent call last):
File "<pyshell#19>", line 1, in <module>
from tf_agents.agents.categorical_dqn import categorical_dqn_agent
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tf_agents\agents\__init__.py", line 17, in <module>
from tf_agents.agents import tf_agent
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tf_agents\agents\tf_agent.py", line 26, in <module>
from tf_agents.specs import tensor_spec
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tf_agents\specs\__init__.py", line 20, in <module>
from tf_agents.specs.distribution_spec import DistributionSpec
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tf_agents\specs\distribution_spec.py", line 22, in <module>
import tensorflow_probability as tfp
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\__init__.py", line 23, in <module>
from tensorflow_probability.python import * # pylint: disable=wildcard-import
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\__init__.py", line 138, in <module>
dir(globals()[pkg_name]) # Forces loading the package from its lazy loader.
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\internal\lazy_loader.py", line 57, in __dir__
module = self._load()
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\internal\lazy_loader.py", line 40, in _load
module = importlib.import_module(self.__name__)
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\experimental\__init__.py", line 31, in <module>
from tensorflow_probability.python.experimental import bijectors
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\experimental\bijectors\__init__.py", line 17, in <module>
from tensorflow_probability.python.bijectors.ldj_ratio import forward_log_det_jacobian_ratio
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\bijectors\__init__.py", line 19, in <module>
from tensorflow_probability.python.bijectors.absolute_value import AbsoluteValue
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\bijectors\absolute_value.py", line 19, in <module>
from tensorflow_probability.python.bijectors import bijector
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\bijectors\bijector.py", line 26, in <module>
from tensorflow_probability.python.internal import batch_shape_lib
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\internal\batch_shape_lib.py", line 23, in <module>
from tensorflow_probability.python.internal import prefer_static as ps
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\internal\prefer_static.py", line 26, in <module>
from tensorflow_probability.python.internal.backend import numpy as nptf
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\internal\backend\numpy\__init__.py", line 18, in <module>
from tensorflow_probability.python.internal.backend.numpy import bitwise
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\internal\backend\numpy\bitwise.py", line 19, in <module>
from tensorflow_probability.python.internal.backend.numpy import _utils as utils
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\internal\backend\numpy\_utils.py", line 22, in <module>
from tensorflow_probability.python.internal.backend.numpy import nest
File "C:\Users\kasun\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow_probability\python\internal\backend\numpy\nest.py", line 68, in <module>
assert_same_structure = dm_tree.assert_same_structure
AttributeError: module 'tree' has no attribute 'assert_same_structure'
I tried this:
pip3 install dm-tree
but it also didnt work
Try:
pip install --upgrade dm-tree

from resource import setrlimit ModuleNotFoundError: No module named 'resource'`

tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2022-04-28 10:02:39.911093: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File "D:\ASL_to_English\Tensorflow\models\research\object_detection\builders\model_builder_tf2_test.py", line 24, in <module>
from object_detection.builders import model_builder
File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\object_detection\builders\model_builder.py", line 22, in <module>
from object_detection.builders import box_predictor_builder
File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\object_detection\builders\box_predictor_builder.py", line 20, in <module>
from object_detection.predictors import convolutional_box_predictor
File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\object_detection\predictors\convolutional_box_predictor.py", line 19, in <module>
from object_detection.core import box_predictor
File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\object_detection\core\box_predictor.py", line 137, in <module>
class KerasBoxPredictor(tf.keras.Model):
File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\util\lazy_loader.py", line 62, in __getattr__
module = self._load()
File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\util\lazy_loader.py", line 45, in _load
module = importlib.import_module(self.__name__)
File "C:\Program Files\Python39\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\api\__init__.py", line 10, in <module>
from keras.api import keras
File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\api\keras\__init__.py", line 11, in <module>
from keras.api.keras import __internal__
File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\api\keras\__internal__\__init__.py", line 10, in <module>
from keras.api.keras.__internal__ import legacy
File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\api\keras\__internal__\legacy\__init__.py", line 10, in <module>
from keras.api.keras.__internal__.legacy import layers
File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\api\keras\__internal__\legacy\layers\__init__.py", line 10, in <module>
from keras.api.keras.__internal__.legacy.layers import experimental
File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\api\keras\__internal__\legacy\layers\experimental\__init__.py", line 15, in <module>
from tensorflow.python.util import module_wrapper as _module_wrapper
File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\util\module_wrapper.py", line 21, in <module>
from resource import setrlimit
ModuleNotFoundError: No module named 'resource'
while training the SSD mobile net model
I am getting this error,but I have installed "resource" in windows using pip install resource
please help me out with this error

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'

Error - Python pandas.rpy.comon

There is an error message prompt me when I import pandas.rpy.comon?
http://pandas.pydata.org/pandas-docs/dev/r_interface.html
import pandas.rpy.common as com
Traceback (most recent call last):
File "<ipython-input-144-63ebebefea80>", line 1, in <module>
import pandas.rpy.common as com
File "C:\Anaconda\lib\site-packages\pandas\rpy\__init__.py", line 2, in <module>
from .common import importr, r, load_data
File "C:\Anaconda\lib\site-packages\pandas\rpy\common.py", line 14, in <module>
from rpy2.robjects.packages import importr
File "C:\Anaconda\lib\site-packages\rpy2\robjects\__init__.py", line 18, in <module>
from rpy2.robjects.robject import RObjectMixin, RObject
File "C:\Anaconda\lib\site-packages\rpy2\robjects\robject.py", line 5, in <module>
rpy2.rinterface.initr()
AttributeError: 'module' object has no attribute 'initr'