Thank you! We are definitely closer now, but something is still not quite right. With `make install SUBDIRS=...`, I still run into an error as it (I think) tries to find these subdirectories a second time (this time within the modules subdirectory). I get this error:
... make[1]: Leaving directory '/home/jds/Desktop/gwyd/gwyddion-2.66/gwyddion' Making install in modules make[1]: Entering directory '/home/jds/Desktop/gwyd/gwyddion-2.66/modules' Making install in m4 /bin/bash: line 21: cd: m4: No such file or directory make[1]: *** [Makefile:669: install-recursive] Error 1 make[1]: Leaving directory '/home/jds/Desktop/gwyd/gwyddion-2.66/modules' make: *** [Makefile:631: install-recursive] Error 1 ________________________________ From: David Nečas (Yeti) <y...@gwyddion.net> Sent: Sunday, October 13, 2024 4:06 AM To: Gwyddion use discussion <gwyddion-users@lists.sourceforge.net> Subject: Re: [Gwyddion-users] Python error when trying to build from source with pygwy support On Sat, Oct 12, 2024 at 04:27:01PM +0000, Smith, Justin wrote: > make[2]: Entering directory '/home/jds/Desktop/gwyd/gwyddion-2.66/python' > make[2]: Nothing to be done for 'install-exec-am'. > /usr/bin/mkdir -p '/home/jds/miniconda3/envs/gwyd/lib/gwyddion/python/ > Gwyddion' > /usr/bin/install -c -m 644 Gwyddion/dump.py Gwyddion/__init__.py '/home/jds/ > miniconda3/envs/gwyd/lib/gwyddion/python/Gwyddion' > ../py-compile: line 125: test: Inc: integer expression expected > Byte-compiling python modules... > dump.pyTraceback (most recent call last): > File "<string>", line 15, in <module> > AttributeError: 'module' object has no attribute 'implementation' > make[2]: *** [Makefile:469: install-GwyddionPYTHON] Error 1 > make[2]: Leaving directory '/home/jds/Desktop/gwyd/gwyddion-2.66/python' > make[1]: *** [Makefile:562: install-am] Error 2 > make[1]: Leaving directory '/home/jds/Desktop/gwyd/gwyddion-2.66/python' > make: *** [Makefile:631: install-recursive] Error 1 > > Could someone please help steer me in the right direction? Thanks! The python subdirectory contains an ancient and somewhat misguided way to write functions in Python using ‘plugins’. You do not need it for pygwy. In fact, it should have been nuked from the orbit long time ago if not for backward compatibility. If pygwy (which is in modules/pygwy) works, I would just skip the old stuff. Overriding SUBDIRS may be the easiest workaround, i.e. make install SUBDIRS="m4 libgwyddion libprocess libdraw libgwydgets libgwymodule app gwyddion modules po pixmaps data utils thumbnailer devel-docs" There can also be problems in pygwy itself, but at least it should get there for start… Regards, Yeti _______________________________________________ Gwyddion-users mailing list Gwyddion-users@lists.sourceforge.net https://urldefense.com/v3/__https://lists.sourceforge.net/lists/listinfo/gwyddion-users__;!!LkSTlj0I!GgxrzNmdEECCWiXE7CQ4x6NYBVkiJtvc4QQc9DHyjjVqObZz4D3lOVastMxtYI5YWYNWOYjUuB_BT0fPFcrcNQ$
_______________________________________________ Gwyddion-users mailing list Gwyddion-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gwyddion-users