These are chat archives for spyder-ide/public

14th
Feb 2019
Romancı
@Roman_Hikaye_twitter
Feb 14 00:53
Hi there. I use Anaconda + Spider 3.3.2. iIs my Spider3.3.2 the latest version?
is Spider 3.3.2 the latest version?
CAM Gerlach
@CAM-Gerlach
Feb 14 00:56
Hey @Roman_Hikaye_twitter , Spyder 3.3.3 was just released a few days ago, with improvements to saving and loading sessions/workspaces, as well as a number of bug fixes and compatibility improvements. It's now available on Anaconda; you can update with conda update spyder in your Spyder environment (e.g. from the Anaconda prompt on Windows, or the Terminal/command line on macOS/Linux).
You can always check with the Check for updates command in the Help menu, or just by running conda update spyder, and Spyder should let you know on startup if it isn't.
Romancı
@Roman_Hikaye_twitter
Feb 14 00:57
thanks CAM Gerlach... good evening..
CAM Gerlach
@CAM-Gerlach
Feb 14 00:58
Sure thing. Happy Spydering!
Romancı
@Roman_Hikaye_twitter
Feb 14 01:07
Hey, CAM, I get, PermissionError(13, Access Denied) during version update for Spider 3.3.3 . What's wrong with this?
My Python Interpreter is 3.7.3 does it cause this?
CAM Gerlach
@CAM-Gerlach
Feb 14 01:12

My Python Interpreter is 3.7.3 does it cause this?

@Roman_Hikaye_twitter Python 3.7.3 hasn't been released yet (and won't be for another month), so I'm not sure how that's possible.

PermissionError(13, Access Denied)

Conda really should give you a friendlier message here, but all that's likely happening is you're attempting to update something that was installed in an admin/all users conda install, in a non-admin Anaconda prompt. Run the Anaconda prompt as Administrator and try again.

This is why installing Anaconda for "Just you" without admin permissions is generally a good idea, as it leads to fewer issues and less hassle like this.
Romancı
@Roman_Hikaye_twitter
Feb 14 01:20
IDLE 3.7.2... not 3.7.3 sorry...
CAM Gerlach
@CAM-Gerlach
Feb 14 01:20

IDLE 3.7.2.

Sorry, I'm confused. What does IDLE have anything to do with the situation? I thought you were talking about updating Spyder?

Romancı
@Roman_Hikaye_twitter
Feb 14 01:23
I use two version at the same time.
CAM Gerlach
@CAM-Gerlach
Feb 14 01:23
Two versions of what? Which versions?
Romancı
@Roman_Hikaye_twitter
Feb 14 01:24
IDLE 3.7.2 and spyder python, just have to check the version for spyder.
CAM Gerlach
@CAM-Gerlach
Feb 14 01:26
IDLE and Spyder are two different IDEs. Their versions have nothing to do with each other, and they are also distinct from Python, which is the underlying language that both are used to work with.
Romancı
@Roman_Hikaye_twitter
Feb 14 01:27
thanks for paraphrasing. I gether the situation now.
CAM Gerlach
@CAM-Gerlach
Feb 14 01:27
Again, I've explained what's causing your problem, which has nothing to do with your Python (not to mention IDLE) version. As the error text suggests, conda doesn't have permission to update Spyder, likely for the reason I specified above (and if not, some other permissions-related issue with your OS that Spyder, and likely even Anaconda, have no direct control over.
Romancı
@Roman_Hikaye_twitter
Feb 14 01:30
I try it later. thanks anyway. might be OS related issue... I will try it later, after a fresh restar. by now..
bye..
CAM Gerlach
@CAM-Gerlach
Feb 14 01:31

I try it later. thanks anyway. might be OS related issue... I will try it later, after a fresh restar. by now..

I have told you very specifically what the problem is. Trying later won't help. You need to run the Anaconda prompt as administrator to give permission to update the required files (presumably its trying to update conda, which can only be modified by an admin if it was installed that way).

VaziDavid
@VaziDavid
Feb 14 09:36
@CAM-Gerlach Many thanks for your precious help. This is the exact response I need to be as lazy as possible :-)
Onisim Ferche
@iamoni
Feb 14 13:33
hi guys! just wondering whether spyder 4 beta 2 will be released tomorrow, as listed in the roadmap?
Carlos Cordoba
@ccordoba12
Feb 14 13:41
@iamoni, no. I updated the roadmap with a new (tentaive) date
Mark Panton
@getmypanton_twitter
Feb 14 15:37
Hi, has anyone encountered a problem with importing requests library?
using Jupiter in anaconda doesn't encounter an issue, but using sypder with anaconda does
unable to use request.get() as it isn't recognised
Jürg Rast
@jrast
Feb 14 16:05
Hey there! I just updated Spyder from 3.3.2 to 3.3.3. As Spyder 3.3.3 also allows newer versions of PyQt5 i made some tests on my system. So, PyQt5==5.12 is not recommeded according to an issue. However, I was not able to run spyder with any version PyQt5>=5.11.
Any higher version resulted in the same error: ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets' (raised in qtpy\QtWebEngineWidgets, Line 26).
My setup consists of a fresh WinPython 3.6 / WinPython 3.7 (tried both) installation and I installed Spyder with pip install spyder. I know this is not the recommeded way, but all our devs use WinPython and not Anaconda, so this is the way we work.
More System Info: Win7 Pro, Python 3.6.6 32bit / Python 3.7.1 32 bit
Jürg Rast
@jrast
Feb 14 16:11
Has anyone a hint about the Error from above? I read something that QtWebKitWidgets are no longer part of Qt, but as I understood this would also be the case for the Versions below 5.11.
CAM Gerlach
@CAM-Gerlach
Feb 14 16:41
@jrast With Qt 5.12, you need to install the PyQtWebEngine package to fix that error. According to our discussion above, I believe @stonebig has fixed this in the next version of WinPython by including this package, so it should work then, or you could try to install it yourself. There may be other unresolved issues, though; he was experiancing a mysterious ones with the icons not working.
Thanks for testing it for us!
Jürg Rast
@jrast
Feb 14 16:43
Ok. I'll try it later with PyQtWebEngine installed.
CAM Gerlach
@CAM-Gerlach
Feb 14 16:43
That should fix it, but if you run into other issues, let us and @stonebig know. Thanks!
Jürg Rast
@jrast
Feb 14 16:44
Why is PyQtWebEngine not a dependency of Spyder? Is the problem that Spyder does no know which PyQt5 version is installed?
I mean: Only PyQt5>=5.11 does require PyQtWebEngine, but Spyder has a requirement of PyQt>=5.6, so depending on the version selected for PyQt5, Spyder also requires PyQtWebEngine.
CAM Gerlach
@CAM-Gerlach
Feb 14 16:51
@jrast It is, but it was just after the 3.3.3 release so it didn't make it in that version, sorry.
Jürg Rast
@jrast
Feb 14 16:54
Oh ok! Nice! Dumb question: Is this save to do? Because if someone allready has PyQt5 installed, for example PyQt5==5.10.*, which does include the WebEngine, the WebEngine would be available in two different packages. Don't know if this will lead to issues.
Ok, i tested it with PyQtWebEngine installed:
  • Started with a WinPython 3.7 Zero Installation (Installer: WinPython32-3.7.1.0Zero.exe)
  • Run pip install "PyQt5>=5.12" PyQtWebEngine spyder
  • Started spyder --> OK
  • Can confirm Issue #8748 (spyder 3.3.3 icon theme Spyder 3 problem with PyQt 5.12)
  • Switched to Spyder 2 Icons --> Seems to work
  • Tried autocompletion with import os; os.<tab> --> Works (tested this because this pops up quite often in the issues)
CAM Gerlach
@CAM-Gerlach
Feb 14 17:02

Is this save to do?

I'm not 100% sure since I haven't tested it, but it should be safe since it should only import the package if it needs it.

Jürg Rast
@jrast
Feb 14 17:03
Next tests, I ran this in the same installation, without removing any installed packages from above:
  • Run pip install "PyQt5==5.11.*" PyQtWebEngine spyder --> Got a warning: pyqtwebengine 5.12 has requirement PyQt5>=5.12, but you'll have pyqt5 5.11.3 which is incompatible.
  • Started spyder --> OK
CAM Gerlach
@CAM-Gerlach
Feb 14 17:03

Can confirm Issue #8748 (spyder 3.3.3 icon theme Spyder 3 problem with PyQt 5.12)

@stonebig and @ccordoba12 take note.

Jürg Rast
@jrast
Feb 14 17:04
I don't know which parts of the web engine are used, so maybe my quick test did not trigger any missbehaviour.
CAM Gerlach
@CAM-Gerlach
Feb 14 17:04
Its used for the Help viewer.

Got a warning

The problem is that you can't specify if-then dependencies with Setup(), but if it works, then it should be okay...

Jürg Rast
@jrast
Feb 14 17:08
The Help viewer seems to work. I installed numpy and did import numpy as np; np.diff( in the IPython Console. The help view correctly displayed the docs for np.diff, rendered as expected.
CAM Gerlach
@CAM-Gerlach
Feb 14 17:08
Great! Thanks so much for your tests so far.
Jürg Rast
@jrast
Feb 14 17:08
I'll do a last check with PyQt5==5.10.* while the PyQtWebEngine is installed to see what happens.
Ou, this was to fast... PyQt5==5.11.3 and PyQtWebEngine are not compatible. If I scroll the help view up and down spyder crashes. This is not allways triggered immediately, but after some scrolling the application crashes, sadly without any console output (I started spyder by running python start.py in site-packages\spyder\app)
Jürg Rast
@jrast
Feb 14 17:17
Next test results:
  • Run pip install "PyQt5==5.10.*" PyQtWebEngine spyder --> Got the same warning as above: pyqtwebengine 5.12 has requirement PyQt5>=5.12, but you'll have pyqt5 5.10.1 which is incompatible.
  • Started spyder --> OK
  • Triggered Help Viewer with np.diff( --> Works, Scrolling does not crash Spyder
So it seems PyQt5==5.11.* and PyQtWebEngine is not a good combination... Maybe just exclude PyQt5==5.11.* from the allowed PyQt5 versions? I think PyQt5<5.11 and PyQtWebEngine are compatible, probably as long as the imports are made from the correct package.
PyJudge
@PyJudge
Feb 14 18:53
Can I download Spyder 4 beta now?
CAM Gerlach
@CAM-Gerlach
Feb 14 18:57
@jrast Thanks so much for your testing. Can you confirm the scrolling problem does not occur with 5.12 with pyqtwebengine installed, and also does not occur with 5.11 and it not installed, to confirm the problem is linked to pyqtwebengine? I've experienced a problem myself with Qt 5.9 that involves Spyder crashing if I scrolled fast and held Ctrl to zoom in and out. It was also very intermittent, in that sometimes it was triggered right away, while sometimes it took a while to occur.
CAM Gerlach
@CAM-Gerlach
Feb 14 19:03
@PyJudge Yes; Beta 1 is currently available, and Beta 2 should be released very soon. Read the instructions on how to install it; we suggest you do so in a seperate environment from your primary production one(s). Thanks, and let us know if you find any bugs/issues!
stonebig
@stonebig
Feb 14 19:27
@jrast, if you're happy with Spyder2 theme, you may survive in PyQt5-5.12 . icon_theme is the second line of spyder.ini configuration file.
[main]
icon_theme = spyder 2
habalankala
@habalankala
Feb 14 19:37
Can anyone help me with DataFrame problem? DataFrames are not opening in Variable Explorer.Error message is ImportError(No module named managers.)
+Note : Spyder was unable to retrieve the value of this variable from console.
CAM Gerlach
@CAM-Gerlach
Feb 14 19:40
@habalankala Is the actual text of the error "ModuleNotFoundError("No module named 'pandas.core.internals.managers'; 'pandas.core.internals' is not a package")?
habalankala
@habalankala
Feb 14 19:40
Nope.I can get DataFrames,they are not opening.Error message is Spyder was unable to retrieve the value of this variable from the console.ImportError(No module named managers)
CAM Gerlach
@CAM-Gerlach
Feb 14 19:42
Please provide your version of Python, Spyder, pandas and spyder-kernels, as well as code that will generate the simplest possible example of a dataframe that will reproduce this on your end. Does this happen on all dataframes, or only certain ones.
habalankala
@habalankala
Feb 14 19:43
2.7 Python,3.3.3 Spider,0.4.2 Kernel
0.22.0 Pandas
Wait a second for code...
I cant share the code probably because I am new on this and I can barely run even ready scripts.
CAM Gerlach
@CAM-Gerlach
Feb 14 19:46
What do you mean?
habalankala
@habalankala
Feb 14 19:46
Never mind,writing the simple code wait for 2 min
CAM Gerlach
@CAM-Gerlach
Feb 14 19:47
Okay, thanks. Does it happen on all dataframes, even simple ones, or just this specific one?
habalankala
@habalankala
Feb 14 19:47
Every single frame.
Studying on linear regression currently and tests,trains nothing opens.
CAM Gerlach
@CAM-Gerlach
Feb 14 19:48
So just opening test_df = pd.DataFrame([1, 2, 3]) will trigger it?
habalankala
@habalankala
Feb 14 19:49
Test_df is on variable explorer now,code ran succesfully.But i cant inspect DataFrame.
CAM Gerlach
@CAM-Gerlach
Feb 14 19:49
So you get the same error attempting to open test_df?
habalankala
@habalankala
Feb 14 19:50
Yup
CAM Gerlach
@CAM-Gerlach
Feb 14 19:51
Okay, thanks. I'll see if I can reproduce this.
habalankala
@habalankala
Feb 14 19:52
Thank you
stonebig
@stonebig
Feb 14 19:55

just noticing >

Dear all,

Look like libQt5QuickShapes.so.5 is missing in PyQt 5.12. Workaround is to add it manually from vanilla Qt.

I've uploaded updated PyQt5 wheels to PyPI.

Thanks,
Phil (PyQt5-5.12-5.12.1_a)

CAM Gerlach
@CAM-Gerlach
Feb 14 19:56
@habalankala As a general reminder, Python 2 goes end of life in less than a year, and Spyder will stop supporting it around that time; many other scientific packages already have. Python 3 offers numerous improvements and resolves many Unicode bugs you may still find in Spyder, and thus we strongly recommend you upgrade as soon as practicable.
habalankala
@habalankala
Feb 14 19:57
Ehmmm,I can upgrade it with new environment in Anaconda right?
base env is 2.7 probably
CAM Gerlach
@CAM-Gerlach
Feb 14 20:06
@habalankala You can, but somethings there can be problems using Anaconda2 (base environment with Python 2.7) with Python 3 environments, but I've never had or seen a problem with running a Python 2 environment inside Anaconda3 if you need it. So I recommend you uninstall your current Anaconda (there's an uninstaller in the Anaconda3 directory, wherever you installed it) and install the latest version of Anaconda 3 (Python 3.7 x64) and use that. Then, if you really need a Python 2.7 environment for some reason, you can create one with:
conda create -n py27-env python=2
conda activate py27-env
conda install spyder-kernels other-package-names-here
habalankala
@habalankala
Feb 14 20:08
Oh,understood.Thank you so much! Going to download it soon.
CAM Gerlach
@CAM-Gerlach
Feb 14 20:09
@habalankala I've never had this problem under Python 3, and I tested an environment with Spyder 3.3.3, pandas 0.22.0, spyder-kernels 0.4.2 and Python 2.7.15 and was unable to reproduce it; dataframes work fine. So, maybe if you update and install your packages afresh, it will fix it.