Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some question about libfribidi.so(Arabic) #163

Open
softwaregitgub opened this issue Jun 24, 2019 · 3 comments
Open

some question about libfribidi.so(Arabic) #163

softwaregitgub opened this issue Jun 24, 2019 · 3 comments

Comments

@softwaregitgub
Copy link

Traceback (most recent call last):
File "E:/py/SynthTextPython3/gen.py", line 19, in
from synthgen import *
File "E:\py\SynthTextPython3\synthgen.py", line 20, in
import text_utils as tu
File "E:\py\SynthTextPython3\text_utils.py", line 20, in
import fribidi
File "E:\py\SynthTextPython3\fribidi.py", line 26, in
libfribidi = ctypes.CDLL("libfribidi.so")
File "D:\Anaconda3\envs\py35\lib\ctypes_init
.py", line 351, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。

Where can i find the libfribidi.so?

@softwaregitgub
Copy link
Author

stay:
getting data..
-> done
Storing the output in: results/SynthText.h5
0 of 4
** instance # : 0
Traceback (most recent call last):
File "/home/stay/Desktop/SynthTextPython3/synthgen.py", line 668, in render_text
regions['homography_inv'][ireg])
File "/home/stay/Desktop/SynthTextPython3/synthgen.py", line 508, in place_text
render_res = self.text_renderer.render_sample(font,collision_mask)
File "/home/stay/Desktop/SynthTextPython3/text_utils.py", line 346, in render_sample
txt_arr,txt,bb = self.render_curved(font, text)
File "/home/stay/Desktop/SynthTextPython3/text_utils.py", line 176, in render_curved
return self.render_multiline(font, word_text)
File "/home/stay/Desktop/SynthTextPython3/text_utils.py", line 144, in render_multiline
word = fribidi.log2vis(word, None, fribidi.ParType.RTL)
File "/home/stay/Desktop/SynthTextPython3/fribidi.py", line 675, in log2vis
input_utf32_p = _pyunicode_to_utf32_p(unicode_text)
File "/home/stay/Desktop/SynthTextPython3/fribidi.py", line 131, in _pyunicode_to_utf32_p
_libfribidi.fribidi_utf8_to_unicode(utf8_p, utf8_len, utf32_p)
File "/home/stay/anaconda3/envs/tf/lib/python3.6/ctypes/init.py", line 357, in getattr
func = self.getitem(name)
File "/home/stay/anaconda3/envs/tf/lib/python3.6/ctypes/init.py", line 362, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /home/stay/anaconda3/lib/libfribidi.so: undefined symbol: fribidi_utf8_to_unicode

stay:AttributeError: /home/stay/anaconda3/pkgs/fribidi-1.0.5-h7b6447c_0/lib/libfribidi.so: undefined symbol: fribidi_utf8_to_unicode

@softwaregitgub softwaregitgub changed the title some question about libfribidi.so some question about libfribidi.so(Arabic) Jun 24, 2019
@ankush-me
Copy link
Owner

@softwaregitgub not sure where is this file fribidi.py from.

@FatemehShamsi
Copy link

stay:
getting data..
-> done
Storing the output in: results/SynthText.h5
0 of 4
** instance # : 0
Traceback (most recent call last):
File "/home/stay/Desktop/SynthTextPython3/synthgen.py", line 668, in render_text
regions['homography_inv'][ireg])
File "/home/stay/Desktop/SynthTextPython3/synthgen.py", line 508, in place_text
render_res = self.text_renderer.render_sample(font,collision_mask)
File "/home/stay/Desktop/SynthTextPython3/text_utils.py", line 346, in render_sample
txt_arr,txt,bb = self.render_curved(font, text)
File "/home/stay/Desktop/SynthTextPython3/text_utils.py", line 176, in render_curved
return self.render_multiline(font, word_text)
File "/home/stay/Desktop/SynthTextPython3/text_utils.py", line 144, in render_multiline
word = fribidi.log2vis(word, None, fribidi.ParType.RTL)
File "/home/stay/Desktop/SynthTextPython3/fribidi.py", line 675, in log2vis
input_utf32_p = _pyunicode_to_utf32_p(unicode_text)
File "/home/stay/Desktop/SynthTextPython3/fribidi.py", line 131, in _pyunicode_to_utf32_p
_libfribidi.fribidi_utf8_to_unicode(utf8_p, utf8_len, utf32_p)
File "/home/stay/anaconda3/envs/tf/lib/python3.6/ctypes/init.py", line 357, in getattr
func = self.getitem(name)
File "/home/stay/anaconda3/envs/tf/lib/python3.6/ctypes/init.py", line 362, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /home/stay/anaconda3/lib/libfribidi.so: undefined symbol: fribidi_utf8_to_unicode

stay:AttributeError: /home/stay/anaconda3/pkgs/fribidi-1.0.5-h7b6447c_0/lib/libfribidi.so: undefined symbol: fribidi_utf8_to_unicode

Did you solve the problem?
I have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants