Comments (8)
Hello,
It is not clear for me if you tried to install it from sources or using pip
we recommend to install the Oasys version using pip. It is installed when you install Oasys. It installs the binaries that work well (at least up to now) in windows10.
If you want to build from sources, you need an old gfortran compiler (version 8 does not work: #35 but I see you use version 7... ).
Please let me know if the pip-installed binary version does not work.
from shadow3.
Hello,
Sorry for the confusion. I installed Oasys using the .bat files as suggested in the wiki page and have been attempting to install shadowoui / shadow3 using pip. I am getting these errors during pip installation.
During installation of oasys, I had to downgrade to the previous version of numpy due to "an error in windows runtime" (more info here).
During pip installation, I first got an error saying I needed Visual Basic 14.0 or later. After installing build tools, I got another error saying "object has no attribute compiler_f90" which was fixed by installing a gfortran compiler. The issue I am getting now is after installing both compilers after seeing those errors.
I wonder if all of these are somehow connected?
Thank you!
from shadow3.
Hello,
I suggest to restart from scratch the Oasys installation. Clean (delete) before the previous installation that creates the folder c:<home>\miniconda3. The installer will create a new miniconda installation so you do not have to update compilers nor change installed versions. Usually the binaries we have in the shadow3 installer work well for all PCs, but may be your one has something new. Let me know then where it crashes.
If you want to reinstall (or retry) shadow3 after that, be sure to use the Oasys-python
c:<home>\miniconda3\python.exe -m pip install --upgrade shadow3
Sorry for this mess!
from shadow3.
Hello,
I uninstalled all compilers and miniconda at attempts of a fresh install.
Oasys installs just fine (first installing numpy 1.19.3 through pip to avoid current issues with 1.19.4 and windows), but when trying to install shadowoui / shadow3 I get an error saying I need Visual C++ 14.0 or greater. I get this error both when trying to install from the Oasys GUI and from miniconda using c:\miniconda3\python.exe -m pip install --upgrade shadow3.
No problem with the errors, this has been a good learning experience for me (I only know how to code in python and not very well).
Thanks!
from shadow3.
OK, I see that for any reason the binary pip distribution is not good for your platform and pip ties to build it from sources. And of course it fails. To build shadow3 in windows is a pain. In fact, we use the version compiled time ago. And I do not have anymore the system I used to it will take time to build it again...
I suggest to try to force the installation of the binary doing (after activating your Oasys conda environment):
Let me know... Otherwise I will try to recompile everything and let you know the procedure... but it will take some time.
from shadow3.
I noticed you linked a wheel for python 3.7 and I was using python 3.8. I switched my version and everything installed just fine from pip. Thank you so much for the help!
from shadow3.
Indeed. We are not supporting python3.8, yet.
from shadow3.
I'm happy this issue was solve. We will look in the future to new versions.
from shadow3.
Related Issues (20)
- Info not working HOT 2
- cannot update the adds-ons on Jan.26, 2020 HOT 5
- Laue Symmetrical (or asymmetrical for alpha=90deg) is buggy HOT 1
- Wiggler source size calculation HOT 3
- Error while running test program HOT 4
- Flat vs. uniform geometrical source HOT 2
- Unexpected behavior of CRL + crystal HOT 2
- compound lens problem for zero lenses
- Installation from source not working HOT 30
- License for this repo HOT 2
- SI100 produces unrealistic intensity HOT 1
- simulation of paraboloid mirror HOT 1
- BRAGG standalone use HOT 1
- Parabolic mirror with small distances HOT 2
- choosing the torus pole location HOT 3
- reflectivity with graphite 002 HOT 10
- improve plot range (get_good_range) HOT 1
- Storing the output data HOT 4
- Support NumPy 1.24+
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadow3.