Code Monkey home page Code Monkey logo

Comments (11)

tkdchen avatar tkdchen commented on July 19, 2024

Could you check if GTG appears in one of these paths import site; print(site.getsitepackages())

from gtg.

akwala avatar akwala commented on July 19, 2024

I cloned the master and tried running gtg directly from the source directory...

$ cd gtg/GTG
$ python3 gtg
Traceback (most recent call last):
  File "gtg", line 57, in <module>
    from GTG import _
ImportError: No module named 'GTG'

from gtg.

tkdchen avatar tkdchen commented on July 19, 2024

@akwala

cd /path/to/cloned/gtg
PYTHONPATH=. GTG/gtg

from gtg.

akwala avatar akwala commented on July 19, 2024

Thx, @tkdchen!

That fixed the issue w/ 'GTG' module not being found. However, it then reported the same for module 'liblarch'. I have python3-liblarch from the gtg-daily PPA, but it's in /usr/lib/python2.7/dist-packages, so I tried the following (in /path/to/cloned/gtg)...

$ PYTHONPATH=".:/usr/lib/python2.7/dist-packages" python3 GTG/gtg
Traceback (most recent call last):
  File "GTG/gtg", line 51, in <module>
    import dbus
  File "/usr/lib/python2.7/dist-packages/dbus/__init__.py", line 82, in <module>
    import dbus.types as types
  File "/usr/lib/python2.7/dist-packages/dbus/types.py", line 6, in <module>
    from _dbus_bindings import (
ImportError: /usr/lib/python2.7/dist-packages/_dbus_bindings.so: undefined symbol: _Py_ZeroStruct

(Let me know if I should create a new issue since the OP's issue is fixed for me.)

from gtg.

tkdchen avatar tkdchen commented on July 19, 2024

@akwala

Version mismatch. Python3 cannot import Python2 modules.

from gtg.

akwala avatar akwala commented on July 19, 2024

So, python3-liblarch is actually a python2 module? If so, is there a python3 module of liblarch?

from gtg.

tkdchen avatar tkdchen commented on July 19, 2024

@akwala u may install liblarch from the master branch. That had been ported to Python 3.

from gtg.

tomspur avatar tomspur commented on July 19, 2024

It seems this is a problem with the PPA. Could you try to install liblarch with pip [1] and see if it works?

[1] pip3 install --user -e git+git://github.com/getting-things-gnome/liblarch.git#egg=liblarch

from gtg.

khurshid-alam avatar khurshid-alam commented on July 19, 2024

@izidormatusov Can you please build python3-liblarch with latest gtg in daily build PPA? Thanks.

from gtg.

nekohayo avatar nekohayo commented on July 19, 2024

As we are a new team taking over the maintainership of this project and the Python 3 migration was done a while ago already, it is difficult to guess if this problem still applies to the current development version. Furthermore, I do not have sufficient time and knowledge about packaging, and I do not run Ubuntu.

Please try out the git version and see if it improved anything or if the issue remains intact and is still relevant today.

Regarding the mentions of a PPA, if someone wants to bother maintaining a PPA, feel free to get involved to do that.

Alternatively, there is a Flatpak of the 0.3.1 stable version that exists thanks to @bilelmoussaoui and he once successfully packaged the git version.

from gtg.

diegogangl avatar diegogangl commented on July 19, 2024

This doesn't happen when running from the Flatpak, or using ./gtg.sh in the git repo

from gtg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.