I removed the previous 2019.05 version, reloaded version 2019.05 and placed
the .scad files in the libraries/BOSL2 folder. I still have the old version
of OpenSCAD 2015.03-2 loaded on the computer.
Still getting the errors. Here is the complete error message:
Loaded design
'C:/Users/Graphics/Documents/OpenSCAD/libraries/BOSL2/bosl2.scad
Parsing design (AST generation)...
WARNING: Can't open include file 'BOSL2/std.scad'.
WARNING: Can't open include file '../std.scad'.
WARNING: Can't open include file '../hull.scad'.
Compiling design (CSG Tree generation)...
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 7.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 7.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 7.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 7.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 8.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 8.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 8.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 8.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 9.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 9.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 9.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 9.
WARNING: Ignoring unknown variable 'EPSILON', in file vectors.scad, line
133.
WARNING: Ignoring unknown variable 'EPSILON', in file vectors.scad, line 40.
ERROR: Assertion 'is_vector(v)' failed: "Expected a vector. Got: [1, undef,
0]" in file vectors.scad, line 132
TRACE: called by 'unit', in file hull.scad, line 11.
Compiling design (CSG Products generation)...
Geometries in cache: 0
Geometry cache size in bytes: 0
CGAL Polyhedrons in cache: 0
CGAL cache size in bytes: 0
Compiling design (CSG Products normalization)...
Normalized CSG tree has 0 elements
Compile and preview finished.
Total rendering time: 0 hours, 0 minutes, 0 seconds
Any other suggestions?
--
Sent from: http://forum.openscad.org/
As I said, I don't think the OpenSCAD versions have anything to do with the
problem.
Your BOSL2 directory contains at least one wrong file, namely a file that
should be in BOSL2/test. If one file is wrong, probably many other things
are wrong too. Messing with OpenSCAD won't fix this.
You need to wipe out all your BOSL2 files, and unzip BOSL2 again and make
sure it creates the full directory structure and that you have exactly the
files I listed above (no other ones) in your BOSL2 directory. Note that
you don't want all the .scad files from BOSL2 in the BOSL2 folder. The
tests need to stay in the tests folder. (Or you actually don't need them at
all.) The output below shows that the correct hull.scad in BOSL2 has been
overwritten by tests/hull.scad.
cbernhardt wrote
I removed the previous 2019.05 version, reloaded version 2019.05 and
placed
the .scad files in the libraries/BOSL2 folder. I still have the old
version
of OpenSCAD 2015.03-2 loaded on the computer.
Still getting the errors. Here is the complete error message:
Loaded design
'C:/Users/Graphics/Documents/OpenSCAD/libraries/BOSL2/bosl2.scad
Parsing design (AST generation)...
WARNING: Can't open include file 'BOSL2/std.scad'.
WARNING: Can't open include file '../std.scad'.
WARNING: Can't open include file '../hull.scad'.
Compiling design (CSG Tree generation)...
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 7.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 7.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 7.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 7.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 8.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 8.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 8.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 8.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 9.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 9.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 9.
WARNING: Ignoring unknown variable 'PHI', in file hull.scad, line 9.
WARNING: Ignoring unknown variable 'EPSILON', in file vectors.scad, line
133.
WARNING: Ignoring unknown variable 'EPSILON', in file vectors.scad, line
40.
ERROR: Assertion 'is_vector(v)' failed: "Expected a vector. Got: [1,
undef,
0]" in file vectors.scad, line 132
TRACE: called by 'unit', in file hull.scad, line 11.
Compiling design (CSG Products generation)...
Geometries in cache: 0
Geometry cache size in bytes: 0
CGAL Polyhedrons in cache: 0
CGAL cache size in bytes: 0
Compiling design (CSG Products normalization)...
Normalized CSG tree has 0 elements
Compile and preview finished.
Total rendering time: 0 hours, 0 minutes, 0 seconds
Any other suggestions?
--
Sent from: http://forum.openscad.org/
OpenSCAD mailing list
Discuss@.openscad
--
Sent from: http://forum.openscad.org/
I downloaded the BOSL files here:
https://github.com/revarbat/BOSL2/archive/master.zip
There is no directory structure in the ZIP file.
Where should I get the proper file?
--
Sent from: http://forum.openscad.org/
I think that's the right file. I downloaded and examined its contents and I
see this:
Length Date Time Name
0 2020-12-11 19:24 BOSL2-master/
0 2020-12-11 19:24 BOSL2-master/.github/
0 2020-12-11 19:24 BOSL2-master/.github/ISSUE_TEMPLATE/
522 2020-12-11 19:24
BOSL2-master/.github/ISSUE_TEMPLATE/bug_report.md
655 2020-12-11 19:24
BOSL2-master/.github/ISSUE_TEMPLATE/feature_reques
t.md
0 2020-12-11 19:24 BOSL2-master/.github/workflows/
1669 2020-12-11 19:24 BOSL2-master/.github/workflows/docsgen.yml
2427 2020-12-11 19:24 BOSL2-master/.github/workflows/main.yml
1233 2020-12-11 19:24 BOSL2-master/.gitignore
2142 2020-12-11 19:24 BOSL2-master/CONTRIBUTING.md
1323 2020-12-11 19:24 BOSL2-master/LICENSE
9095 2020-12-11 19:24 BOSL2-master/README.md
7365 2020-12-11 19:24 BOSL2-master/WRITING_DOCS.md
19395 2020-12-11 19:24 BOSL2-master/affine.scad
58617 2020-12-11 19:24 BOSL2-master/arrays.scad
59833 2020-12-11 19:24 BOSL2-master/attachments.scad
60436 2020-12-11 19:24 BOSL2-master/beziers.scad
3623 2020-12-11 19:24 BOSL2-master/bosl1compat.scad
13340 2020-12-11 19:24 BOSL2-master/bottlecaps.scad
0 2020-12-11 19:24 BOSL2-master/changes/
1464 2020-12-11 19:24 BOSL2-master/changes/REMOVED.txt
24779 2020-12-11 19:24 BOSL2-master/common.scad
3918 2020-12-11 19:24 BOSL2-master/constants.scad
13907 2020-12-11 19:24 BOSL2-master/coords.scad
22465 2020-12-11 19:24 BOSL2-master/cubetruss.scad
18696 2020-12-11 19:24 BOSL2-master/debug.scad
43965 2020-12-11 19:24 BOSL2-master/distributors.scad
14743 2020-12-11 19:24 BOSL2-master/edges.scad
0 2020-12-11 19:24 BOSL2-master/examples/
1429 2020-12-11 19:24 BOSL2-master/examples/BOSL2logo.scad
591 2020-12-11 19:24 BOSL2-master/examples/attachments.scad
2506 2020-12-11 19:24 BOSL2-master/examples/bezier_patches.scad
1371 2020-12-11 19:24 BOSL2-master/examples/boolean_geometry.scad
163 2020-12-11 19:24 BOSL2-master/examples/conical_anchors.scad
156 2020-12-11 19:24 BOSL2-master/examples/cube_anchors.scad
235 2020-12-11 19:24
BOSL2-master/examples/cubic_sphere_packing.scad
155 2020-12-11 19:24 BOSL2-master/examples/cylinder_anchors.scad
505 2020-12-11 19:24 BOSL2-master/examples/fractal_tree.scad
311 2020-12-11 19:24 BOSL2-master/examples/hex_sphere_packing.scad
4168 2020-12-11 19:24 BOSL2-master/examples/lsystems.scad
2465 2020-12-11 19:24 BOSL2-master/examples/orientations.scad
167 2020-12-11 19:24 BOSL2-master/examples/prismoid_anchors.scad
1089 2020-12-11 19:24
BOSL2-master/examples/randomized_fractal_tree.scad
362 2020-12-11 19:24 BOSL2-master/examples/screw_anchors.scad
149 2020-12-11 19:24 BOSL2-master/examples/sphere_anchors.scad
638 2020-12-11 19:24 BOSL2-master/examples/spherical_patch.scad
348 2020-12-11 19:24 BOSL2-master/examples/tagged_diff.scad
90325 2020-12-11 19:24 BOSL2-master/geometry.scad
0 2020-12-11 19:24 BOSL2-master/githooks/
492 2020-12-11 19:24 BOSL2-master/githooks/pre-commit
492 2020-12-11 19:24 BOSL2-master/githooks/pre-merge-commit
8773 2020-12-11 19:24 BOSL2-master/hingesnaps.scad
10319 2020-12-11 19:24 BOSL2-master/hull.scad
56372 2020-12-11 19:24 BOSL2-master/involute_gears.scad
48826 2020-12-11 19:24 BOSL2-master/joiners.scad
7736 2020-12-11 19:24 BOSL2-master/knurling.scad
5213 2020-12-11 19:24 BOSL2-master/linear_bearings.scad
35938 2020-12-11 19:24 BOSL2-master/masks.scad
62541 2020-12-11 19:24 BOSL2-master/math.scad
23651 2020-12-11 19:24 BOSL2-master/metric_screws.scad
28253 2020-12-11 19:24 BOSL2-master/mutators.scad
27637 2020-12-11 19:24 BOSL2-master/nema_steppers.scad
9150 2020-12-11 19:24 BOSL2-master/partitions.scad
54922 2020-12-11 19:24 BOSL2-master/paths.scad
3030 2020-12-11 19:24 BOSL2-master/phillips_drive.scad
43053 2020-12-11 19:24 BOSL2-master/polyhedra.scad
11691 2020-12-11 19:24 BOSL2-master/primitives.scad
22514 2020-12-11 19:24 BOSL2-master/quaternions.scad
6350 2020-12-11 19:24 BOSL2-master/queues.scad
44527 2020-12-11 19:24 BOSL2-master/regions.scad
131233 2020-12-11 19:24 BOSL2-master/rounding.scad
74355 2020-12-11 19:24 BOSL2-master/screws.scad
0 2020-12-11 19:24 BOSL2-master/scripts/
31014 2020-12-11 19:24 BOSL2-master/scripts/docs_gen.py
2446 2020-12-11 19:24 BOSL2-master/scripts/func_coverage.py
2459 2020-12-11 19:24 BOSL2-master/scripts/gencheat.sh
1375 2020-12-11 19:24 BOSL2-master/scripts/genindex.sh
678 2020-12-11 19:24 BOSL2-master/scripts/linecount.sh
1463 2020-12-11 19:24 BOSL2-master/scripts/make_all_docs.sh
958 2020-12-11 19:24 BOSL2-master/scripts/make_tutorials.sh
783 2020-12-11 19:24 BOSL2-master/scripts/run_tests.sh
10763 2020-12-11 19:24 BOSL2-master/scripts/tutorial_gen.py
74428 2020-12-11 19:24 BOSL2-master/shapes.scad
93235 2020-12-11 19:24 BOSL2-master/shapes2d.scad
91793 2020-12-11 19:24 BOSL2-master/skin.scad
6255 2020-12-11 19:24 BOSL2-master/sliders.scad
6556 2020-12-11 19:24 BOSL2-master/stacks.scad
1069 2020-12-11 19:24 BOSL2-master/std.scad
30164 2020-12-11 19:24 BOSL2-master/strings.scad
4523 2020-12-11 19:24 BOSL2-master/structs.scad
0 2020-12-11 19:24 BOSL2-master/tests/
2107 2020-12-11 19:24 BOSL2-master/tests/hull.scad
1443 2020-12-11 19:24 BOSL2-master/tests/polyhedra.scad
9040 2020-12-11 19:24 BOSL2-master/tests/test_affine.scad
18264 2020-12-11 19:24 BOSL2-master/tests/test_arrays.scad
12844 2020-12-11 19:24 BOSL2-master/tests/test_common.scad
9727 2020-12-11 19:24 BOSL2-master/tests/test_coords.scad
393 2020-12-11 19:24 BOSL2-master/tests/test_cubetruss.scad
433 2020-12-11 19:24 BOSL2-master/tests/test_debug.scad
9694 2020-12-11 19:24 BOSL2-master/tests/test_edges.scad
43448 2020-12-11 19:24 BOSL2-master/tests/test_geometry.scad
14835 2020-12-11 19:24 BOSL2-master/tests/test_hull.scad
885 2020-12-11 19:24 BOSL2-master/tests/test_linear_bearings.scad
39201 2020-12-11 19:24 BOSL2-master/tests/test_math.scad
1359 2020-12-11 19:24 BOSL2-master/tests/test_mutators.scad
13098 2020-12-11 19:24 BOSL2-master/tests/test_primitives.scad
13414 2020-12-11 19:24 BOSL2-master/tests/test_quaternions.scad
1586 2020-12-11 19:24 BOSL2-master/tests/test_queues.scad
21661 2020-12-11 19:24 BOSL2-master/tests/test_shapes.scad
73395 2020-12-11 19:24 BOSL2-master/tests/test_shapes2d.scad
880 2020-12-11 19:24 BOSL2-master/tests/test_skin.scad
1684 2020-12-11 19:24 BOSL2-master/tests/test_stacks.scad
11736 2020-12-11 19:24 BOSL2-master/tests/test_strings.scad
1645 2020-12-11 19:24 BOSL2-master/tests/test_structs.scad
1808 2020-12-11 19:24 BOSL2-master/tests/test_torx_drive.scad
13778 2020-12-11 19:24 BOSL2-master/tests/test_transforms.scad
5070 2020-12-11 19:24 BOSL2-master/tests/test_vectors.scad
3493 2020-12-11 19:24 BOSL2-master/tests/test_version.scad
4497 2020-12-11 19:24 BOSL2-master/tests/test_vnf.scad
37058 2020-12-11 19:24 BOSL2-master/threading.scad
4636 2020-12-11 19:24 BOSL2-master/torx_drive.scad
42030 2020-12-11 19:24 BOSL2-master/transforms.scad
6567 2020-12-11 19:24 BOSL2-master/triangulation.scad
47621 2020-12-11 19:24 BOSL2-master/turtle3d.scad
0 2020-12-11 19:24 BOSL2-master/tutorials/
13203 2020-12-11 19:24 BOSL2-master/tutorials/Basic_Shapes.md
5508 2020-12-11 19:24 BOSL2-master/tutorials/Distributors.md
3305 2020-12-11 19:24 BOSL2-master/tutorials/FractalTree.md
6141 2020-12-11 19:24 BOSL2-master/tutorials/Transforms.md
9489 2020-12-11 19:24 BOSL2-master/vectors.scad
4901 2020-12-11 19:24 BOSL2-master/version.scad
38204 2020-12-11 19:24 BOSL2-master/vnf.scad
19250 2020-12-11 19:24 BOSL2-master/walls.scad
3580 2020-12-11 19:24 BOSL2-master/wiring.scad
That has a directory structure. Is your file different? If you're not
seeing a directory structure I guess maybe you need a different unzipping
program? (Or you need different settings for your unzip?) I tried this on
a Windows computer and it just worked: clicking on the zip file revealed
the above structure and extracting the files did the right thing.
Anybody else have any thoughts on what could be going wrong here?
cbernhardt wrote
I downloaded the BOSL files here:
https://github.com/revarbat/BOSL2/archive/master.zip
There is no directory structure in the ZIP file.
Where should I get the proper file?
--
Sent from: http://forum.openscad.org/
OpenSCAD mailing list
Discuss@.openscad
--
Sent from: http://forum.openscad.org/
I unzipped the file without the directory structure.
Unzipping with the "Use folder names" checked solved the problem.
Thanks all.
Charles
--
Sent from: http://forum.openscad.org/
I think you were confounded by this bug
https://github.com/openscad/openscad/issues/3531
The warning can report the wrong file.
When I downloaded BOSL2, unzipped it into directory 'BOSL2', it had an extra
directory 'BOSL2-master/', so the includes wouldn't work, I just had to move
everything up one level, ie copy contents of 'BOSL2-master/' up, then delete
the empty 'BOSL2-master/'.
OpenSCAD Admin - email* me if you need anything, or if I've done something stupid...
Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.
--
Sent from: http://forum.openscad.org/