set version before import pyvips8

stops some warnings
This commit is contained in:
John Cupitt 2016-05-18 13:41:41 +01:00
parent 10cfbc553f
commit 6e94df7214
28 changed files with 56 additions and 0 deletions

View File

@ -5,6 +5,8 @@ import sys
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
#Vips.cache_set_trace(True)

View File

@ -4,6 +4,8 @@ import sys
# you might need this in your .bashrc
# export GI_TYPELIB_PATH=$VIPSHOME/lib/girepository-1.0
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
print 'long way around:'

View File

@ -5,6 +5,8 @@ import sys
import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
a = Vips.Image.black(100, 100)

View File

@ -5,6 +5,8 @@ import sys
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
a = Vips.Image.new_from_file(sys.argv[1])

View File

@ -2,6 +2,8 @@
import sys
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
im = Vips.Image.new_from_file(sys.argv[1], access = Vips.Access.SEQUENTIAL)

View File

@ -5,4 +5,6 @@ import sys
import logging
logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips

View File

@ -5,6 +5,8 @@ import sys
import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
a = Vips.Image.black(100, 100)

View File

@ -2,6 +2,8 @@
import sys
import gi
gi.require_version('Vips', '8.0')
from gi.repository import GLib, Vips
context = GLib.OptionContext(" - test python stuff")

View File

@ -5,6 +5,8 @@ import sys
import logging
logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
#Vips.cache_set_trace(True)

View File

@ -5,6 +5,8 @@ import sys
import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
#Vips.cache_set_trace(True)

View File

@ -3,6 +3,8 @@
import logging
logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
Vips.cache_set_trace(True)

View File

@ -5,6 +5,8 @@ import sys
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
Vips.cache_set_trace(True)

View File

@ -5,6 +5,8 @@ import sys
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
a = Vips.Image.new_from_file(sys.argv[1])

View File

@ -5,6 +5,8 @@ import sys
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
a = Vips.Image.new_from_file(sys.argv[1])

View File

@ -5,6 +5,8 @@ import sys
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
a = Vips.Image.new_from_file(sys.argv[1])

View File

@ -5,6 +5,8 @@ import sys
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
a = Vips.Image.new_from_file(sys.argv[1])

View File

@ -5,6 +5,8 @@ import sys
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
a = Vips.Image.new_from_array([[1, 2, 3], [4, 5, 6], [7, 8, 9]], 8, 128)

View File

@ -5,6 +5,8 @@ import sys
import logging
logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
a = Vips.Image.black(100, 100)

View File

@ -7,6 +7,8 @@ import math
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
Vips.leak_set(True)

View File

@ -6,6 +6,8 @@ import math
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
Vips.leak_set(True)

View File

@ -7,6 +7,8 @@ import math
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
from functools import reduce

View File

@ -11,6 +11,8 @@ import math
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
Vips.leak_set(True)

View File

@ -6,6 +6,8 @@ import math
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
Vips.leak_set(True)

View File

@ -6,6 +6,8 @@ import math
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
Vips.leak_set(True)

View File

@ -6,6 +6,8 @@ import math
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
Vips.leak_set(True)

View File

@ -7,6 +7,8 @@ import math
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
Vips.leak_set(True)

View File

@ -6,6 +6,8 @@ import math
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
Vips.leak_set(True)

View File

@ -6,6 +6,8 @@ import math
#import logging
#logging.basicConfig(level = logging.DEBUG)
import gi
gi.require_version('Vips', '8.0')
from gi.repository import Vips
Vips.leak_set(True)