P4D-Data-Sciences icon indicating copy to clipboard operation
P4D-Data-Sciences copied to clipboard

Installing modules

Open OOkamisamachan opened this issue 2 years ago • 3 comments

I've successfully managed to run a simple "Hello.py" program and importing numpy (PIP), but whenever I try to import matplotlib or pandas (PIP) I encounter error "AttributeError: partially initialized module ""module name"" has no attribute ""attribute name"" ( most likely due to a circular import )" where both ""module name"" and ""attribute name"" varies depending on unknown factors.

E.g. AttributeError: partially initialized module 'numpy' has no attribute 'version' (most likely due to a circular import). Did you mean: '_version'

Thus I've tryied using P4D-Data-Sciences libraries but, while able to compile, every time i right click to install the .bpl file Delphi freezes completely.

Procedure used to install P4D :

  • I've tryied both using the installer (in the install folder) and the Getit package manager and both end up in the same issue.
  • While doing a manual install of the environment/wrappers I encounter the same problem I mentioned above.

OOkamisamachan avatar Oct 14 '22 14:10 OOkamisamachan

I will try it.

lmbelo avatar Oct 15 '22 18:10 lmbelo

@OOkamisamachan I just wrote a highly detailed tutorial on installing all this stuff ('cos it's far from simple) - you can find it on https://peardox.com/mixing-python-and-delphi-made-easy/

Basically I'm trying to make a start on useful documentation for this suite

peardox avatar Oct 25 '22 22:10 peardox

@peardox , We shall collaborate on this to create this useful documentation for the whole suite. I'm basically doing the same for Python side. But, let's create the official wiki pages in the repositories on various useful topics..

Priyatham10 avatar Oct 26 '22 05:10 Priyatham10