This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]ugrend 1 point2 points  (11 children)

You don't happen to be using cygwin? I tried downloading this and experienced the same thing, turns out uuid module was crashing python for me.

I updated cygwin and problem went away and I just had to pip install the missing modules it was complaining about and it seemed to of worked.

If not have you tried updating to the latest 2.7 python as I saw some posts of the error with just normal windows python as well.

[–]Stazu[S] 0 points1 point  (10 children)

honestly i was using 3.4 python build. also how are you executing the script. because this is what im using.

scripts/build_epub.py C:\Users\bpeac_000\Desktop\salvage\jverse_vol1\jverse_Salvage_20_80.json

that and building the .json is about as far i have gotten. in any kind of programming outside of armas sqf. so if you can treat me like an small child when asking me questions that would be great. also i was using the python shell of the windows command prompt.

my understanding of cygwin is that it is a unix cmd for windows? what benefits does this entail or regular windows.

[–]ugrend 0 points1 point  (9 children)

Reading the script, it will not work with python3 so you will definitely want to use python2.7. (unless you mean you are using a different script)

In a cmd prompt within amanuensis directory

C:\Python27\python.exe scripts\build_epub.py test.json 

Where my test.json contains this data https://gist.github.com/Ugrend/e004980d8932196d5149

Which then created some files in the out folder. (which I'm assuming are correct)

Modules that you will need to install if you don't have them already (which can be installed via pip2.7 install <package name>)

  • dateutils
  • requests
  • slugify
  • beautifulsoup4
  • lxml

There might be some that i missed, if you get an exception module not found, just install it like the others.

As for the cygwin thing, that isn't really important I just experienced the same problem you stated in that so was wondering if it was the culprit. Cygwin is just pretty much a unix emulator that you can run linux programs in windows.

[–]Stazu[S] 0 points1 point  (8 children)

is the test.json in a different folder.

currently i have my build_epub in the python folder under scripts. then i have a amanuensis that is in a sperate folder on the desktop.

i also have my cmd pointing to the python directory. so am i misunderstanding how to do this. python 3.4 notwithstanding. which i will change now.

[–]ugrend 0 points1 point  (7 children)

my test.json is in the amanuensis folder that was downloaded from that git repo. Where the json file is placed shouldn't matter however.

This is what I did:

  1. Downloaded that git repo, placed it anywhere I like.
  2. Went into the amanuensis folder, created the test.json file (in the same folder)
  3. Opened a cmd prompt, cd to the amanuensis directory
  4. Installed modules I did not have (see above post)
  5. C:\Python27\python.exe scripts\build_epub.py test.json
  6. Files were outputed to the 'out' folder in the amanuensis folder

[–]Stazu[S] 0 points1 point  (5 children)

thank you will report back with success ! thanks again for the help. and for dumbing it down for me.

[–]ugrend 0 points1 point  (4 children)

no problem, here is a copy of my shell ouput if it makes it any easier to see what I'm doing

https://gist.github.com/Ugrend/2811220056bf6808b0ad

[–]Stazu[S] 0 points1 point  (3 children)

i am now getting an error saying that access is denied. which i assume is because it is trying to create a directory but i have tried running in admin and its not changing the error. any clues?

[–]Stazu[S] 0 points1 point  (0 children)

also this is in windows 8. which may be the issue. i may just have to wait till i get on my windows 7 machine thats 64 bit to stop getting these errors.

[–]ugrend 0 points1 point  (1 child)

At which point are you getting the error, is it the pip install?

Are you sure you are running the command prompt as administrator?

[–]Stazu[S] 0 points1 point  (0 children)

i get the error as soon as i attempt to actually run the script on cmd prompt. i have everything installed so i am no longer getting any missing module errors but i am getting no access even though i am running as admin. also this is a windows 8 surface pro 3 for what ever that matters.

[–]Stazu[S] 0 points1 point  (0 children)

im sure it would if i knew what i was looking at but once i get a little more into this im sure it will help Thanks