set version before import pyvips8
stops some warnings
This commit is contained in:
parent
10cfbc553f
commit
6e94df7214
@ -5,6 +5,8 @@ import sys
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
#Vips.cache_set_trace(True)
|
#Vips.cache_set_trace(True)
|
||||||
|
@ -4,6 +4,8 @@ import sys
|
|||||||
|
|
||||||
# you might need this in your .bashrc
|
# you might need this in your .bashrc
|
||||||
# export GI_TYPELIB_PATH=$VIPSHOME/lib/girepository-1.0
|
# export GI_TYPELIB_PATH=$VIPSHOME/lib/girepository-1.0
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
print 'long way around:'
|
print 'long way around:'
|
||||||
|
@ -5,6 +5,8 @@ import sys
|
|||||||
import logging
|
import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
a = Vips.Image.black(100, 100)
|
a = Vips.Image.black(100, 100)
|
||||||
|
@ -5,6 +5,8 @@ import sys
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
a = Vips.Image.new_from_file(sys.argv[1])
|
a = Vips.Image.new_from_file(sys.argv[1])
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
im = Vips.Image.new_from_file(sys.argv[1], access = Vips.Access.SEQUENTIAL)
|
im = Vips.Image.new_from_file(sys.argv[1], access = Vips.Access.SEQUENTIAL)
|
||||||
|
@ -5,4 +5,6 @@ import sys
|
|||||||
import logging
|
import logging
|
||||||
logging.basicConfig(level = logging.DEBUG)
|
logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
@ -5,6 +5,8 @@ import sys
|
|||||||
import logging
|
import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
a = Vips.Image.black(100, 100)
|
a = Vips.Image.black(100, 100)
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import GLib, Vips
|
from gi.repository import GLib, Vips
|
||||||
|
|
||||||
context = GLib.OptionContext(" - test python stuff")
|
context = GLib.OptionContext(" - test python stuff")
|
||||||
|
@ -5,6 +5,8 @@ import sys
|
|||||||
import logging
|
import logging
|
||||||
logging.basicConfig(level = logging.DEBUG)
|
logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
#Vips.cache_set_trace(True)
|
#Vips.cache_set_trace(True)
|
||||||
|
@ -5,6 +5,8 @@ import sys
|
|||||||
import logging
|
import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
#Vips.cache_set_trace(True)
|
#Vips.cache_set_trace(True)
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
import logging
|
import logging
|
||||||
logging.basicConfig(level = logging.DEBUG)
|
logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
Vips.cache_set_trace(True)
|
Vips.cache_set_trace(True)
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@ import sys
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
Vips.cache_set_trace(True)
|
Vips.cache_set_trace(True)
|
||||||
|
@ -5,6 +5,8 @@ import sys
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
a = Vips.Image.new_from_file(sys.argv[1])
|
a = Vips.Image.new_from_file(sys.argv[1])
|
||||||
|
@ -5,6 +5,8 @@ import sys
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
a = Vips.Image.new_from_file(sys.argv[1])
|
a = Vips.Image.new_from_file(sys.argv[1])
|
||||||
|
@ -5,6 +5,8 @@ import sys
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
a = Vips.Image.new_from_file(sys.argv[1])
|
a = Vips.Image.new_from_file(sys.argv[1])
|
||||||
|
@ -5,6 +5,8 @@ import sys
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
a = Vips.Image.new_from_file(sys.argv[1])
|
a = Vips.Image.new_from_file(sys.argv[1])
|
||||||
|
@ -5,6 +5,8 @@ import sys
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
a = Vips.Image.new_from_array([[1, 2, 3], [4, 5, 6], [7, 8, 9]], 8, 128)
|
a = Vips.Image.new_from_array([[1, 2, 3], [4, 5, 6], [7, 8, 9]], 8, 128)
|
||||||
|
@ -5,6 +5,8 @@ import sys
|
|||||||
import logging
|
import logging
|
||||||
logging.basicConfig(level = logging.DEBUG)
|
logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
a = Vips.Image.black(100, 100)
|
a = Vips.Image.black(100, 100)
|
||||||
|
@ -7,6 +7,8 @@ import math
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
Vips.leak_set(True)
|
Vips.leak_set(True)
|
||||||
|
@ -6,6 +6,8 @@ import math
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
Vips.leak_set(True)
|
Vips.leak_set(True)
|
||||||
|
@ -7,6 +7,8 @@ import math
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
from functools import reduce
|
from functools import reduce
|
||||||
|
|
||||||
|
@ -11,6 +11,8 @@ import math
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
Vips.leak_set(True)
|
Vips.leak_set(True)
|
||||||
|
@ -6,6 +6,8 @@ import math
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
Vips.leak_set(True)
|
Vips.leak_set(True)
|
||||||
|
@ -6,6 +6,8 @@ import math
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
Vips.leak_set(True)
|
Vips.leak_set(True)
|
||||||
|
@ -6,6 +6,8 @@ import math
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
Vips.leak_set(True)
|
Vips.leak_set(True)
|
||||||
|
@ -7,6 +7,8 @@ import math
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
Vips.leak_set(True)
|
Vips.leak_set(True)
|
||||||
|
@ -6,6 +6,8 @@ import math
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
Vips.leak_set(True)
|
Vips.leak_set(True)
|
||||||
|
@ -6,6 +6,8 @@ import math
|
|||||||
#import logging
|
#import logging
|
||||||
#logging.basicConfig(level = logging.DEBUG)
|
#logging.basicConfig(level = logging.DEBUG)
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version('Vips', '8.0')
|
||||||
from gi.repository import Vips
|
from gi.repository import Vips
|
||||||
|
|
||||||
Vips.leak_set(True)
|
Vips.leak_set(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user