Procedure entry point gzdirect could not be located in the dynamic link library - tensorflow

I tried to run the below command
conda create --name tf_gpu tensorflow-gpu
and it throws the error
Traceback (most recent call last):
File "C:\Users\alexk\Anaconda3\lib\site-packages\conda\exceptions.py", line 1062, in call
return func(*args, **kwargs)
File "C:\Users\alexk\Anaconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
exit_code = do_call(args, p)
File "C:\Users\alexk\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 82, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "C:\Users\alexk\Anaconda3\lib\site-packages\conda\cli\main_create.py", line 37, in execute
install(args, parser, 'create')
File "C:\Users\alexk\Anaconda3\lib\site-packages\conda\cli\install.py", line 116, in install
if context.use_only_tar_bz2:
File "C:\Users\alexk\Anaconda3\lib\site-packages\conda\base\context.py", line 664, in use_only_tar_bz2
import conda_package_handling.api
File "C:\Users\alexk\Anaconda3\lib\site-packages\conda_package_handling\api.py", line 12, in
from .tarball import CondaTarBZ2 as _CondaTarBZ2, libarchive_enabled
File "C:\Users\alexk\Anaconda3\lib\site-packages\conda_package_handling\tarball.py", line 11, in
import libarchive
File "C:\Users\alexk\Anaconda3\lib\site-packages\libarchive__init__.py", line 1, in
from .entry import ArchiveEntry
File "C:\Users\alexk\Anaconda3\lib\site-packages\libarchive\entry.py", line 6, in
from . import ffi
File "C:\Users\alexk\Anaconda3\lib\site-packages\libarchive\ffi.py", line 27, in
libarchive = ctypes.cdll.LoadLibrary(libarchive_path)
File "C:\Users\alexk\Anaconda3\lib\ctypes__init__.py", line 434, in LoadLibrary
return self._dlltype(name)
File "C:\Users\alexk\Anaconda3\lib\ctypes__init__.py", line 356, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 127] The specified procedure could not be found
and also a error window pops up saying:
The procedure entry point gzdirect could not be located in the dynamic link library C:\User\\Anaconda3\Library\bin\libxml2.dll

I am answering quite lately but I had a similar issue recently and this post was the closest to my issue (and had no answers).
The issue for me though was that I was trying to communicate with matlab from c++ code (using visual c++ in visual studio).
After searching a long time, I discovered that gzdirect came from zlib1.dll and not libxml.
What caused this issue for me was that I added the path to the matlab dlls at the end of my path environnment variable and because of that, a zlib from my system was used instead of Matlab Zlib.
All I had to do was to add the path to Matlab's DLL at the start of my path and not at the end.

Related

Buildozer -Build with two virtual environments

My SpotMap app runs successfully in the development environment.
I now want to create a python apk with Buildozer using buildozer.spec as shown below:
[app]
# (str) Title of your application
title = **SpotMap**
# (str) Package name
package.name = **spotmap**
# (str) Package domain (needed for android/ios packaging)
package.domain = org.test
# (str) Source code where the main.py live
source.dir = .
# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas**,db**
# (list) List of inclusions using pattern matching
**source.include_patterns = assets/*,images/*.png**
I have just shown to code I have altered for my app.
Then when I run the Build I get:
.....
# Copy /home/sib/PycharmProjects/Spotmap/venv/bin/rst2xetex.py
# Copy /home/sib/PycharmProjects/Spotmap/venv/bin/python3
Traceback (most recent call last):
File "/home/sib/.local/bin/buildozer", line 8, in <module>
sys.exit(main())
File "/home/sib/.local/lib/python3.10/site-packages/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/home/sib/.local/lib/python3.10/site-packages/buildozer/__init__.py", line 1020, in run_command
self.target.run_commands(args)
File "/home/sib/.local/lib/python3.10/site-packages/buildozer/target.py", line 93, in run_commands
func(args)
File "/home/sib/.local/lib/python3.10/site-packages/buildozer/target.py", line 106, in cmd_debug
self.buildozer.build()
File "/home/sib/.local/lib/python3.10/site-packages/buildozer/__init__.py", line 202, in build
self.build_application()
File "/home/sib/.local/lib/python3.10/site-packages/buildozer/__init__.py", line 693, in build_application
self._copy_application_sources()
File "/home/sib/.local/lib/python3.10/site-packages/buildozer/__init__.py", line 795, in _copy_application_sources
copyfile(sfn, rfn)
File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
with open(src, 'rb') as fsrc:
**FileNotFoundError: [Errno 2] No such file or directory: '/home/sib/PycharmProjects/Spotmap/venv/bin/python3'**
I noticed that I am working with two different virtual environments.
VENVS for may app code
and
VENV for the build process.
Is this the problem and if so how do I remedy it?
Thanks
Sib
Or is there something else that I am missing?

Odoo.sh : Issue to create new module structure in Production stage

Im trying to create a new module structure using the scaffold command in src/odoo/addons of the Production stage via odoo.sh's the editor.
~/src/odoo/addons$ odoo-bin scaffold mymodule
But I got the error like this:
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo-bin", line 8, in <module>
odoo.cli.main()
File "/home/odoo/src/odoo/odoo/cli/command.py", line 60, in main
o.run(args)
File "/home/odoo/src/odoo/odoo/cli/scaffold.py", line 39, in run
{'name': args.name})
File "/home/odoo/src/odoo/odoo/cli/scaffold.py", line 121, in render_to
os.makedirs(destdir)
File "/usr/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/home/odoo/src/odoo/addons/mymodule'
If creating the module structure in another stages, I can create it normally.
Am I not permission to create modules in the production stage, or the production stage is just used for merge with other stages?
Please help!
Thank you!
Does the /home/odoo/src/odoo/addons/mymodule directory has write permission?

How to fix "calibration_pb2 from 'object_detection.protos' " error (Windows)

I've tried to run the below code but it always gives a set of errors. I tried searching the answers but none work for my code, there are two files named 'object_detection' one in the research folder and other in the object_detection-0.1-py3.7.egg folder which might be causing the error but i tried to change the path but the errors still persist
I'm trying to execue this command:
C:\tensorflow1\models\research\object_detection>python train.py --
logtostderr --train_dir=training/ --
pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
but have the following errors coming up:
Traceback (most recent call last):
1. File "train.py", line 51, in <module>
from object_detection.builders import model_builder
2. File "C:\Users\Swayam\mypython\lib\site-packages\object_detection-
0.1-
py3.7.egg\object_detection\builders\model_builder.py", line 27, in
<module>
from object_detection.builders import post_processing_builder
3. File "C:\Users\Swayam\mypython\lib\site-packages\object_detection-
0.1-
py3.7.egg\object_detection\builders\post_processing_builder.py",
line 2
2, in <module>
from object_detection.protos import post_processing_pb2
4. File "C:\Users\Swayam\mypython\lib\site-packages\object_detection-
0.1-
py3.7.egg\object_detection\protos\post_processing_pb2.py", line 15,
in
<module>
from object_detection.protos import calibration_pb2 as
object__detection_dot_protos_dot_calibration__pb2
5. ImportError: cannot import name 'calibration_pb2' from
'object_detection.protos' (C:\Users\Swayam\mypython\lib\site-
packages\object_detection-0.1-
py3.7.egg\object_detection\protos\__init__.py)
I've tried using the
protoc object_detection/protos/*.proto --python_out=.
command but it brings up errors too.
Also, the environment is not made in conda, could that be the cause of the error? Though all the necessary installations are present in the existing virtual environment.
Try this Solution:
Check if the file
"calibration_pb2.py"
is located in the following path, in your case may be this one:
C:\Users\Swayam\mypython\lib\site-packages\object_detection-0.1-
py3.7.egg\object_detection\protos\
If not, just copy it from your working path:
C:\tensorflow1\models\research\object_detection\protos\
If it works, I sugggest you try to copy all the *pb2.py files into the path mentioned above.
you just compile this
protoc --python_out=. .\object_detection\protos\anchor_generator.proto .\object_detection\protos\argmax_matcher.proto .\object_detection\protos\bipartite_matcher.proto .\object_detection\protos\box_coder.proto .\object_detection\protos\box_predictor.proto .\object_detection\protos\eval.proto .\object_detection\protos\faster_rcnn.proto .\object_detection\protos\faster_rcnn_box_coder.proto .\object_detection\protos\grid_anchor_generator.proto .\object_detection\protos\hyperparams.proto .\object_detection\protos\image_resizer.proto .\object_detection\protos\input_reader.proto .\object_detection\protos\losses.proto .\object_detection\protos\matcher.proto .\object_detection\protos\mean_stddev_box_coder.proto .\object_detection\protos\model.proto .\object_detection\protos\optimizer.proto .\object_detection\protos\pipeline.proto .\object_detection\protos\post_processing.proto .\object_detection\protos\preprocessor.proto .\object_detection\protos\region_similarity_calculator.proto .\object_detection\protos\square_box_coder.proto .\object_detection\protos\ssd.proto .\object_detection\protos\ssd_anchor_generator.proto .\object_detection\protos\string_int_label_map.proto .\object_detection\protos\train.proto .\object_detection\protos\keypoint_box_coder.proto .\object_detection\protos\multiscale_anchor_generator.proto .\object_detection\protos\graph_rewriter.proto .\object_detection\protos\calibration.proto
it will resolve the issue

openerp create database error

I am getting following error while creating a new database in openerp.
kindly suggest how to proceed?
OpenERP WebClient Error
Client Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP 7.0-20131226-002345\Server\server\openerp\addons\web\http.py", line 204, in dispatch
File "C:\Program Files (x86)\OpenERP 7.0-20131226-002345\Server\server\openerp\addons\auth_signup\controllers\main.py", line 39, in get_config
File "C:\Program Files (x86)\OpenERP 7.0-20131226-002345\Server\server\openerp\addons\base\ir\ir_config_parameter.py", line 74, in get_param
File "C:\Program Files (x86)\OpenERP 7.0-20131226-002345\Server\server\.\openerp\osv\orm.py", line 2369, in search
File "C:\Program Files (x86)\OpenERP 7.0-20131226-002345\Server\server\.\openerp\osv\orm.py", line 4887, in _search
File "C:\Program Files (x86)\OpenERP 7.0-20131226-002345\Server\server\.\openerp\sql_db.py", line 161, in wrapper
File "C:\Program Files (x86)\OpenERP 7.0-20131226-002345\Server\server\.\openerp\sql_db.py", line 226, in execute
ProgrammingError: relation "ir_config_parameter" does not exist
LINE 1: SELECT "ir_config_parameter".id FROM "ir_config_parameter" W...
Issue resolved, i have removed all custom add-ons this resolves the issue
This issue occurs if your Openerp addons directory has any module module which has quite a large name. You can again try to create a new database with extra modules included. You will get the same error. Hope you are not making a module name too long :)

Indexing of pdf and word docs with Plone4 and Windows

I followed an instruction for indexing pdf on Plone(4) (and Windows 2008) , that was originaly written for Plone3:
http://plone.org/documentation/kb/enable-indexing-of-pdf-and-word-docs-with-windows-in-five-steps-occurs-three-minutes-without-problems
I got an error on he fiths step "Add Transform; Enter in ID: pdf_to_text", when I tried to add the Module: Products.PortalTransforms.transforms.pdf_to_text.
Here is the Report:
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 47, in call_object
Module Products.PortalTransforms.TransformEngine, line 487, in manage_addTransform
Module Products.PortalTransforms.TransformEngine, line 254, in _mapTransform
Module Products.MimetypesRegistry.MimeTypesRegistry, line 220, in lookup
- __traceback_info__: ("'BROKEN'", 'BROKEN')
Module Products.MimetypesRegistry.MimeTypesRegistry, line 457, in split
MimeTypeException: Malformed MIME type (BROKEN)
Well, that is very old.
On Windows, the word indexing "Just Works" in Plone 4 if you have MS Office installed. PDF still needs xpdf.
Is pdftotext.exe on your PATH? It won't work if it isn't. Remember, if you have added it to the system-wide environment, you are still going to have to stop/start Zope to have the Zope process pick up the changed PATH: run Zope in the foreground, from a command window that you know has pdftotext on the path, and see what happens.