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

Missing updates from version 5.74, corrected warning/error for latest versions of Python 2.7 and added instructions about Ubuntu 16.04 #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lebarsfa
Copy link

This repo was missing updates from 5.74 release available on http://sourceforge.net/projects/vpythonwx/files/5.74-release/visual-5.74_release.tar.bz2/download, so I propose to integrate them here.

Also, on recent versions of Python 2.7,

import visual

may give a warning

/usr/local/lib/python2.7/dist-packages/vis/materials.py:70: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  self.__setattr__(key, value)

which seem to become an error

/usr/local/lib/python2.7/dist-packages/vis/materials.py:70: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

on more recent versions, so I propose to integrate a fix from the code of vpython-wx.

I added instructions in INSTALL.txt to be able to rebuild easily on Ubuntu 16.04. However, for Ubuntu 18.04 compatibility, see #12.

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

Successfully merging this pull request may close these issues.

1 participant