Search found 88 matches
by awasu.user
Sat Aug 05, 2017 6:48 am
Forum: Awasu - Extensions
Topic: Script is too long executed and Awasu can't get result from it
Replies: 3
Views: 1633

Re: Script is too long executed and Awasu can't get result from it

awasu.user wrote:
support wrote:DefaultValue=300
Questions:
1. Value is in ms or seconds?
2. When Awasy get result will it be wait for this amount of time or go ahead with doing something else?
by awasu.user
Thu Aug 03, 2017 5:15 am
Forum: Awasu - Extensions
Topic: Script is too long executed and Awasu can't get result from it
Replies: 3
Views: 1633

Script is too long executed and Awasu can't get result from it

Before generating channel for Awasu I have to make calculation. It's takes few minutes. I have correct result, but execution time is too long for Awasu and I get error. How change that? What do when scripts need time to execution before send data to Awasu?
by awasu.user
Mon Jul 31, 2017 1:56 pm
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 6811

Re: Generating few channel with one plgin

Only working solution - change charstet to Windows. In Awasu no errors, characters coding ok.
by awasu.user
Mon Jul 31, 2017 1:10 pm
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 6811

Re: Generating few channel with one plgin

support wrote:My misteak, I should've asked for
I change and I got:

Code: Select all

type(sys.stdout.buffer)
<class '_io.BufferedWriter'>
Eh, googling again.
by awasu.user
Mon Jul 31, 2017 12:44 pm
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 6811

Re: Generating few channel with one plgin

Official from python.org and ipython installed by pip (for jupyter notebook). Result typing is: Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> import sys >>> sys.version '3.6.1 (v3.6.1:69c...
by awasu.user
Mon Jul 31, 2017 10:38 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 6811

Re: Generating few channel with one plgin

It's strange. I use the same version on Win7 and this code make me error :(
by awasu.user
Mon Jul 31, 2017 9:20 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 6811

Re: Generating few channel with one plgin

Your function in my code: import sys def print_utf8( val ) : sys.stdout.buffer.write( val.encode( "utf-8" ) ) sys.stdout.buffer.write( b"\n" ) rss_data = u'''<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <title><![CDATA[W3Schools Home Page]</title> <link><![CDATA[https://www....
by awasu.user
Mon Jul 31, 2017 7:37 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 6811

Re: Generating few channel with one plgin

Oops! You've right! :oops: I closed tag correctly and still can get right output. Problem is with putting UTF-8 to console. On test charset characters Awasu is talking about mistake... :wall: I'm looking for alternative to print to write output.
by awasu.user
Mon Jul 31, 2017 5:19 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 6811

Re: Generating few channel with one plgin

For test I use code: rss_data = u'''<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <title><![CDATA[W3Schools Home Page]</title> <link><![CDATA[https://www.w3schools.com]</link> <description><![CDATA[PL characters: ąęłńóźć! ?!Free web building tutorials]</description> <item> <t...
by awasu.user
Sun Jul 30, 2017 5:46 pm
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 6811

Re: Generating few channel with one plgin

OK, I understand URL params very well, but if I understand you sugest solution: 1. Create New Channel 2. For each channel set: c:\awasu_plg.py with options: c:\awasu_plg.py -opt-one c:\awasu_plg.py -opt-two and read settings from INI based on option. In my scenario is ~170 dynamic calculated channel...
by awasu.user
Sun Jul 30, 2017 11:07 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 6811

Re: Generating few channel with one plgin

Now, I'm not sure what you're asking... When I'm waiting for answer I test data from file as you sugested before to validate result before running script. So I'm asking about two things: 1. How print result from python script to Awasu [ Resolved by GLOBAL.INI ] 2. How format output for Awasu to det...
by awasu.user
Sun Jul 30, 2017 8:11 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 6811

Re: Generating few channel with one plgin

Except I use Python 3 error is the same. It should be error from script (print format). Error: Can't determine the feed type. python.exe: can't open file '%L': [Errno 2] No such file or directory For quick test I use code too: rss_data = ''' <?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"...
by awasu.user
Sun Jul 30, 2017 7:35 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 6811

Re: Generating few channel with one plgin

File .py after clicking run script in Windows correctly so problem is in another place. What I do? Steps: Ctrl+N 1. Select: Generated by a channel plugin 2. In Plugin: I click on folder icon and select .py file. On plugin I have full path C:\script\awasu_pg.py 3. Click Next 4. Result: Error is showi...
by awasu.user
Sat Jul 29, 2017 6:13 pm
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 6811

Re: Generating few channel with one plgin

I declared utf-8 and try open python file in Awasu wizard. I get error: Error: Can't determine the feed type. Channel feed: C:\Python\Python36\python.exe: can't open file '%L': [Errno 2] No such file or directory Could you explain me what is going on? Structure is correct with RSS 2.0 specification....
by awasu.user
Sat Jul 29, 2017 2:21 pm
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 6811

Re: Generating few channel with one plgin

I test output from channel generation. I get in Awasu:

Code: Select all

XML parse failed (4:L43:C14): not well-formed (invalid token)
It's another isseu with character coding? I simply use print("") in Python... Should I decode it to UTF-8?

Go to advanced search