Code Monkey home page Code Monkey logo

inkscapespirograph's People

Contributors

fsmmlk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

inkscapespirograph's Issues

extension giving error "module 'numpy' has no attribute 'complex'"

Hello! Thank you for this work. I'm very excited to use this extension.

I've just installed the extension for the first time and ran into an error.

I'm using Pop! OS 22.04 (Ubuntu-based linux distro) and followed the install instructions, which involved:

  1. uninstalling and reinstalling Inkscape (current version Inkscape 1.3, 1:1.3+202307231459+0e150ed6c4), and then
  2. extracting and moving files into my extensions directory for textext, inkscapeMadeEasy and inkscapeSpirograph, and
  3. installing numpy (current version 1.26.0) and scipy (current version 1.26.0)

After installing, I opened a new document, navigated to Extensions > fsmMLK > Spirograph... and clicked Apply using all the default settings in the dialog window, and a new dialog window appears in front of the extension dialog, reading:

Inkscape has received additional data from the script executed. The script did not return an error, but this may indicate the results will not be as expected.

With the following additional data:

Traceback (most recent call last):
  File "~/.config/inkscape/extensions/spirograph/spirograph.py", line 251, in <module>
    sp.run()
  File "/usr/share/inkscape/extensions/inkex/base.py", line 250, in run
    self.save_raw(self.effect())
  File "~/.config/inkscape/extensions/spirograph/spirograph.py", line 138, in effect
    [PointsFinal, CentersFinal, curvatureFinal] = self.calcCurve__trochoid(typeCurve, R, r, d, thetasFinal)
  File "~/.config/inkscape/extensions/spirograph/spirograph.py", line 207, in calcCurve__trochoid
    j = np.complex(0, 1)
  File "~/.local/lib/python3.10/site-packages/numpy/__init__.py", line 324, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'complex'.
`np.complex` was a deprecated alias for the builtin `complex`. To avoid this error in existing code, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'complex_'?

When I click 'OK' to dismiss the additional data dialog, no new elements appear to be added/drawn into the document.

Any ideas how to get the extension to run? I'm not very familiar with pyhon/scipy/numpy scripting, so any troubleshooting tips much appreciated.

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.