Re: Cytolk, cython extension over the tolk library
@64, odd indeed, as I've tested it directly from 3.9
URL: https://forum.audiogames.net/post/589489/#p589489
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin
Re: Cytolk, cython extension over the tolk library
Only works on older Python versions though, Python 3.8 here and it doesn't work. Guess add_dll_directory() isn't supported in that fix yet.
URL: https://forum.audiogames.net/post/589452/#p589452
--
Audiogames-reflector mailing list
Re: Cytolk, cython extension over the tolk library
@62That's amazing, thank you so much.
URL: https://forum.audiogames.net/post/589428/#p589428
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo
Re: Cytolk, cython extension over the tolk library
@57, definitely was my fault,which should be now corrected.0.1.6 is now up, and it is no longer required to place the libraries in your current working directory.
URL: https://forum.audiogames.net/post/589374/#p589374
--
Audiogames
Re: Cytolk, cython extension over the tolk library
@60 thanks, I should be able to use it now
URL: https://forum.audiogames.net/post/588480/#p588480
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman
Re: Cytolk, cython extension over the tolk library
sorry for double postfor 0.1.5 I manually pushed py 3.9 wheelsfrom versions above, the python 3.9 wheels should be generated automatically.
URL: https://forum.audiogames.net/post/588312/#p588312
--
Audiogames-reflector mailing list
Re: Cytolk, cython extension over the tolk library
@58 I've tested it locally with python 3.9, however, turns out I didn't add the python 3.9 environment on appveyor so last release doesn't have wheels for it.
URL: https://forum.audiogames.net/post/588309/#p588309
--
Audiogames
Re: Cytolk, cython extension over the tolk library
Any chances this would be compatible with python 3.9? For now I can only use it in an other virtual environment that is python3.7, or that is the one I tried for now, since I don't know if it also works with python 3.8
URL: https
Re: Cytolk, cython extension over the tolk library
@56I've tried both options, however they both failed. Even though the path is modified, the libraries won't be detected.Or perhapps I've done something wrong, most likely.
URL: https://forum.audiogames.net/post/587598/#p587598
Re: Cytolk, cython extension over the tolk library
as I said earlier, thats not entirely correct. The search locations where tolk searches for DLLs can be influenced with sys.path under older Python versions and add_dll_directory() under newer Python versions.
URL: https
Re: Cytolk, cython extension over the tolk library
@54 adding the path won't workThe dlls have to be copied exactly on the same directory as the program that is executed, because of the way tolk loads them.
URL: https://forum.audiogames.net/post/587535/#p587535
--
Audiogames
Re: Cytolk, cython extension over the tolk library
@53, during the load it should be possible to add the dll to ppath and removing it after the dll got loaded.also for pyInstaller, a hook is necessary to copy those dll files to the executable directory (then adding dll to the path won't
Re: Cytolk, cython extension over the tolk library
Well then.0.1.5 is up.There are really no major improvements, just made sure that each version includes all the required libraries.I just copy them from the tolk submodule and then clean them once the setup has done packaging. Hope
Re: Cytolk, cython extension over the tolk library
Hi there,re-building my own audio game engine on top of Cytolk right now. Re-building, because I started building this engine like 8 years back under Python 2.7 and it wasn't ment to be flexible and exchangeable, although some of the core
Re: Cytolk, cython extension over the tolk library
Als sorry for the double posting.@46Glad you like Earwax too haha.My only problem is still this DLL thing. It just seems to break the whole pip install thing. I mean, accessible_output2 knew where all the DLLs were, is there no way you can
Re: Cytolk, cython extension over the tolk library
@47Not sure I see the point. I mean, the call to load() is obviously necessary, but not to unload. Nothing seems to happen if you don't unload, unless I'm missing something?
URL: https://forum.audiogames.net/post/579381/#p579381
Re: Cytolk, cython extension over the tolk library
it would for instance be useful if you wanted to use the library quickly and get rid of it after whatever operation you're doing.Instead of loading the library at the start of the program and unloading it at the end, with the context
Re: Cytolk, cython extension over the tolk library
What would be the usefulness in doing this?
URL: https://forum.audiogames.net/post/579338/#p579338
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman
Re: Cytolk, cython extension over the tolk library
Sorry for double postingI was thinking.Would it be worth to add a context manager over tolk? Initially I think I've implemented it but quickly dropped it to make the API compatible to the ctypes tolk binding.So by having a context manager
Re: Cytolk, cython extension over the tolk library
@45 my pleasure :dI'm happy you are using it in your project and that you're finding your self comfortable with it.If you have any ideas please reach out.Oh and good job on earwax, I really like it.
URL: https://forum.audiogames.net/post
Re: Cytolk, cython extension over the tolk library
Hey Paul,Wanted to let you know I've just been playing with cytolk, and I'm loving it. Good job.Going to use it in Earwax, instead of AO2 going forward.Thanks for making this available.
URL: https://forum.audiogames.net/post/579323
Re: Cytolk, cython extension over the tolk library
tolk.speak speaks the text given, while tolk.output both speaks thext and brailles it, if braille is supported by the screen reader.
URL: https://forum.audiogames.net/post/576258/#p576258
--
Audiogames-reflector mailing list
Re: Cytolk, cython extension over the tolk library
Sorry for the newbie question but, what is the difference between tolk.speak and tolk.output?
URL: https://forum.audiogames.net/post/576227/#p576227
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
Re: Cytolk, cython extension over the tolk library
@40 and @41How does AO2 get around it? I don't need to do anything when pip installing that.
URL: https://forum.audiogames.net/post/576081/#p576081
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
Re: Cytolk, cython extension over the tolk library
@39you will have to place the DLL each time, yesYou do not need to install any requirements, you can just install cytolk it's self.
URL: https://forum.audiogames.net/post/576056/#p576056
--
Audiogames-reflector mailing list
Re: Cytolk, cython extension over the tolk library
@39You'll have to place them. Python's packaging isn't flexible enough to run that for you.
URL: https://forum.audiogames.net/post/575998/#p575998
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
Re: Cytolk, cython extension over the tolk library
Nice work mate.What does that mean for creating new projects? Will you have to place the DLLs every time? Or will I eventually be able to just pip install -r requirements.txt and start coding?Cheers for your work mate, I very much look
Re: Cytolk, cython extension over the tolk library
well then0.1.3 is up.The nvda dll is packed within the wheel, therefore you will just have to runpython -m cytolk --place_dllto have it in your working directory.Plan to add the sapi DLL as well, but I would like to find a way to pull
Re: Cytolk, cython extension over the tolk library
Semi agree with @35 and @36, except that using RTD is so easy (especially if you're using PBR for builds) that you might as well. Also, presumably you're already documenting your functions, so might as well include sphinx stuff
Re: Cytolk, cython extension over the tolk library
@34, create a section on the readme and explain the functions there. no need for documentation, because tolk is not something huge to be learnt.
URL: https://forum.audiogames.net/post/568775/#p568775
--
Audiogames-reflector mailing
Re: Cytolk, cython extension over the tolk library
You shouldn't have very much documentation. I'd just stick it directly in the readme.
URL: https://forum.audiogames.net/post/568701/#p568701
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https
Re: Cytolk, cython extension over the tolk library
Yes.I've added an entry point to place the dlls in your current directory, so the sintax to do so would be something like:python -m cytolk --place_dllThe dlls are also packed in the wheel, however I did not push it yet.I'm still trying
Re: Cytolk, cython extension over the tolk library
@32You still working on this?Just tried to update the package in my virtualenv to see if anything had changed, but no dice.
URL: https://forum.audiogames.net/post/568657/#p568657
--
Audiogames-reflector mailing list
Audiogames
Re: Cytolk, cython extension over the tolk library
@31, absolutely, will keep you posted.
URL: https://forum.audiogames.net/post/565513/#p565513
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman
Re: Cytolk, cython extension over the tolk library
Hey paul,I'm keeping an eye on this topic. Mind letting us know when the docs are up? I'd love to use your stuff, but I feel like I need a fair amount of info about what DLLs I need to get from where, and where to put them before I
Re: Cytolk, cython extension over the tolk library
this is using 4 spaces for indentation.
URL: https://forum.audiogames.net/post/565481/#p565481
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman
Re: Cytolk, cython extension over the tolk library
I didn't actually read the code, but if this isn't using 4 spaces for indentation, please do that. Those of us who code Python in a professional context generally have to temporarily reconfigure our editors to deal with blindie formatting
Re: Cytolk, cython extension over the tolk library
@25, those are modules, and to implement them, you need a __main__.py inside the module's directory.but for PyInstaller, the besst way is to write down a hook for iit and submit it as a pr to PyInstaller.I have written a hook for NLTK
Re: Cytolk, cython extension over the tolk library
Sorry for double postingYou also can build the extension without the need to have cython installed.The generated c source code has been included in the repository, and it'll build with that by default.
URL: https://forum.audiogames.net
Re: Cytolk, cython extension over the tolk library
@25 ah. Thanks, I will investigate on thatUploaded 0.1.2 which fixes an error in detect_screen_reader() Italso returns None if no screenreader is detectedAlso included the readme in the project page.Hmm, perhapps is time to create
Re: Cytolk, cython extension over the tolk library
@24In theory you can:python -m cytolk-copy my-distribution-directoryThis requires telling setup.py that your package offers a command in addition to a library, which I don't know how to do offhand, but it should be pretty easy. This isn't
Re: Cytolk, cython extension over the tolk library
@22So you mean having a custom command in setup.py to decide where to place the DLL?
URL: https://forum.audiogames.net/post/565208/#p565208
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https
Re: Cytolk, cython extension over the tolk library
@20RTD would be great, but whatever you know how to do. I only say RTD because it's the canonical way of doing things.
URL: https://forum.audiogames.net/post/565193/#p565193
--
Audiogames-reflector mailing list
Audiogames-reflector
Re: Cytolk, cython extension over the tolk library
@18You can get the dlls in the wheel, and I think you can even get Cytolk loading them from the extracted directory if you tell Tolk where they live. But you probably can't get Pyinstaller to pick them up without adding a hook
Re: Cytolk, cython extension over the tolk library
It actually does
URL: https://forum.audiogames.net/post/565141/#p565141
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Cytolk, cython extension over the tolk library
I don't actually think your python version has any baring on which NVDA DLL you should use, which file you use only determines weather or not 32 bit machines will be able to interface with it. Of course I might be totally wrong, but I'm
Re: Cytolk, cython extension over the tolk library
@19Yes, I can do that absolutely.If for instance you're using the 64bit version, you'll need nvdacontrollerclient64.dll for nvda, or whatever screenreader you're using.Documentation as in, the pip page or RTD? Currently there is a minimal
Re: Cytolk, cython extension over the tolk library
OK, nice work. Any chance detect_screen_reader could return None if there's no screen reader, rather than a string? Seems like it would make more sense.Also, if you can't include DLLs in your distribution, what do I need to have in mine
Re: Cytolk, cython extension over the tolk library
@14 issue fixed.Also, 0.1.1 is up.Will try to see if I can include the dlls in the wheels, in future versions.
URL: https://forum.audiogames.net/post/565093/#p565093
--
Audiogames-reflector mailing list
Audiogames-reflector
Re: Cytolk, cython extension over the tolk library
this is what I'm already doing.
URL: https://forum.audiogames.net/post/565081/#p565081
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo
Re: Cytolk, cython extension over the tolk library
@15 as far as I can tell, when tolk can't find the screen reader, it returns NULLyou should check if sr is NULL: then return your "no screen reader detected message"
URL: https://forum.audiogames.net/post/56506
Re: Cytolk, cython extension over the tolk library
@13, it would appear so, yes.
URL: https://forum.audiogames.net/post/565034/#p565034
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo
Re: Cytolk, cython extension over the tolk library
Yes. If you try to detect the screenreader and no dll is present, it will crash. I still did not figure out why.
URL: https://forum.audiogames.net/post/565032/#p565032
--
Audiogames-reflector mailing list
Audiogames-reflector
Re: Cytolk, cython extension over the tolk library
Hi Paul,Thanks for putting in on PyPi mate, that's great.However:(env) C:\Users\chris\src\earwax>python
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32
Type "help", "co
Re: Cytolk, cython extension over the tolk library
@11For the projects I know of of yours, it doesn't matter. It does, in my case.@12I'm pretty sure NVDA's controller client is LGPL. I think Tolk is also LGPL. You went MIT so you already technically have a license conflict, which you
Re: Cytolk, cython extension over the tolk library
@10Currently you'll need the dlls. It would be absolutely neat to be able to link them, however I wonder if by doing that I would be making a mess with licenses that NVDA and this project has.
URL: https://forum.audiogames.net/post/565018
Re: Cytolk, cython extension over the tolk library
@camlornInteresting. I have always used travis even for my windows side of things. Guess I haven't ran into the headage you're describing.@pauliyobo good to see it on pypi
URL: https://forum.audiogames.net/post/565016/#p565016
Re: Cytolk, cython extension over the tolk library
@pauliyoboIf you inlined the source files so that you're building them as part of setup.py without using whatever Tolk uses, you can probably also upload the source version and have it work for people. That'll take some doing especially
Re: Cytolk, cython extension over the tolk library
ok, there are now wheels for 3.7 32 and 64 bit, and same goes for 3.8.Thanks for suggesting anaconda, was really useful.
URL: https://forum.audiogames.net/post/565011/#p565011
--
Audiogames-reflector mailing list
Audiogames-reflector
Re: Cytolk, cython extension over the tolk library
cytolk 0.1.0 now on PYPI.This has been built from python 3.7 32 bit, I suppose it's now time to use anaconda.
URL: https://forum.audiogames.net/post/565002/#p565002
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin
Re: Cytolk, cython extension over the tolk library
Hey Paul, this is great stuff!!Pleas ekeep us updated if you get this on PyPi. I'd love to replace AO2 in my code with something that's being actively maintained.
URL: https://forum.audiogames.net/post/564999/#p564999
--
Audiogames
Re: Cytolk, cython extension over the tolk library
@2-4just curious. I've seen you mention Appveyor multiple times, but I have more or less worked with travis-ci myself.Are there any reason, you mention Appveyor over travis, or is it just personal preference.@1 nice job
URL: https
Re: Cytolk, cython extension over the tolk library
@4 this seems a good idea, and I believe I'll go for that right now, at least until I can sit down and play with appveyor to try to get it working.
URL: https://forum.audiogames.net/post/564992/#p564992
--
Audiogames-reflector
Re: Cytolk, cython extension over the tolk library
Erg. Not to triple post, but you can also build this locally, skip CI, and upload with twine directly from your machine, and you can use something like Anaconda to manage multiple Python environments with different versions for you, which
Re: Cytolk, cython extension over the tolk library
Also I'm happy to answer any CI questions. Much to my regret, I have done this multiple times myself. I just don't currently have the bandwidth to go do it.
URL: https://forum.audiogames.net/post/564985/#p564985
--
Audiogames
Re: Cytolk, cython extension over the tolk library
Wow. Cool. This will be useful in the near future when I do my Synthizer Python prototype game thing.You need CI if it's going to be easy for anyone to use; to do so, get Appveyor (which is free), build Tolk, run setup.py bdist_wheel
Cytolk, cython extension over the tolk library
Hello there.I've created a cython wrapper over the tolk library.The API is fully compatible with the python tolk bindings, and also it statically links with the tolk code, and as such tolk.dll is no longer required should you use
Cytolk, cython extension over the tolk library
Hello there.I've created a cython wrapper over the tolk library.The API is fully compatible with the python tolk bindings, and also it statically links with the tolk code, and as such tolk.dll is no longer required should you use
68 matches
Mail list logo