Polymer module

Post Reply
zwy
Posts: 1
Joined: Sun Mar 22, 2020 11:49 am
company / institution: 中国地质大学
Location: 武汉

Polymer module

Post by zwy »

I use polymer on win10 system, but it gives the error message:"ModuleNotFoundError: No module named 'polymer.polymer_main'"

I have tried using"polymer_main.pyx" to generate“polymer_main.pyd", but failed.

Can anyone help me? I need a .pyd file.
User avatar
fsteinmetz
Site Admin
Posts: 139
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: Polymer module

Post by fsteinmetz »

Hi,
As stated in the readme, a part of Polymer source code is coded in cython. You need to convert this source code to c using cython, and then compile this c code to a python module. On linux this is done using Polymer's makefile, but I have not tested it on windows - although, it should be possible.
What have you tried exactly ?
As a workaround, you can also run Polymer in a linux environment inside windows using for example Virtualbox, Docker, or Windows Subsystem for Linux.
dingky
Posts: 23
Joined: Tue Jun 30, 2020 3:56 am
company / institution: China University of Geosciences
Location: China

Re: Polymer module

Post by dingky »

fsteinmetz wrote:
Fri Apr 03, 2020 10:07 am
Hi,
As stated in the readme, a part of Polymer source code is coded in cython. You need to convert this source code to c using cython, and then compile this c code to a python module. On linux this is done using Polymer's makefile, but I have not tested it on windows - although, it should be possible.
What have you tried exactly ?
As a workaround, you can also run Polymer in a linux environment inside windows using for example Virtualbox, Docker, or Windows Subsystem for Linux.
hi,
how use to Polymer's makefile on Ubuntu
kind regards
User avatar
fsteinmetz
Site Admin
Posts: 139
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: Polymer module

Post by fsteinmetz »

The makefile is used by the command "make".
Post Reply