-
Bug ReportHi, new to Perspective and it looks awesome. However it seems that a change in Perspective python import causing all examples and docs to be outdated. Steps to Reproduce:
Expected Result:Expected the server.py to run Actual Result:ImportError: cannot import name 'Table' from 'perspective' Environment:Python 3.10 Additional Context:Could it be caused by the following ? |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 2 replies
-
Can you provide a stack trace of the error |
Beta Was this translation helpful? Give feedback.
-
Hi @timkpaine , thanks for checking! Here is an example for python-tornado, but same apply to all examples (including the one in python docs): |
Beta Was this translation helpful? Give feedback.
-
@Cambyst It looks like you're on a mac, what is your OSX version and CPU (x85 or arm64)? @timkpaine wants the errors from your installation log, not the import statement. |
Beta Was this translation helpful? Give feedback.
-
Hey @texodus , I am on macOS 13.4 with an Apple M1 (arm64). Attached is install log and also first import log on a clean python env. It seems to confirm your intuition that it is due to the CPU architecture. |
Beta Was this translation helpful? Give feedback.
-
You're not installing |
Beta Was this translation helpful? Give feedback.
-
Thank you @texodus , you are right that on the clean env, it installed 2.3 and that downgrading to 2.2.1 helped a little (not sure why pip-show print 2.0.1 originally but nevermind). However on launch it is still throwing an exception (I have run "yarn install", although this was not explicitely documented): |
Beta Was this translation helpful? Give feedback.
-
Apologies for my lack of knowledge around Yarn/Javascript, but it seems that none of the "/dist/cdn" script referenced in the html files are also not installed by Yarn. Example if python-tornado/index.html: |
Beta Was this translation helpful? Give feedback.
-
Works like a charm now, thank you very much for your time @timkpaine @texodus , much appreciated ! |
Beta Was this translation helpful? Give feedback.
these are served locally from the build JS assets.
yarn build_js
to build them, the examples are designed to be run from a locally built developer installation (or you can also easily adapt them to a public CDN like jsdelivr)