Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install command does not work #61

Open
Drachenbauer opened this issue Dec 17, 2024 · 2 comments
Open

Install command does not work #61

Drachenbauer opened this issue Dec 17, 2024 · 2 comments

Comments

@Drachenbauer
Copy link

Drachenbauer commented Dec 17, 2024

In your description there is this:

Installation

pip install diffractsim

Alternatively, to download the examples and the apertures as well, you can also build from source by cloning the repository and running from the main folder project on the command prompt:

python install .

I downloaded a zip folder of your repository and unpacked it.
After unpacking, the contents are inside 2 nested folders of the same name (with "-main" at the end).
But my powershell outputted this, as i at first tried the second command and than tried to run the included setup.py:

PS F:\Mods\diffractsim-main\diffractsim-main> python install .
C:\Program Files\Inkscape\bin\python.exe: can't open file 'F:\Mods\diffractsim-main\diffractsim-main\install': [Errno 2] No such file or directory
PS F:\Mods\diffractsim-main\diffractsim-main> python setup.py
Traceback (most recent call last):
  File "F:\Mods\diffractsim-main\diffractsim-main\setup.py", line 1, in <module>
    from setuptools import setup, find_packages
ModuleNotFoundError: No module named 'setuptools'

I taught "running from the main folder project" in your description means navigating the powershell to the inner of the 2 identical named folders (where the actual repo-stuff is in) for running the second command.
i really want to do that second method, because i also want to get the examples and stuff in my installation.

what did I maybe understand wrong in how to perform the second installation-method?

@rafael-fuente
Copy link
Owner

Hello,

It seems that to install the package locally, you simply need to have installed setuptools beforehand. Setuptools can be installed via pip:

pip install setuptools

@Drachenbauer
Copy link
Author

Drachenbauer commented Dec 18, 2024

installed setuptools now, but the command:
python install .
still gives the same error.

And when I try to run the setup.py in the repo manually with python, a window pops up and closes after less than a second and I see no changes in my file-system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants