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?
Related
I am trying to run the simple TFX pipeline in Windows 10 machine. I am using the codes as given in Tensorflow website (https://www.tensorflow.org/tfx/tutorials/tfx/penguin_simple). While trying to run the pipeline, it is throwing below error. The folder name is using a mix of '\' and '/' while TFX is trying to create the folder. I am not sure, how to solve this issue as it is happening within Tensorflow internal code.
ERROR:absl:Failed to make stateful working dir: pipelines\penguin-simple\CsvExampleGen.system\stateful_working_dir\2021-06-24T20:11:37.715669
Traceback (most recent call last):
File "G:\Anaconda3\lib\site-packages\tfx\orchestration\portable\outputs_utils.py", line 211, in get_stateful_working_directory
fileio.makedirs(stateful_working_dir)
File "G:\Anaconda3\lib\site-packages\tfx\dsl\io\fileio.py", line 83, in makedirs
_get_filesystem(path).makedirs(path)
File "G:\Anaconda3\lib\site-packages\tfx\dsl\io\plugins\tensorflow_gfile.py", line 76, in makedirs
tf.io.gfile.makedirs(path)
File "G:\Anaconda3\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 483, in recursive_create_dir_v2
_pywrap_file_io.RecursivelyCreateDir(compat.path_to_bytes(path))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Failed to create a directory: pipelines\penguin-simple\CsvExampleGen.system\stateful_working_dir/2021-06-24T20:11:37.715669; Invalid argument
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?
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.
When I try yo schedule a job after I have deployed a project I get the following error:
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/scrapyd/webservice.py", line 18, in render
return JsonResource.render(self, txrequest)
File "/usr/local/lib/python2.7/dist-packages/scrapy/utils/txweb.py", line 10, in render
r = resource.Resource.render(self, txrequest)
File "/usr/local/lib/python2.7/dist-packages/twisted/web/resource.py", line 250, in render
return m(request)
File "/usr/lib/pymodules/python2.7/scrapyd/webservice.py", line 37, in render_POST
self.root.scheduler.schedule(project, spider, **args)
File "/usr/lib/pymodules/python2.7/scrapyd/scheduler.py", line 16, in schedule
q.add(spider_name, **spider_args)
File "/usr/lib/pymodules/python2.7/scrapyd/spiderqueue.py", line 18, in add
self.q.put(d, priority)
File "/usr/lib/pymodules/python2.7/scrapyd/sqlite.py", line 103, in put
self.conn.execute(q, args)
OperationalError: attempt to write a readonly database
If after deploying the project I go and restart scrapyd and after schedule a job there is no problems with it and works fine. But to be honest I do not see the point of going and restarting scrapyd everytime I deploy... does not make sense.
I have checked the DB folder and there is a crawling_project.db file with root:root ownsership this could be causing the issue??
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 :)