{"action":"created","issue":{"url":"https://api.github.com/repos/viur-framework/base/issues/4","repository_url":"https://api.github.com/repos/viur-framework/base","labels_url":"https://api.github.com/repos/viur-framework/base/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/viur-framework/base/issues/4/comments","events_url":"https://api.github.com/repos/viur-framework/base/issues/4/events","html_url":"https://github.com/viur-framework/base/issues/4","id":308963392,"number":4,"title":"mksetup: resulting setup.py not working","user":{"login":"xnopasaranx","id":16277515,"avatar_url":"https://avatars3.githubusercontent.com/u/16277515?v=4","gravatar_id":"","url":"https://api.github.com/users/xnopasaranx","html_url":"https://github.com/xnopasaranx","followers_url":"https://api.github.com/users/xnopasaranx/followers","following_url":"https://api.github.com/users/xnopasaranx/following{/other_user}","gists_url":"https://api.github.com/users/xnopasaranx/gists{/gist_id}","starred_url":"https://api.github.com/users/xnopasaranx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xnopasaranx/subscriptions","organizations_url":"https://api.github.com/users/xnopasaranx/orgs","repos_url":"https://api.github.com/users/xnopasaranx/repos","events_url":"https://api.github.com/users/xnopasaranx/events{/privacy}","received_events_url":"https://api.github.com/users/xnopasaranx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-27T13:13:54Z","updated_at":"2018-03-28T12:27:25Z","closed_at":null,"author_association":"MEMBER","body":"tried to clone and setup a fresh base project, but following the steps described in the readme leaves me with a broken project. It seems like the clean-base script is using different assumptions about the project structure which ultimately messes everything up.\r\n\r\nAfter cloning the repo, I ran \"python2 mksetup.py > setup.py\", then executed the resulting setup.py, the readme then suggests running clean-base.py to clean up. After running clean-base.py the setup is incomplete and the application cannot be run with local_run.sh, as the directory structure is not as expected. Trying again and not running clean-base.py also results in a broken project.\r\n\r\nCloning the repo and only running clean-base.py results in a working project which can be started through local_run.sh"},"comment":{"url":"https://api.github.com/repos/viur-framework/base/issues/comments/376868460","html_url":"https://github.com/viur-framework/base/issues/4#issuecomment-376868460","issue_url":"https://api.github.com/repos/viur-framework/base/issues/4","id":376868460,"user":{"login":"phorward","id":16870072,"avatar_url":"https://avatars1.githubusercontent.com/u/16870072?v=4","gravatar_id":"","url":"https://api.github.com/users/phorward","html_url":"https://github.com/phorward","followers_url":"https://api.github.com/users/phorward/followers","following_url":"https://api.github.com/users/phorward/following{/other_user}","gists_url":"https://api.github.com/users/phorward/gists{/gist_id}","starred_url":"https://api.github.com/users/phorward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phorward/subscriptions","organizations_url":"https://api.github.com/users/phorward/orgs","repos_url":"https://api.github.com/users/phorward/repos","events_url":"https://api.github.com/users/phorward/events{/privacy}","received_events_url":"https://api.github.com/users/phorward/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T12:27:25Z","updated_at":"2018-03-28T12:27:25Z","author_association":"OWNER","body":"Hello @xnopasaranx,\r\n\r\n\r\n- The **setup.py** script is generated from the base project's _deploy_ directory's contents to provide a way to quickly setup a ViUR project with the latest server and vi, without any compromise. It is the simplest and easiest way to start with a fresh ViUR project. There is no other dependency than just gcloud SDK to run it.\r\n- The **clean-base.py** script uses the base project's git repository itself as a development base for a new project, which is intended to be managed by git and uses all required ViUR modules as submodules to be easier updated. This way is the \"professional\" way in how to set up a clean base project for a new application that will be developed on top of it, including customized Vi extensions and third-party libraries.\r\n\r\nI tested both way, running the generated setup.py that fell our from the same call as you generated it, and running clean-base.py after cloning base into a fresh directory, both ways work well and as expected, so there might be a problem with your Python versions or another issue that causes your tests to fail.\r\n\r\nHere is my protocol of the setup.py-based way:\r\n```bash\r\nneo@falcon ~/Mausbrand/base $ mkdir /tmp/v\r\nneo@falcon ~/Mausbrand/base $ python2 mksetup.py >/tmp/v/setup.py\r\nneo@falcon ~/Mausbrand/base $ cd /tmp/v\r\nneo@falcon /tmp/v $ python2 setup.py\r\n\r\n                iii\r\n               iii\r\n              iii\r\n\r\n          vvv iii uu      uu rrrrrrrr\r\n         vvvv iii uu      uu rr     rr\r\n  v     vvvv  iii uu      uu rr     rr\r\n vvv   vvvv   iii uu      uu rr rrrrr\r\nvvvvv vvvv    iii uu      uu rr rrr\r\n vvvvvvvv     iii uu      uu rr  rrr\r\n  vvvvvv      iii  uu    uu  rr   rrr\r\n   vvvv       iii   uuuuuu   rr    rrr\r\n\r\n  I N F O R M A T I O N    S Y S T E M\r\n\r\nWelcome to the raw setup utility!\r\n\r\nPlease enter your desired application name [default=v]\r\nThis will setup a clean ViUR project 'v' now - continue [Y/n]?\r\nCreating /tmp/v/emails...\r\nCreating /tmp/v/html...\r\nCreating /tmp/v/lib...\r\nCreating /tmp/v/modules...\r\nCreating /tmp/v/skeletons...\r\nCreating /tmp/v/static...\r\nCreating /tmp/v/translations...\r\nCreating /tmp/v/html/icons...\r\nCreating /tmp/v/html/macros...\r\nCreating /tmp/v/html/sites...\r\nCreating /tmp/v/static/css...\r\nCreating /tmp/v/static/images...\r\nCreating /tmp/v/static/js...\r\nCreating /tmp/v/static/less...\r\nCreating /tmp/v/static/meta...\r\nCreating /tmp/v/static/webfonts...\r\nWriting html/person_view.html...Done\r\nWriting static/meta/viur-apple-touch-icon-72x72-precomposed.png...Done\r\nWriting html/icons/not-allowed.svg...Done\r\nWriting html/macros/skelview.html...Done\r\nWriting html/icons/arrowhead-left.svg...Done\r\nWriting skeletons/person.py...Done\r\nWriting html/icons/check.svg...Done\r\nWriting static/js/jquery-3.2.1.min.js...Done\r\nWriting static/meta/viur-apple-touch-icon-57x57-precomposed.png...Done\r\nWriting html/viur_default_view.html...Done\r\nWriting index.yaml...Done\r\nWriting static/meta/favicon.ico...Done\r\nWriting html/user_login_secondfactor.html...Done\r\nWriting emails/user_password_recovery.email...Done\r\nWriting html/viur_default_list.html...Done\r\nWriting modules/index.py...Done\r\nWriting app.yaml...Done\r\nWriting emails/viur_mail_dummy.email...Done\r\nWriting html/user_passwordrecover.html...Done\r\nWriting static/meta/.keep...Done\r\nWriting appengine_config.py...Done\r\nWriting html/macros/functions.html...Done\r\nWriting static/meta/favicon.png...Done\r\nWriting html/user_login_success.html...Done\r\nWriting static/images/.keep...Done\r\nWriting lib/.keep...Done\r\nWriting static/less/style.less...Done\r\nWriting html/user_logout_success.html...Done\r\nWriting html/user_passwordrecover_already_sent.html...Done\r\nWriting queue.yaml...Done\r\nWriting translations/en.py...Done\r\nWriting static/meta/viur-apple-touch-startup-image-320x460.png...Done\r\nWriting html/icons/heart.svg...Done\r\nWriting html/viur_base.html...Done\r\nWriting html/icons/cross.svg...Done\r\nWriting modules/file.py...Done\r\nWriting static/js/pagination.js...Done\r\nWriting static/images/start-vi.png...Done\r\nWriting html/index.html...Done\r\nWriting html/sites/.keep...Done\r\nWriting static/meta/viur-apple-touch-startup-image-1536x2008.png...Done\r\nWriting static/meta/viur_micro.gif...Done\r\nWriting static/webfonts/.keep...Done\r\nWriting modules/user.py...Done\r\nWriting static/css/style.css...Done\r\nWriting static/js/app.js...Done\r\nWriting static/meta/viur-apple-touch-startup-image-768x1004.png...Done\r\nWriting cron.yaml...Done\r\nWriting translations/__init__.py...Done\r\nWriting html/sites/gettingstarted.html...Done\r\nWriting static/css/style.min.css...Done\r\nWriting modules/person.py...Done\r\nWriting html/user_passwordrecover_invalid_token.html...Done\r\nWriting static/meta/viur-opengraph-image.png...Done\r\nWriting modules/__init__.py...Done\r\nWriting static/meta/viur-logo-error.png...Done\r\nWriting html/viur_mail_default.html...Done\r\nWriting html/person_list.html...Done\r\nWriting skeletons/__init__.py...Done\r\nWriting html/icons/flash.svg...Done\r\nWriting v.py...Done\r\nWriting html/user_passwordrecover_mail_sent.html...Done\r\nWriting static/meta/viur-apple-touch-icon-precomposed.png...Done\r\nWriting static/meta/viur-apple-touch-startup-image-748x1024.png...Done\r\nWriting html/user_passwordrecover_success.html...Done\r\nWriting translations/de.py...Done\r\nWriting html/icons/pen.svg...Done\r\nWriting static/meta/humans.txt...Done\r\nWriting static/meta/viur-apple-touch-icon-144x144-precomposed.png...Done\r\nWriting static/meta/viur-apple-touch-icon-114x114-precomposed.png...Done\r\nWriting static/meta/robots.txt...Done\r\nWriting html/user_login.html...Done\r\nWriting static/meta/mausbrand_micro.gif...Done\r\nWriting static/meta/viur-apple-touch-startup-image-1496x2048.png...Done\r\nWriting html/icons/token.svg...Done\r\nWriting static/meta/viur-apple-touch-startup-image-640x920.png...Done\r\nDownloading server...Done\r\nExtracting server...Done\r\nDownloading vi...Done\r\nExtracting vi...Done\r\n--- ViUR setup completed. ---\r\n\r\nFor local development server startup, run\r\n\r\n        dev_appserver.py -A v .\r\n\r\nTo deploy your app to Google App Engine, create your project first, then type\r\n\r\n        gcloud app deploy -q --project v\r\n\r\nVisit https://docs.viur.is for more information.\r\nPlease do not forget to remove setup.py now!\r\nneo@falcon /tmp/v $ dev_appserver.py -A v . \r\nINFO     2018-03-28 12:25:56,604 devappserver2.py:105] Skipping SDK update check.\r\nWARNING  2018-03-28 12:25:56,684 simple_search_stub.py:1196] Could not read search indexes from /tmp/appengine.v.neo/search_indexes\r\nINFO     2018-03-28 12:25:56,685 api_server.py:265] Starting API server at: http://localhost:39539\r\nINFO     2018-03-28 12:25:56,699 dispatcher.py:255] Starting module \"default\" running at: http://localhost:8080\r\nINFO     2018-03-28 12:25:56,699 admin_server.py:152] Starting admin server at: http://localhost:8000\r\nINFO     2018-03-28 12:25:59,797 module.py:835] default: \"GET /_ah/warmup HTTP/1.1\" 200 2\r\nWARNING  2018-03-28 12:25:59,998 user.py:694] ViUR created a new admin-user for you! Username: admin@v.appspot.com, Password: FDepGkxk02MfJ\r\nINFO     2018-03-28 12:26:00,000 mail_stub.py:141] MailService.SendToAdmins\r\n  From: viur@v.appspotmail.com\r\n  Subject: =?utf-8?B?WW91ciBuZXcgVmlVUiBwYXNzd29yZA==?=\r\n  Body:\r\n    Content-type: text/plain\r\n    Data length: 93\r\nINFO     2018-03-28 12:26:00,008 module.py:835] default: \"POST /_tasks/deferred HTTP/1.1\" 200 4\r\nINFO     2018-03-28 12:26:02,801 module.py:835] default: \"GET /_ah/warmup HTTP/1.1\" 200 2\r\nINFO     2018-03-28 12:26:02,876 module.py:835] default: \"POST /_tasks/deferred HTTP/1.1\" 200 4\r\nINFO     2018-03-28 12:26:05,203 module.py:835] default: \"GET / HTTP/1.1\" 200 7938\r\nINFO     2018-03-28 12:26:05,290 module.py:835] default: \"GET /static/js/jquery-3.2.1.min.js HTTP/1.1\" 304 -\r\nINFO     2018-03-28 12:26:05,298 module.py:835] default: \"GET /static/css/ignite.min.css HTTP/1.1\" 404 -\r\nINFO     2018-03-28 12:26:05,299 module.py:835] default: \"GET /static/js/app.js HTTP/1.1\" 304 -\r\nINFO     2018-03-28 12:26:05,300 module.py:835] default: \"GET /static/css/style.min.css HTTP/1.1\" 304 -\r\n^CINFO     2018-03-28 12:26:12,375 shutdown.py:45] Shutting down.\r\nINFO     2018-03-28 12:26:12,375 stub_util.py:360] Applying all pending transactions and saving the datastore\r\nINFO     2018-03-28 12:26:12,379 stub_util.py:363] Saving search indexes\r\nneo@falcon /tmp/v $\r\n```\r\nand here is my protocol of the clean-base.py-based way:\r\n```bash\r\nneo@falcon ~ $ git clone Mausbrand/base/ /tmp/v2\r\nneo@falcon ~ $ cd /tmp/v2/\r\nneo@falcon /tmp/v2 $ ./clean-base.py \r\nEnter Author Name (leave empty to default to neo): \r\nEnter application-id (leave empty to default to v2-viur): \r\nDownloading submodules\r\nSubmodule 'deploy/server' (https://github.com/viur-framework/server.git) registered for path 'deploy/server'\r\nSubmodule 'ignite' (https://github.com/viur-framework/ignite.git) registered for path 'ignite'\r\nSubmodule 'vi' (https://github.com/viur-framework/vi.git) registered for path 'vi'\r\nCloning into '/tmp/v2/deploy/server'...\r\nCloning into '/tmp/v2/ignite'...\r\nCloning into '/tmp/v2/vi'...\r\nSubmodule 'html5' (https://github.com/viur-framework/html5.git) registered for path 'html5'\r\nSubmodule 'logics' (https://github.com/viur-framework/logics.git) registered for path 'logics'\r\nSubmodule 'public/icons' (https://github.com/viur-framework/icons.git) registered for path 'public/icons'\r\nCloning into '/tmp/v2/vi/html5'...\r\nCloning into '/tmp/v2/vi/logics'...\r\nCloning into '/tmp/v2/vi/public/icons'...\r\nRemoving .git tether\r\n.git remote tether removed\r\nDownloading latest build of vi...Done downloading latest build of vi\r\nExtracting latest build of vi...Done extracting vi\r\nneo@falcon /tmp/v2 $ dev_appserver.py -A viur-v2 deploy/\r\nINFO     2018-03-28 12:22:52,224 devappserver2.py:105] Skipping SDK update check.\r\nINFO     2018-03-28 12:22:52,301 api_server.py:265] Starting API server at: http://localhost:34783\r\nINFO     2018-03-28 12:22:52,315 dispatcher.py:255] Starting module \"default\" running at: http://localhost:8080\r\nINFO     2018-03-28 12:22:52,316 admin_server.py:152] Starting admin server at: http://localhost:8000\r\nINFO     2018-03-28 12:22:55,391 module.py:835] default: \"GET /_ah/warmup HTTP/1.1\" 200 2\r\nWARNING  2018-03-28 12:22:55,607 user.py:694] ViUR created a new admin-user for you! Username: admin@viur-v2.appspot.com, Password: UxQK8z7ZuD2zc\r\nINFO     2018-03-28 12:22:55,609 mail_stub.py:141] MailService.SendToAdmins\r\n  From: viur@viur-v2.appspotmail.com\r\n  Subject: =?utf-8?B?WW91ciBuZXcgVmlVUiBwYXNzd29yZA==?=\r\n  Body:\r\n    Content-type: text/plain\r\n    Data length: 99\r\nINFO     2018-03-28 12:22:55,615 module.py:835] default: \"POST /_tasks/deferred HTTP/1.1\" 200 4\r\nINFO     2018-03-28 12:22:58,404 module.py:835] default: \"GET /_ah/warmup HTTP/1.1\" 200 2\r\nINFO     2018-03-28 12:22:58,480 module.py:835] default: \"POST /_tasks/deferred HTTP/1.1\" 200 4\r\nINFO     2018-03-28 12:23:00,671 module.py:835] default: \"GET / HTTP/1.1\" 200 7962\r\nINFO     2018-03-28 12:23:00,732 module.py:835] default: \"GET /static/css/ignite.min.css HTTP/1.1\" 404 -\r\nINFO     2018-03-28 12:23:00,732 module.py:835] default: \"GET /static/js/jquery-3.2.1.min.js HTTP/1.1\" 304 -\r\nINFO     2018-03-28 12:23:00,732 module.py:835] default: \"GET /static/js/app.js HTTP/1.1\" 200 88\r\nINFO     2018-03-28 12:23:00,733 module.py:835] default: \"GET /static/css/style.min.css HTTP/1.1\" 304 -\r\n^CINFO     2018-03-28 12:23:17,713 shutdown.py:45] Shutting down.\r\nINFO     2018-03-28 12:23:17,714 stub_util.py:360] Applying all pending transactions and saving the datastore\r\nINFO     2018-03-28 12:23:17,719 stub_util.py:363] Saving search indexes\r\nneo@falcon /tmp/v2 $ \r\n```\r\n\r\nI tested to call http://localhost:8080 on both installations, and it worked as expected.\r\n\r\n> We should throw out at least one of these scripts! There needs to be a consistent way to initialize a fresh project.\r\n\r\nNo, this is exactly the thing we don't want. We provide any way to easily use ViUR, both in the git-based repository setup and in an entirely independent, one-script setup. Surely, with some future developments like ViUR control, this script might be abandoned, but currently, it is not and shall be kept, althought the entire documentation depends on it.\r\n\r\nSo long,\r\nJan"}}
{"actor":{"display_login":"phorward"}}