Forums

Outdated web2py?

I just recently got the majority of my app up and running. However I am still having a problem. One of the games within my app doesn't work. However when I pack the app and then load it onto web2py local version it works fine. Im thinking it could be because the web2py version on this website isn't the same as the web2py I am running. The web2py I am running is

2.9.5-trunk+timestamp.2014.03.29.21.54.41 (Running on Rocket 1.2.6, Python 2.7.6)

where as the web2py here on python anywhere is

2.9.5-stable+timestamp.2014.03.16.02.35.39 (Running on Unknown, Python 2.7.5+)

Is there anyway I can update this?

thanks!! :)

You can, but it's a bit of a manual procedure -- you'll have to move your web2py directory (in your home directory) to one side (say to web2py.old), wget or curl the latest version from the web2py site (or wherever you got your local one from), unpack it, then copy your apps from the old web2py directory to the new one.

(If you're not familiar with Bash and need more detailed instructions for all of that, just let me know!)

I think I may need a little more instruction. Will that update my local web2py or will that update the web2py that I use through python anywhere?

That's how to update the web2py you use on PythonAnywhere.

Because of the way web2py works, when you create a web2py app from the "Web" tab we actually copy a complete web2py install from a central system repository into your private file space on PythonAnywhere. It goes in the directory /home/yourusername/web2py by default.

Does that help?

@CSUARGames: What's the error with your game?

it opens up the link and displays nothing, on local machine it runs fine.

And thanks giles, I think I can figure it out from here!

which version of web2py is actually used on the website currently is it the for Linux or src code or windows for testers or for normal users etc?

the one that mine is working on was simply web2py for windows I downloaded the source code and unpacked it moved my app in but it immediately just gives an error so I had to move it back

What was the error?

so I moved regular web2py to web2py.golden so I know it works and I have it for whenever I need to get back to good copy. I downloaded the _src.zip and _win.zip unzipped both separately and so src web2py got unpacked and then I tried to open up web2py and I got an internal error saying ticket issued admin disabled because unable to access password file and then when I mv the src web2py called just web2py to web2py.src and unpacked _win.zip I got a new web2py I ran the application from the web2py tab again and got the same error so I moved it to web2py.win and when I switch it back to web2py.golden as my main web2py everything works fine when I run however I believe the version of web2py that I have isn't compatible with the version I currently have on python anywhere

"admin disabled because unable to access password file" suggests that you either didn't move the password file or that web2py can't read it or that you need to reset your web2py admin password (here's how to do that)

I copied the password file from web2py.golden to web2py and that did nothing.. I copied the items in web2py.golden that weren't in web2py and then I diff the two and the only difference between web2py and web2py.golden was that web2py had a newinstall folder

I think the windows web2py may use a different filename. The file with your password in should be called parameters_443.py, if it isn't already.

I am using the web2py src code?

i copied the parameters_443.py into the web2py dir and that after reloading still produced same error when i try to enter admin interface so i ran the change password command and reloaded everything and it still produced the same problem?

Is this the problem where you need to just change the http: in the link to https: ?

I think it moans about the password file otherwise...

I didnt end up getting it to update properly but i found that after i updated it and checked the link to the specific game that the specific game doesnt work. 4 or the 5 games work and with the exact same build that python anywhere standardly starts up with when i install my app to this local version of web2py all 5 games work fine im not sure what could be wrong?

That's very odd. Are there any errors in your error log? (There's a link to it on the "Web" tab.)