spyder

Installation of midaspy packages

Installation of midaspy packages Question: How do I import packages not on pypi with pip? I am having trouble importing the package "midaspy" to my spider ide. Even though i used pip install and i can see the packages in the anaconda environment, it still cannot be imported in the ide console. I am new …

Total answers: 1

Qt for python not working: Spyder not launching and matplotlib unable to plot

Qt for python not working: Spyder not launching and matplotlib unable to plot Question: I am running Windows. I have Anaconda and several environments there, I use Spyder, and also Visual studio Code. After updating packages (many, I cannot really tell which ones), spyder cannot be launched anymore. I get a window error with the …

Total answers: 1

Can't lauch spyder on new envs

Can't lauch spyder on new envs Question: When i lauch spyder on another env than "base" i get this error : fromIccProfile: failed minimal tag size sanity C:Usersesto5anaconda3envsPIPlibsite-packagesparamikotransport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated "class": algorithms.Blowfish, Traceback (most recent call last): File "C:Usersesto5anaconda3envsPIPScriptsspyder-script.py", line 10, in <module> sys.exit(main()) File "C:Usersesto5anaconda3envsPIPlibsite-packagesspyderappstart.py", line 252, in main mainwindow.main(options, args) …

Total answers: 1

JVM not running in Spyder 5.4.1 using PyImageJ

JVM not running in Spyder 5.4.1 using PyImageJ Question: I am building a piece of software and trying to combine my analysis scripts between Spyder 5.4.1 (Python 3.8) and and ImageJ macros. My datasets are a series of .tif stack images, so I have decided to use PyImageJ to access the ImageJ2 gateway interface to …

Total answers: 1

Pandas concat doesn't work 'DataFrame' object has no attribute 'concat' pandas

Pandas concat doesn't work 'DataFrame' object has no attribute 'concat' pandas Question: I am trying ton concat excel files with pandas but I get this error message "AttributeError: ‘DataFrame’ object has no attrctionibute ‘concat’" My code is the following: def action(): all_files = filedialog.askopenfilename(initialdir = "/", multiple=True, title="select", filetypes=( ("all files", "*.*"), ("Excel", "*.xlsx*"))) dossier=filedialog.askdirectory() …

Total answers: 1

Delete multiple variables in Python 3 independently if they exist or not

Delete multiple variables in Python 3 independently if they exist or not Question: With del a, b, c I can delete 3 variables at once if all variables a, b, c exist. However if a variable does not exists I get an error. If I would like to delete variables a, b, c I could …

Total answers: 2

File not found error when copying images from one folder to another

File not found error when copying images from one folder to another Question: I have a text file containing the names of images to be copied from a source folder to a destination folder. The source folder contains several sub-folders as shown below. The images may come from any of these sub-folders. animals (source folder) …

Total answers: 1

i can't apply labelencoder to array of bool

i can't apply labelencoder to array of bool Question: I am on a machine learning project. I did import all libraries. I took one column of data(this column is array of bool) and i want to apply it labelencoder. Here is my whole code. data = pd.read_csv(‘odev_tenis.csv’) le = preprocessing.LabelEncoder() ruzgar = data.iloc[:,3:4].values #the column …

Total answers: 2

Scraping specific pdfs from different websites

Scraping specific pdfs from different websites Question: First question here. I need to download a specific pdf from every url. I need just the pdf of the european commission proposal from each url that I have, which is always in a specific part of the page [Here the part from the website that I would …

Total answers: 2

Spyder not terminating tkinkter mainloop()

Spyder not terminating tkinkter mainloop() Question: I am starting with python and I’m using Spyder 3.9.13 with Python 3.9 When beginning with the GUI design I have run in one problem: Spyder runs the script just once and jams in infinite loop. Code that fails: import tkinter as TK ws=TK.Tk() print(‘Foo’) ws.mainloop() print(‘Bar’) When run …

Total answers: 1