-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print SWF(file) not working. #16
Comments
The stack trace is not complete, could you paste the complete one? |
Yes, here's the full stach trace
On Wed, Jun 25, 2014 at 3:27 AM, Dušan Maliarik notifications@github.com
|
Here is a sample SWF file I've attached that causes this problem. I sure On Wed, Jun 25, 2014 at 4:47 AM, John Draper jdcrunchman@gmail.com wrote:
|
You didn't attach the file :) It seems your SWF contains an invalid fillStyle 0x36... A possible workaround would be to save your movie as an older version like 10. Note that pyswf hasn't been updated for quite a while, so pyswf may fail on SWF versions 11 or higher. |
Good question. This SWF file came from the Thailand Yellow Pages CD, and we wanted to be able to extract text data from it. Sent from my iPad On Jun 26, 2014, at 8:12 PM, timknip notifications@github.com wrote:
Where are you located? Need to know, for time zone reasons.
John
|
interesting that there is a fill style in a supposedly pure text file. maybe the font is included in the text in which case it won't be a simple matter of exporting some unicode text. is there a standard thai alphabet in unicode? On Jun 26, 2014, at 7:39 AM, John Draper jdcrunchman@gmail.com wrote: Good question. This SWF file came from the Thailand Yellow Pages CD, and we wanted to be able to extract text data from it. Sent from my iPad On Jun 26, 2014, at 8:12 PM, timknip notifications@github.com wrote:
Where are you located? Need to know, for time zone reasons.
John
|
oh, now i see that tim is the author of pyswf. :) On Jun 26, 2014, at 7:39 AM, John Draper jdcrunchman@gmail.com wrote: Good question. This SWF file came from the Thailand Yellow Pages CD, and we wanted to be able to extract text data from it. Sent from my iPad On Jun 26, 2014, at 8:12 PM, timknip notifications@github.com wrote:
Where are you located? Need to know, for time zone reasons.
John
|
John, It would really help if you send me the SWF so i can try provide you with a fix (Its not attached in the comment you posted earlier). Please send it to tim at floorplanner dot com. |
i see that claus' parser is not a drop-in; pyswf is a translation into python of the parser code. On Jun 26, 2014, at 10:47 AM, John Draper jdcrunchman@gmail.com wrote: Ben, Bob writes this... ---------- Forwarded message ---------- interesting that there is a fill style in a supposedly pure text file. maybe the font is included in the text in which case it won't be a simple matter of exporting some unicode text. is there a standard thai alphabet in unicode? Crunch: where can we get the Thai alphabet in Unicode. perhaps build the module without throwing an exception on invalid style? source is on github. If possible, Yes Bob... lets see of you can collaborate with timKnip and nail this sucka... Crunch On Jun 26, 2014, at 7:39 AM, John Draper jdcrunchman@gmail.com wrote: Good question. This SWF file came from the Thailand Yellow Pages CD, and we wanted to be able to extract text data from it. Sent from my iPad On Jun 26, 2014, at 8:12 PM, timknip notifications@github.com wrote:
Where are you located? Need to know, for time zone reasons.
John
|
Again. I need the SWF to debug the issue. Please attach it or mail it to me. I need the file to reproduce the issue. |
Ok, those other files I sent were aliases. So are useless to you guys. This is for reference only, but using this, and a Hex File editor, I john On Thu, Jun 26, 2014 at 10:03 AM, ackerman dudley rdacker@comcast.net
|
I thought I did. Sent from my iPad On Jun 27, 2014, at 1:17 AM, timknip notifications@github.com wrote:
|
Same issue here, basically I can't get passed of simply printing the SWF structure at "print SWF(File)". pyswf/swf/movie.py", line 100, in init Any ideas? |
This issue was started more then 3 years ago, I have since gone on to
work on other projects.
John
…On Fri, Dec 2, 2016 at 1:42 PM, ch3c05 ***@***.***> wrote:
Same issue here, basically I can't get passed of simply printing the SWF
structure at "print SWF(File)".
Issues start with:
pyswf/swf/movie.py", line 100, in *init*
self.parse(self._data)
Any ideas?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AC_DOVaXxWJVGl2VodeG_SB1v1TCghwGks5rEJDbgaJpZM4CHVSy>
.
|
from swf.movie import SWF <--- works fine
file = open('CT12KORJ001.swf', 'rb' ) <---- works fine
print SWF(file)
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.macosx-10.8-intel/egg/swf/movie.py", line 87, in init
File "build/bdist.macosx-10.8-intel/egg/swf/movie.py", line 143, in parse
File "build/bdist.macosx-10.8-intel/egg/swf/tag.py", line 112, in parse_tags
Why am I getting this? Where have I made my mistake, Did I leave anything out? Did the install go badly? It didn't indicate so.
Please also reply to my email - jdcrunchman@gmail.com
John
The text was updated successfully, but these errors were encountered: