Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu installation #25

Open
ahmedmaalej opened this issue Apr 1, 2020 · 1 comment
Open

Ubuntu installation #25

ahmedmaalej opened this issue Apr 1, 2020 · 1 comment

Comments

@ahmedmaalej
Copy link

ahmedmaalej commented Apr 1, 2020

I tried installation under ubuntu for python coding, using a virtual environment and followed the steps,
I tried adding the meshlabserver using these lines:

MESHLABSERVER_PATH = '/usr/bin/'
os.environ['PATH'] += os.pathsep + MESHLABSERVER_PATH

with example#1
but I keep gettting this error MSG:

if script.ml_version == '1.3.4BETA':

AttributeError: 'str' object has no attribute 'ml_version'

Any idea

@3DLIRIOUS
Copy link
Owner

That example code is quite old and predates the introduction of the FilterScript class. What version of MLX are you running? Try the example code on Github instead, i.e.:

import meshlabxml as mlx

orange_cube = mlx.FilterScript(file_out='orange_cube.ply', ml_version='2016.12')
mlx.create.cube(orange_cube, size=[3.0, 4.0, 5.0], center=True, color='orange')
mlx.transform.rotate(orange_cube, axis='x', angle=45)
mlx.transform.rotate(orange_cube, axis='y', angle=45)
mlx.transform.translate(orange_cube, value=[0, 5.0, 0])
orange_cube.run_script()

You should not need to explicitly set the meshlabserver path in your script if it is already in your system path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants