Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    PyC4D import numpy/scipy [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 488 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 18/01/2015 at 05:12, xxxxxxxx wrote:

      Hi
      I want to use numpy/scipy in a PyGenerator. Tryed to copy the numpy folders into "AppData\Roaming\MAXON\Cinema 4D R16 Portable_2D4E0085\library\python\packages\win64" but when i try to
      import numpy it says:
      File "C:\Users\jak\AppData\Roaming\MAXON\Cinema 4D R16 Portable_2D4E0085\library\python\packages\win64\numpy\__init__.py", line 127, in <module>

      Is there a way to use numpy inside c4d? and if yes how i install it ?
      Sorry for my english.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 20/01/2015 at 00:59, xxxxxxxx wrote:

        Please post the entire error message. I guess you need to compile Numpy on your own with VS2010 to make it work. The default numpy distribution package might not work properly.

        Cheers, s_rath

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 20/01/2015 at 07:40, xxxxxxxx wrote:

          full log :

          Traceback (most recent call last) :
            File "'Python-Generator'", line 4, in <module>
            File "C:\Users\JAK\AppData\Roaming\MAXON\Cinema 4D R16 Portable_2D4E0085\library\python\packages\win64\numpy\__init__.py", line 127, in <module>
            raise ImportError(msg)
          ImportError: Error importing numpy: you should not try to import numpy from
                its source directory; please exit the numpy source tree, and relaunch
                your python intepreter from there.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            On 23/01/2015 at 08:31, xxxxxxxx wrote:

            Hi Caradhras,
            There are other ways to install Numpy, Scipy and the lot, but by far the easiest is to install the autoPACK plugin (get it here) which comes with the whole caboodle. They even frequently update the plugin, including Numpy/Scipy installs. To be honest, I've never used autoPACK itself, but Numpy works as a breeze!

            Regards,

            Hermen

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              On 31/01/2015 at 19:41, xxxxxxxx wrote:

              THX

              1 Reply Last reply Reply Quote 0
              • First post
                Last post