You are not including alot of details here. What Distro? What version of EFL do you have installed? Specifically what steps did you take to install python3-efl? As to sample.py it works here with no issues, so I am unsure. Perhaps post on our forums: https://bodhilinux.boards.net/board/25/efl-programming
You are clearly not using Bodhi as py-efl for python 2 and 3 is in our repository. But post there anyway. On Wed, Sep 23, 2020 at 2:21 PM <[email protected]> wrote: > Thanks for the instruction. Now > $ echo "from efl import elementary" | python3 > works with no error. > > The sample from the enlightenment.org website still fails to run > however. > > https://docs.enlightenment.org/python-efl/current/elementary/elementary.html#a-sample-python-elementary-program > > It now produces the following error: > > $ python3 sample.py > Traceback (most recent call last): > File "sample.py", line 4, in <module> > from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH > ImportError: cannot import name 'EVAS_HINT_EXPAND' from 'efl.evas' > (unknown location) > > > On 2020-09-23 16:03, Rbt. Y-Lee wrote: > > Follow the directions in its install file: > > > https://git.enlightenment.org/bindings/python/python-efl.git/tree/INSTALL > > > > I don't know what distro you are using but it should make no difference > > if > > efl was installed is a package manager. It doesn't on ubuntu/debian > > based > > distros. > > > > On Wed, Sep 23, 2020 at 11:00 AM <[email protected]> wrote: > > > >> What is the recommended way to install python-efl on systems where efl > >> has been installed from a package manager (ubuntu) and not built from > >> source? > >> > >> > >> On 2020-09-23 14:41, [email protected] wrote: > >> > Thanks for the clarification. > >> > > >> > On 2020-09-23 14:19, Rbt. Y-Lee wrote: > >> >> Installing Python-efl from pip does not work. It should be fixed or > >> >> removed > >> >> from there but it has not been. > >> >> > >> >> On Wed, Sep 23, 2020 at 9:32 AM <[email protected]> wrote: > >> >> > >> >>> I am also confused about this, and I am not a python newbie, > although > >> >>> maybe I am missing something > >> >>> from the docs here, it does appear you should be able to do that > >> >>> > >> >>> > >> > https://docs.enlightenment.org/python-efl/current/elementary/elementary.html#a-sample-python-elementary-program > >> >>> > >> >>> however > >> >>> > >> >>> > >> >>> /tmp/blash$ echo 'python-efl' > requierments.txt > >> >>> /tmp/blash$ virtualenv -p $(which python3) venv > >> >>> ..... > >> >>> /tmp/blash$ source venv/bin/activate > >> >>> (venv) /tmp/blash$ pip3 install -r requierments.txt > >> >>> ... > >> >>> > >> >>> Successfully built python-efl > >> >>> Installing collected packages: python-efl > >> >>> Successfully installed python-efl-1.23.0 > >> >>> ... > >> >>> (venv) /tmp/blash$ echo "from efl import elementary" | python3 > >> >>> Traceback (most recent call last): > >> >>> File "<stdin>", line 1, in <module> > >> >>> ImportError: cannot import name 'elementary' from 'efl' > >> >>> (/tmp/blash/venv/lib/python3.8/site-packages/efl/__init__.py) > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> On 2020-09-22 19:46, Pierre Cassimans via enlightenment-users wrote: > >> >>> > Hi, > >> >>> > > >> >>> > > >> >>> > > >> >>> > As a newbie python programmer, I want to use the python-efl > libraries > >> >>> > in a > >> >>> > project. The IDE I use is Pycharm. > >> >>> > > >> >>> > > >> >>> > > >> >>> > I have successfully imported python-efl in my interpreter, but > when I > >> >>> > try to > >> >>> > "from efl import elementary", I get the following error: Cannot > find > >> >>> > reference 'elementary' in __init__.py > >> >>> > > >> >>> > > >> >>> > > >> >>> > What did I do wrong? > >> >>> > > >> >>> > > >> >>> > > >> >>> > cazze > >> >>> > > >> >>> > > >> >>> > > >> >>> > > >> >>> > _______________________________________________ > >> >>> > enlightenment-users mailing list > >> >>> > [email protected] > >> >>> > https://lists.sourceforge.net/lists/listinfo/enlightenment-users > >> >>> > >> >>> > >> >>> _______________________________________________ > >> >>> enlightenment-users mailing list > >> >>> [email protected] > >> >>> https://lists.sourceforge.net/lists/listinfo/enlightenment-users > >> >>> > >> >> > >> >> _______________________________________________ > >> >> enlightenment-users mailing list > >> >> [email protected] > >> >> https://lists.sourceforge.net/lists/listinfo/enlightenment-users > >> > T > >> > >> > >> _______________________________________________ > >> enlightenment-users mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/enlightenment-users > >> > > > > _______________________________________________ > > enlightenment-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/enlightenment-users > _______________________________________________ enlightenment-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-users
