Code Monkey home page Code Monkey logo

gi-library-boilerplate's People

Contributors

acrisci avatar kanavin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kanavin bossjones

gi-library-boilerplate's Issues

cannot import name Maman

Hi,

I tried to build the package & use Maman boilerplate using gi.
However, gi doesn't seem to find Maman.

Can you please help me?

Library build is okay:

$ ls -al maman/.libs/
total 176
drwxrwxr-x 2 gvkalra gvkalra  4096 Jul 14 20:09 .
drwxrwxr-x 4 gvkalra gvkalra  4096 Jul 14 20:09 ..
-rw-rw-r-- 1 gvkalra gvkalra 59024 Jul 14 20:09 libmaman-1.0.a
lrwxrwxrwx 1 gvkalra gvkalra    18 Jul 14 20:09 libmaman-1.0.la -> ../libmaman-1.0.la
-rw-rw-r-- 1 gvkalra gvkalra   993 Jul 14 20:09 libmaman-1.0.lai
lrwxrwxrwx 1 gvkalra gvkalra    21 Jul 14 20:09 libmaman-1.0.so -> libmaman-1.0.so.0.0.0
lrwxrwxrwx 1 gvkalra gvkalra    21 Jul 14 20:09 libmaman-1.0.so.0 -> libmaman-1.0.so.0.0.0
-rwxrwxr-x 1 gvkalra gvkalra 40792 Jul 14 20:09 libmaman-1.0.so.0.0.0
-rw-rw-r-- 1 gvkalra gvkalra 13968 Jul 14 20:09 maman-bar.o
-rw-rw-r-- 1 gvkalra gvkalra 30744 Jul 14 20:09 maman-baz.o
-rw-rw-r-- 1 gvkalra gvkalra 14376 Jul 14 20:09 maman-ibaz.o


$ ls -al 
total 1096
drwxrwxr-x 5 gvkalra gvkalra   4096 Jul 14 20:13 .
drwxr-xr-x 3 gvkalra gvkalra   4096 Jul 14 20:00 ..
-rw-rw-r-- 1 gvkalra gvkalra  66395 Jul 14 20:08 aclocal.m4
-rwxr-xr-x 1 gvkalra gvkalra     61 Mar 21 00:26 autogen.sh
drwxr-xr-x 2 gvkalra gvkalra   4096 Jul 14 20:08 autom4te.cache
drwxr-xr-x 3 gvkalra gvkalra   4096 Jul 14 20:08 build
-rw-rw-r-- 1 gvkalra gvkalra   1805 Jul 14 20:08 config.h
-rw-rw-r-- 1 gvkalra gvkalra   1611 Jul 14 20:08 config.h.in
-rw-rw-r-- 1 gvkalra gvkalra   1611 Jul 14 20:07 config.h.in~
-rw-rw-r-- 1 gvkalra gvkalra  25143 Jul 14 20:08 config.log
-rwxrwxr-x 1 gvkalra gvkalra  58986 Jul 14 20:08 config.status
-rwxrwxr-x 1 gvkalra gvkalra 462411 Jul 14 20:08 configure
-rw-rw-r-- 1 gvkalra gvkalra   1249 Mar 21 00:26 configure.ac
-rw-rw-r-- 1 gvkalra gvkalra  35148 Mar 21 00:26 COPYING
-rwxr-xr-x 1 gvkalra gvkalra   1684 Mar 21 00:26 generate-boilerplate.pl
-rw-rw-r-- 1 gvkalra gvkalra      6 Mar 21 00:26 .gitignore
-rwxrwxr-x 1 gvkalra gvkalra 339491 Jul 14 20:08 libtool
-rw-rw-r-- 1 gvkalra gvkalra  26968 Jul 14 20:08 Makefile
-rw-rw-r-- 1 gvkalra gvkalra    102 Mar 21 00:26 Makefile.am
-rw-rw-r-- 1 gvkalra gvkalra  26654 Jul 14 20:08 Makefile.in
drwxrwxr-x 4 gvkalra gvkalra   4096 Jul 14 20:09 maman
-rw-rw-r-- 1 gvkalra gvkalra   2699 Mar 21 00:26 README.md
-rw-rw-r-- 1 gvkalra gvkalra     23 Jul 14 20:08 stamp-h1
-rw-rw-r-- 1 gvkalra gvkalra    166 Jul 14 20:13 test.py

Paths are exported

$ export GI_TYPELIB_PATH=/home/gvkalra/Downloads/gi-library-boilerplate-master/maman:$GI_TYPELIB_PATH
$ export LD_LIBRARY_PATH=/home/gvkalra/Downloads/gi-library-boilerplate-master/maman/.libs:$LD_LIBRARY_PATH

This is a test script (from blog post)

$ cat test.py 
#!/usr/bin/env python3

from gi.repository import Maman

# Create a new object
bar = Maman.Bar()

# Say hello to bar
words = bar.speak('Hello, world!')

print(words)

Unable to import Maman:

$ python test.py 
Traceback (most recent call last):
  File "test.py", line 3, in <module>
    from gi.repository import Maman
ImportError: cannot import name Maman

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.