Unable to install Marzipano locally

213 views
Skip to first unread message

Łukasz Kraus

unread,
Nov 22, 2023, 10:25:59 AM11/22/23
to marzipano
Dears,

I'd like to ask for help since I'm new in Node.js - my intention is to install Marzipano tool (standalone installation) locally as per the documentation:


However after completing step 1:

npm install marzipano

I attempt to step 2:

var Marzipano = require('./marzipano');

And get the error:

Uncaught Error: Cannot find module './marzipano'
Require stack:
- <repl>
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '<repl>' ]
}

I'd love to learn how these things are working. Is there anybody kind enough to help me to understand how I can setup the tool?

Thank you!

Stephen Sandison

unread,
Nov 22, 2023, 12:29:40 PM11/22/23
to marz...@googlegroups.com
Hi Lukasz,

I don't think that page is about installing the tool. It's about installing the marzipano library. It just says that the easiest way to use marzipano is to generate a pano with all the code included using the marzipano tool. If you want an offline version of marzipano tool you can use the version I made myself here:

https://drive.google.com/file/d/1UAPp5k6fahRHWaF1v6RuBrO7OIPqE2T-/view?usp=drive_link

This also has a new option to change the quality of the image produced. I guess you are worried as I was that the tool would disappear at some point. This will need to be run from a local server.

Cheers,

Steve

--
You received this message because you are subscribed to the Google Groups "marzipano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/marzipano/d63d1ef1-7075-4e3c-be03-d5d8e9a042den%40googlegroups.com.

Łukasz Kraus

unread,
Nov 22, 2023, 2:44:02 PM11/22/23
to marzipano
Exactly - that's what worries me the most :(

Let me give a try with your version, I'll reply here Tomorrow latest! Thank you! :)

Joost

unread,
Nov 23, 2023, 2:36:20 AM11/23/23
to marz...@googlegroups.com
I have temporarily uploaded it to my website and it works "out of the box". http://www.districteastgames.com/marzipano

thanks,
Joost

Op wo 22 nov 2023 om 20:44 schreef Łukasz Kraus <luk....@gmail.com>:

Reuben Pillay

unread,
Nov 23, 2023, 3:42:12 AM11/23/23
to marz...@googlegroups.com

Hello Stephen,

Tell me, by “option to change the quality of the image produced”, do you mean that you can select better quality than what’s available in the normal tool? Like to make gigapixel images for example?

That would be quite interesting…

Thanks in advance,

Reuben

Stephen Sandison

unread,
Nov 23, 2023, 4:09:01 AM11/23/23
to marz...@googlegroups.com
Hi Reuben,

It’s the quality level of the image tiles produced. I just made it variable rather than the fixed value that was set in the original code. It doesn’t increase the tile size or levels produced.

Cheers,

Steve

On 23 Nov 2023, at 08:42, Reuben Pillay <reube...@gmail.com> wrote:



Reuben Pillay

unread,
Nov 23, 2023, 4:12:31 AM11/23/23
to marz...@googlegroups.com

Thanks for replying quickly Steve!

I see, so it’s the jpeg percentage, right? Okay – so is the fixed marzipano code somewhere in the middle and your code can increase or decrease it? Or does your code only lower the quality? 

Cheers,

Reuben

Stephen Sandison

unread,
Nov 23, 2023, 4:19:56 AM11/23/23
to marz...@googlegroups.com
Yes it’s the quality level. I can’t remember what the original code was fixed at now but you can certainly set it to 100% for full quality or drop it to save on file size which is what I needed at the time.

Cheers,

Steve

On 23 Nov 2023, at 09:12, Reuben Pillay <reube...@gmail.com> wrote:



Reuben Pillay

unread,
Nov 23, 2023, 4:23:35 AM11/23/23
to marz...@googlegroups.com

Alright, thanks loads, I’ll try a file on both and see the filesizes that are generated J

Cheers,

Reuben

Łukasz Kraus

unread,
Nov 25, 2023, 8:23:38 AM11/25/23
to marzipano
Dear Stephan,

Thank you! You made my day! I uploaded it to my server and it's working great. However just one question - zoom-in (+) and zoom-out (-) are not working in my exported designs. Do you have the same or I did somethign wrong?

And sorry for not being able to respond yesterday like I said, some unplanned works pop-up. Anyway thank you one more time for support!

środa, 22 listopada 2023 o 18:29:40 UTC+1 stephen....@gmail.com napisał(a):

Stephen Sandison

unread,
Nov 26, 2023, 2:45:05 AM11/26/23
to marz...@googlegroups.com
Hi Lukasz,

I’m not really sure actually because I only really use the tiles that are generated with a separate install of the marzipano library. I have only altered small parts of the code as it’s minified and difficult to work with. You could try using the normal marzipano tool to generate a set of files and compare the differences and see if the same occurs with that.

Cheers,

Steve

On 25 Nov 2023, at 13:23, Łukasz Kraus <luk....@gmail.com> wrote:



Yashwant R Kamath

unread,
Feb 6, 2025, 4:05:45 AMFeb 6
to marzipano
Hi Stephen,

I have been using your offline version by uploading it to my server. But now it doesn't export. 

The followeing error is there in the console
14app5de6.js?b804ad7:22445 Uncaught Error: Template files not loaded
    at app5de6.js?b804ad7:22445:29
    at e.exports (app5de6.js?b804ad7:22461:16)
    at Object.G (app5de6.js?b804ad7:22338:27)
    at HTMLAnchorElement.<anonymous> (app5de6.js?b804ad7:9255:49)


Also when I press the export button, a "zip.worker5de6.js" is added to the source each time I click.

Any idea why this might be?
Also I have done a pretty extensive tour but since I cant export this I mght have to redo it again, anyone has any idea how to "export" this editing stage?
(I know editing the project isn't supported, and I edit the data.js for that, but how do I get that data of a project that is not yet exported)

Thank you.

Stephen Sandison

unread,
Feb 6, 2025, 4:50:35 AMFeb 6
to marz...@googlegroups.com
Hi,

Interesting. What browser are you using? It's a modified version of the original marzipano tool that all runs within the browser. I'll take a look at my version and see if it's still working too. I've not used the tool for a while so haven't been tracking any browser issues.

Cheers,

Steve

Stephen Sandison

unread,
Feb 6, 2025, 5:02:02 AMFeb 6
to marz...@googlegroups.com
Hi,

I've just checked the tool and it's all working fine for me in Chrome 132. The error you posted mentions that your install of the tool could not load the template files. Possibly a permissions issue on your web server I wonder. First thing would be to check the template files are in the correct place as per this screenshot:

image.png

I would also check to see if you can load any of these files via https request in the browser. Also have a look in the network tab in the chrome development tools to see if there is any indication in there of files failing to load from the web server.

Cheers,

Steve

Yashwant R Kamath

unread,
Feb 6, 2025, 8:25:13 PMFeb 6
to marzipano
Hi,

Thank you for your reply!

Indeed, it is not loading the templates folder.
 I am running it on IIS, and I am checking the permissions.
I can't get it to run on https, but anyway I will try something. 

i get a 404 got index.html.tpl file
and the following error

Uncaught Error: Error loading template/app-files/index.html.tpl?b804ad7 via XHR at XMLHttpRequest.<anonymous>


I have all the files in my server, and it can access too. 

Any help or debugging ideas is highly appreciated.

Regards,
Yash

Stephen Sandison

unread,
Feb 7, 2025, 6:31:46 PMFeb 7
to marz...@googlegroups.com
Hi Yash,

I would try installing a local server such as xampp to get the tool working. The generated files do not need to be hosted on the same server that generated them so you could just use a local server to generate the marzipano files and then upload them to whatever remote server you like.

Cheers,

Steve

On 6 Feb 2025, at 10:01, Stephen Sandison <stephen....@gmail.com> wrote:


Hi,

I've just checked the tool and it's all working fine for me in Chrome 132. The error you posted mentions that your install of the tool could not load the template files. Possibly a permissions issue on your web server I wonder. First thing would be to check the template files are in the correct place as per this screenshot:

<image.png>

Reply all
Reply to author
Forward
0 new messages