Unable to implement the "OpenERP Arabic Report Support" - pdf

I'm running openERP 7, I was faced with the problem that Arabic words show up in pdf reports as black boxes. I tried to resolve this problem so I downloaded the code in the OpenERP Arabic Report Support and followed the instructions. When I copied the textobject.py to the path D:\OpenERP 7.0-20141026-011104\server\reportlab\pdfgen and tried to restart the openerp-server-7.0 service it does not start and gave me the following error, I got it from event viewer log for windows:
The instance's SvcRun() method failed
Traceback (most recent call last):
File "win32serviceutil.pyo", line 835, in SvcRun
File "win32_service.pyo", line 42, in SvcDoRun
SystemExit: 255
%2: %3
and unable to continue. Can anyone check and help

Download the latest python version 2.7.10 from https://www.python.org/ftp/python/2.7.10/python-2.7.10.msi
Install it and find the mimetypes.pyc file from install path like C:\Python27\Lib
Copy the file and replace the same name file from openerp install path
4.start the service again. try it out.

Related

Custom Block Unable to Be Found

I have an Ubuntu LTS20.04 vm with with GNU Radio installed via PPA. Following the Guided Tutorial GNU Radio in C++, I've created, built, and installed a project identical to the sample presented within.
I went to set up the objective flow graph presented at the beginning of the tutorial in GNURadio companion, but when I attempt to execute the it, I get the following error:
Warning: failed to XInitThreads()
Traceback (most recent call last):
File "/home/user/Documents/GNURadio Flowgraphs/testqpsk.py", line 38, in <module>
import tutorial
ModuleNotFoundError: No module named 'tutorial'
What steps do I need to take to resolve this? I should note that the PPA install does not seem to configure paths correctly, as I had to EXPORT GR_PREFIX=/usr to get gr_modtool to function.
The problem was that cmake's default install prefix (/usr/local) does not correspond with default Python search paths. My resolution was the following:
export PYTHONPATH=/usr/local/lib/python3/dist-packages:/usr/lib/python3/dist-packages:$PYTHONPATH
Both this export statement and the GR_PREFIX export were added to my ~/.profile.

Error with PyQtDeploy

I'm using PyQt 5.3.1 and I'm deploying with pyqtdeploy 0.4 and when i want to build a project i obtain this error message:
Generating code...
Cleaning E:\ProgramasPython3\PythonQT\QTCalculator\build.
Freezing C:\Users\Tobal\AppData\Local\Temp\bootstrap_py3.py
Freezing E:\ProgramasPython3\PythonQT\QTCalculator\qtcalculator.py
Freezing E:/ProgramasPython3/PythonQT\QTCalculator\__init__.py
Freezing E:/ProgramasPython3/PythonQT\QTCalculator\calculator_ui.py
Freezing E:/ProgramasPython3/PythonQT\QTCalculator\img_rc.py
Freezing E:/ProgramasPython3/PythonQT\QTCalculator\qtcalculator.py
Freezing C:\Python34\libs\site-packages\PyQt5\__init__.py
Unable to freeze C:\Python34\libs\site-packages\PyQt5\__init__.py.
Traceback (most recent call last):
File "C:\Users\Tobal\AppData\Local\Temp\freeze.py", line 103, in <module>
freeze_as_data(py_file, options.as_data)
File "C:\Users\Tobal\AppData\Local\Temp\freeze.py", line 36, in freeze_as_data
code = _get_marshalled_code(py_filename)
File "C:\Users\Tobal\AppData\Local\Temp\freeze.py", line 71, in _get_marshalled_code
source_file = open(py_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Python34\\libs\\site-packages\\PyQt5\\__init__.py'
I think this is a bug. someone does know how to fix it?
Thanks
Did you build PyQt5 statically? The host and target Python are two different things, and often in different directories. The target Python has PyQt module built statically, the host Python must also have PyQt5 installed (because pyqtdeploy uses Qt for its GUI) but its usually a dynamic library in the host Python.
In the pyqtdeploy GUI on "Locations" tab, make sure that "Standard library directory" is correct.

Plone 4.3 and transmogrifier installation

I am trying to migrate content from old 3.x Plone installation to new Plone 4.3 instance. Both are running on windows platforms.
In new 4.3 installation I am trying to install quintagroup.transmogrifier and instance does not start.
bin\instance.exe fg gives following:
clip
Presumably normal entries removed...
clip
File "c:\plone43\eggs\zope.configuration-3.7.4-py2.7.egg\zope\configuration\config.py", line 179, in resolve
mod = __import__(mname, *_import_chickens)
File "c:\plone43\eggs\quintagroup.transmogrifier-0.4-py2.7.egg\quintagroup\transmogrifier\writer.py", line 13, in <module>
import quintagroup.transmogrifier.patches
File "c:\plone43\eggs\quintagroup.transmogrifier-0.4-py2.7.egg\quintagroup\transmogrifier\patches.py", line 89, in <module>
from tarfile import nts, GNUTYPE_SPARSE, normpath
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "c:\Plone43\parts\instance\etc\site.zcml", line 15.2-15.55
ZopeXMLConfigurationError: File "c:\Plone43\parts\instance\etc\package-includes\002-quintagroup.transmogrifier-configure.zcml", line 1.0-1.70
ZopeXMLConfigurationError: File "c:\plone43\eggs\quintagroup.transmogrifier-0.4-py2.7.egg\quintagroup\transmogrifier\configure.zcml", line 67.4-70.10
ImportError: cannot import name normpath
Is this something that transmogrifier is not allowd to load python module (v.2.7) in Plone or cannot find it from windows?
How could I fix the issue or approach it further?
I tried, just to copy data.fs to new site, but it seems to import a lot of "crap" from old version as well and some of the functionality dows not work properly.
I am not thet familiar with Plone/Zope/Python, but so far I have managed to get the job done.
Thanks
It's a bug in quintagroup.transmogrifier that has been fixed but not yet released.
For now, you can use the version on Github. If you are using mr.developer, the easiest way is to amend your buildout.cfg as follows:
[sources]
quintagroup.transmogrifier = git git://github.com/collective/quintagroup.transmogrifier.git

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.

Upgrade from trac 0.10.3 to 0.12 mod_python database error

I´m trying to upgrade trac! from 0.10.3 to 0.12. Need help, i basiclally did steps shown here
http://trac.edgewall.org/wiki/TracUpgrade
So i went through this commands without errors:
todasana:~# easy_install —upgrade Trac0.12 Searching for Trac0.12
todasana:~# trac-admin /usr/local/apache2/htdocs/trac_catw3 upgrade
todasana:~# trac-admin /usr/local/apache2/htdocs/trac_catw3 wiki upgrade
todasana:~# trac-admin /usr/local/apache2/htdocs/trac_catw3 repository resync ‘*’
Didn´t do Step 5 Refresh static resources, because i did not understand it, and i think it does not apply to me: trac-admin /path/to/env deploy /deploy/path
then i
restarted apache:
/etc/init.d/apache2 restart
got this error in the browser now:
Mod_python error: "PythonHandler trac.web.modpython_frontend"
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)
File "/var/lib/python-support/python2.4/trac/web/modpython_frontend.py", line 87, in handler
gateway.run(dispatch_request)
File "/var/lib/python-support/python2.4/trac/web/wsgi.py", line 87, in run
response = application(self.environ, self._start_response)
File "/var/lib/python-support/python2.4/trac/web/main.py", line 377, in dispatch_request
env = _open_environment(env_path, run_once=run_once)
File "/var/lib/python-support/python2.4/trac/web/main.py", line 58, in _open_environment
env_cache[env_path] = open_environment(env_path)
File "/var/lib/python-support/python2.4/trac/env.py", line 435, in open_environment
if env.needs_upgrade():
File "/var/lib/python-support/python2.4/trac/env.py", line 315, in needs_upgrade
if participant.environment_needs_upgrade(db):
File "/var/lib/python-support/python2.4/trac/env.py", line 373, in environment_needs_upgrade
raise TracError, 'Database newer than Trac version'
TracError: Database newer than Trac version
got Python 2.4.4 (#2, Jan 24 2010, 11:19:18)
mysql: Server version: 5.0.32-Debian_7etch11-log Debian etch distribution
IT OCCOURS TO ME THAT SOMETHING SHOULD BE DONE WITH THE DATABASE OR CONFIG FILES, BUT NOT SURE WHAT BECAUSE THERE IS NOTHING IN THE DOCS ABOUT IT!
Guys have a great day!!
It sounds like the version of Trac being run by Apache is the older version and not the version you just installed. Verify that the version of Trac you are running is the version you think you are running.