Code Monkey home page Code Monkey logo

Comments (8)

fredj avatar fredj commented on July 17, 2024

How do you invoke the script?
Be sure that you are inside the build directory:

fredj@kirishima:~ $ cd public_html/openlayers/build/
fredj@kirishima:~/public_html/openlayers/build $ ./build.py
erging libraries.
Importing: OpenLayers/Map.js
Importing: OpenLayers/Layer/WMS.js

Resolution pass 1... 
Importing: OpenLayers/BaseTypes/Class.js
Importing: OpenLayers/Util.js
Importing: OpenLayers/Events.js
[...]

from ol2.

arnaudlefebvre avatar arnaudlefebvre commented on July 17, 2024

I try both , inside and outside the build directory, its end the same way...

resa@resa-desktop:$ /home/resa/openlayers/build/build.py
: No such file or directory
resa@resa-desktop:
$ cd /home/resa/openlayers/build/
resa@resa-desktop:/openlayers/build$ ./build.py
: No such file or directory
resa@resa-desktop:
/openlayers/build$

from ol2.

fredj avatar fredj commented on July 17, 2024

What's the output of python --version ?

from ol2.

arnaudlefebvre avatar arnaudlefebvre commented on July 17, 2024

resa@resa-desktop:/openlayers/build$ python --version
Python 2.6.5
resa@resa-desktop:
/openlayers/build$

from ol2.

fredj avatar fredj commented on July 17, 2024

I've the same python version.
Can you try to run: python build.py and python build.py lite (inside build)

from ol2.

arnaudlefebvre avatar arnaudlefebvre commented on July 17, 2024

Ok, here is the output for this two commands :

resa@resa-desktop:/openlayers/build$ python build.py
Traceback (most recent call last):
File "build.py", line 6, in
import mergejs
ImportError: No module named mergejs
resa@resa-desktop:
/openlayers/build$ python build.py lite
Traceback (most recent call last):
File "build.py", line 6, in
import mergejs
ImportError: No module named mergejs
resa@resa-desktop:~/openlayers/build$

maybe something is missing in my python install...

from ol2.

fredj avatar fredj commented on July 17, 2024

mergejs comes from the ../tools directory and is imported by build.py (line 5). Is this directory present on you environment ? (same level as build)

from ol2.

arnaudlefebvre avatar arnaudlefebvre commented on July 17, 2024

Yes this directory and mergejs.py file are present on my environment. Anyway, I completely remove my python install and reinstall it and no problems appears anymore ... I don't know what exactly the problem was but thanks you a lot for your help !

from ol2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.