-
Notifications
You must be signed in to change notification settings - Fork 13
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
TypeError due to integer division change in python3 #78
Comments
Thanks for the report! Seems that you right, I will fix this asap. As you note, this is a python3 issue so you can always install BESST in a python2 environment (e.g. with conda) if you want it to complete the run in the meantime. |
Much appreciated! We currently run this in python2 but are trying to update everything to python3 now. |
Hi there! I'm having this same issue running on python 3.8 on a virtual environment due do dependency problems. Did you manage to solve this? Do you have any tips on how to fix this? Should I edit the code? thanks! |
Hi @amandaamelo , Yes, plese edit line 490 in the file This line
HTH |
Thanks, I'll do that and let you know!
Em qui., 4 de jan. de 2024 às 05:11, Kristoffer ***@***.***>
escreveu:
… Hi @amandaamelo <https://github.com/amandaamelo> ,
Yes, plese edit line 490 in the file CreateGraph.py (you can see where it
is located in the third last row in the error message. In OPs system it was
the location
/home/ubuntu/anaconda3/lib/python3.6/site-packages/BESST-2.2.8-py3.6.egg/BESST/CreateGraph.py
This line steps = list(range(0, int(max_isize*0.8), max_isize/50)) should
be edited to:
steps = list(range(0, int(max_isize*0.8), max_isize//50)). That is, //
instead of /.
HTH
—
Reply to this email directly, view it on GitHub
<#78 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARSMO4CSXJ6UQ2FGAJNYGP3YMZP2NAVCNFSM4OV24AO2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBXGY3DOOJTGAZQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Msc. Amanda Alves de Melo Ximenes
CRBio: 117330/04-D
Doutoranda no PPG em Genética e Biologia Molecular - UFG
Laboratório de Genética e Biodiversidade - ICB/UFG
|
Hi,
I am running BESST 2.2.8 in a python3 environment and get the following error:
I believe this is due to
max_isize/50
returning a float value in python3 instead of a int.The text was updated successfully, but these errors were encountered: