Closed sosie-js closed 1 week ago
By the way, it works nicely with scite =) just put vapoursynth.properties in /etc/scite
# Define SciTE settings for Vapoursynth Python files.
file.patterns.vpy=*.vpy
file.patterns.scons=SConstruct;SConscript
*source.patterns.vapoursynth=$(file.patterns.vpy);
shbang.vapoursynth=vpy
filter.vapoursynh=Python (vpy pyw)|$(file.patterns.vpy)|
*filter.vapoursynth=$(filter.vapoursynth)
lexer.$(file.patterns.vpy)=python
lexer.$(file.patterns.scons)=python
*language.vapoursynth=Pytho&n|vpy||
keywordclass.vapoursynth=False None True and as assert break class continue \
def del elif else except finally for from global if import in is lambda \
nonlocal not or pass raise return try while with yield
# Extra keywords for cython
keywordclass.cython=cdef cimport cpdef
keywords.$(file.patterns.py)=$(keywordclass.vapoursynth) $(keywordclass.cython)
keywords.$(file.patterns.scons)=$(keywordclass.vapoursynth)
# If you uncomment the 3 lines below,
# and put some words after "keywordclass2.python=",
# those words will be styled by style.python.14
#keywordclass2.python=
#keywords2.$(file.patterns.py)=$(keywordclass2.python)
#keywords2.$(file.patterns.scons)=$(keywordclass2.python)
# Use 2 sets of substyles to highlight standard library modules and
# imports from the future.
# Additional identifier sets can be added by incrementing the next
# line's value and adding extra definitions similar to below.
substyles.vapoursynth.11=2
substylewords.11.1.$(file.patterns.py)=\
__main__ _dummy_thread _thread abc aifc argparse \
array ast asynchat asyncio asyncore atexit audioop \
base64 bdb binascii binhex bisect builtins bz2 \
calendar cgi cgitb chunk cmath cmd code codecs \
codeop collections colorsys compileall concurrent \
configparser contextlib copy copyreg crypt csv \
ctypes curses datetime dbm decimal difflib dis \
distutils dummy_threading email ensurepip enum \
errno faulthandler fcntl filecmp fileinput fnmatch \
formatter fpectl fractions ftplib functools gc getopt \
getpass gettext glob grp gzip hashlib heapq hmac \
html http http imaplib imghdr importlib inspect io \
ipaddress itertools json keyword linecache locale \
logging lzma macpath mailbox mailcap marshal math \
mimetypes mmap modulefinder msilib msvcrt \
multiprocessing netrc nis nntplib numbers operator \
os os ossaudiodev parser pathlib pdb pickle \
pickletools pipes pkgutil platform plistlib poplib posix \
pprint pty pwd py_compile pyclbr queue quopri \
random re readline reprlib resource rlcompleter runpy \
sched select selectors shelve shlex shutil signal site \
smtpd smtplib sndhdr socket socketserver spwd \
sqlite3 ssl stat statistics string stringprep struct \
subprocess sunau symbol symtable sys sysconfig \
syslog tabnanny tarfile telnetlib tempfile termios \
textwrap threading time timeit tkinter token \
tokenize trace traceback tracemalloc tty turtle \
types unicodedata unittest urllib uu uuid venv warnings \
wave weakref webbrowser winreg winsound wsgiref \
xdrlib xml xmlrpc zipfile zipimport zlib
style.python.11.1=fore:#DD9900
substylewords.11.2.$(file.patterns.vpy)=__future__ \
with_statement unicode_literals print_function
style.vapoursynth.11.2=fore:#EE00AA,italics
#~ statement.indent.$(file.patterns.py)=10 :
statement.indent.$(file.patterns.vpy)=5 class def elif else except finally \
for if try while with
statement.lookback.$(file.patterns.vpy)=0
block.start.$(file.patterns.vpy)=
block.end.$(file.patterns.vpy)=
view.indentation.examine.*.vpy=2
tab.timmy.whinge.level=1
#fold.quotes.python=1
comment.block.vapoursynth=#~
indent.vapoursynth.colon=1
# Python styles
# White space
style.vapoursynth.0=fore:#808080
# Comment
style.vapoursynth.1=fore:#007F00,$(font.comment)
# Number
style.vapoursynth.2=fore:#007F7F
# String
style.vapoursynth.3=fore:#7F007F,$(font.monospace)
# Single quoted string
style.vapoursynth.4=fore:#7F007F,$(font.monospace)
# Keyword
style.vapoursynth.5=fore:#00007F,bold
# Triple quotes
style.vapoursynth.6=fore:#7F0000
# Triple double quotes
style.vapoursynth.7=fore:#7F0000
# Class name definition
style.vapoursynth.8=fore:#0000FF,bold
# Function or method name definition
style.vapoursynth.9=fore:#007F7F,bold
# Operators
style.vapousynth.10=bold
# Identifiers
style.vapoursynth.11=
# Comment-blocks
style.vapoursynth.12=fore:#7F7F7F
# End of line where string is not closed
style.vapoursynth.13=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled
# Highlighted identifiers
style.vapoursynth.14=fore:#407090
# Decorators
style.vapoursynth.15=fore:#805000
# F-String
style.vapoursynth.16=fore:#7F007F,$(font.monospace)
# Single quoted f-string
style.vapoursynth.17=fore:#7F007F,$(font.monospace)
# Triple quoted f-string
style.vapoursynth.18=fore:#7F0000
# Triple double quoted f-string
style.vapoursynth.19=fore:#7F0000
# Matched Operators
style.vapoursynth.34=fore:#0000FF,bold
style.vapoursynth.35=fore:#FF0000,bold
# Braces are only matched in operator style
braces.vapoursynth.style=10
if PLAT_WIN
vapoursynth.command=vspreview
if PLAT_GTK
vapoursynth.command=vspreview
if PLAT_MAC
vapoursynth.command=vspreview
if PLAT_WIN
command.go.*.vpy=$(vapoursynth.command) "$(FileNameExt)"
command.go.subsystem.*.vpy=1
command.build.SConscript=scons.bat --up .
command.build.SConstruct=scons.bat .
if PLAT_GTK
command.go.*.vpy=$(vapoursynth.command) "$(FileNameExt)"
command.build.SConscript=scons --up .
command.build.SConstruct=scons .
if PLAT_MAC
command.go.*.vpy=$(vapoursynth.command) "$(FileNameExt)"
command.build.SConscript=scons --up .
command.build.SConstruct=scons .
command.name.1.$(file.patterns.vpy)=Syntax Check
command.1.$(file.patterns.vpy)=$(python.command) -c "import py_compile; py_compile.compile(r'$(FilePath)')"
I would assume its because 0.7.1 is the last version to support python 3.10
I would assume its because 0.7.1 is the last version to support python 3.10
There is no such restriction in the requirement.txt of vs-preview, the bad duck is the R68 that is not available though pip3. There is no source, just whl provided for windows which is very limited.
vs-preview$ cat requirements.txt VapourSynth>=68 vstools>=3.2.0 vsengine>=0.2.0 PyQt6>=6.6.1 PyQt6-sip>=13.4.0 QDarkStyle>=3.1 PyYAML>=6.0 matplotlib>=3.7.1 requests>=2.31.0 requests-toolbelt>=1.0.0 numpy>=1.24.3
I'm not sure what the issue with the vapoursynth package is but python version doesn't go into requirements.txt anyhow. See https://github.com/Jaded-Encoding-Thaumaturgy/vs-preview/blob/master/setup.py#L30
I'm not sure what the issue with the vapoursynth package is but python version doesn't go into requirements.txt anyhow. See https://github.com/Jaded-Encoding-Thaumaturgy/vs-preview/blob/master/setup.py#L30
ok, do we really need such an python and vs upgrades?
Why don't you just install with --ignore-requires-python and fix the 3.11/12 stuff locally, should be a couple of things
@Setsugennoao, this is what I am macgyving now but seems to lack files ^^'. Failsafe is to lower version in the requirement of vstools to 2.3.0 that removes the constraints on python solving the bad detection of local installed vapoursynth . Thanks alot for your help =)
On the https://pypi.org/project/vspreview/ website it is indicated 0.9.0 but when I do:
So I deleted cache
and reinstalled vspreview.
pip3 install vspreview
gives:It seems to be locked to 0.7.1!
All went good but when I trigger vspreview it crashes
unless I patch it with
So I tried with github:
it fails to detect vapoursynth I installed with the same pip3 install. EDIT: I did install vapoursynth from sources instead - @selur did a great work for linux to have vs plugins
all went good all is installed locally for the normal current user
At this point we have a running 68
Unfortunately not dectected by pip3 install vspreview
Where is the bone in the pip?