I am using openpyxl in spyder IDE to create a new excel workbook. The program runs with no error, however no excel workbook was created.
I copied the code into sublime text, and ran the code in command prompt and it worked perfectly good, with the new excel created
Can someone please explain what i am doing wrong in spyder and how to fix it?
I got stuck with the same problem. To resolve it I verified the Python interpreter's version used by my Spyder (there were some of them on my computer). I found out that it wasn't using the one I needed it to. So I changed it to the appropriate version's one with the followed installation of the lacking Spyder kernels with python -m pip install spyder-kernels and all the specific modules I needed to complete my tasks.
Hope the advise to be useful. Have a nice day.
Related
I have been using a google colab template for iterative LQR that uses the Pydrake, however, it seems like the code repository is removed and I can't reinstall it on google Colab:
try:
import pydrake
import underactuated
except ImportError:
!curl -s https://raw.githubusercontent.com/RussTedrake/underactuated/master/scripts/setup/jupyter_setup.py > jupyter_setup.py
from jupyter_setup import setup_underactuated
setup_underactuated()
# Setup matplotlib backend (to notebook, if possible, or inline).
from underactuated.jupyter import setup_matplotlib_backend
plt_is_interactive = setup_matplotlib_backend()
File "/content/jupyter_setup.py", line 1
404: Not Found
^
SyntaxError: invalid syntax
I tried clicking this link https://raw.githubusercontent.com/RussTedrake/underactuated/master/scripts/setup/jupyter_setup.py, and the page is not found... everything was working fine yesterday
Sorry. You're correct... I updated it this morning, and don't have a good deprecation policy in place on that repo, and this setup script is two versions ago. The path you want is https://raw.githubusercontent.com/RussTedrake/underactuated/master/setup/jupyter_setup.py
(remove the script from the directory). But if you look at that file, you'll see that even that is pointing to an updated setup script which you might want to point to.
This is actually all good news... we are on the path to a much better solution. You can now just pip install drake on colab (see the drake installation guide). Once I land the pip install underactuated (probably in time for my Spring offering of the class), then all of that nasty setup will be gone.
As a result of a question I wrote a little earlier I person was kind enough to write an answer. He suggested installing iisnode to fix a problem where node.js was in the path but docker couldnt find it.. However, on his suggestion I downloaded iisnode for iis 7.x(x64) and proceeded to run it... and with the luck I am having I got the following error..
There was a problem with this Windows Install package. A script required for this install to complete could not be run. Contact your support personnel or package vendor.
I have no idea how to solve this.. any ideas.. I have entered docker for this as I suspect this problem has occured for others when they tried to run a dotnet core SPA project...
Sorry my bad English!
I had this issue while i was working with "Plesk" but maybe my solution works for you or others.
First you should go to "C:\Windows\System32\inetsrv\config".
Make a backup of "applicationHost.config" somewhere.
Then remove every line that contains "iisnode" in that file.
Then try to install "iisnode" again. if it does not work, restart your OS and try again.
If it does not work again, restore your backup and restart your OS and i don't know how you can fix it, Sorry :((
When ask Spyder to run my program from the Python Console it gives me different responses. Sometimes, it doesn't run the program, other times it hangs. When it hangs I have to manual break the program with Ctrl+enter.
Have I loaded Spyder incorrectly? Do I need to configure my interface differently? Any suggestions?
(Spyder developer here) Because of this and several other bugs, the Python console is going to be removed in Spyder 3.2.
Please use the IPython console instead.
I am trying to use some libraries I downloaded, but whenever I check for them in IDLE I don't see them.
The same thing happens when I type from sklearn import datasets
But when I try to pip install I see this:
Does this mean I am limited to only the Spyder IDE?
There are somehow distinct distributions of Python that you seem to be running. I would suggest using virtualenv and running your IDE (idle/others) via that. Here's a tutorial video for it. [1]
[1] https://teamtreehouse.com/library/idle-in-a-virtual-environment-2
I've Googled this a thousand times and I cannot, for the life of me, get VIM to work on my Minix 3. For the record, I am running on a Windows machine with Minix 3 working on Oracle's VM VirtualBox.
I've tried typing,
# pkgin up && pkgin in vim
but I get the error:
pkgin: Can't open database /usr/var/db/pkgin/pkgin.db: unable to open database file: No such file or directory
I then try to do pkgin search git to search for a package, but I get the same error. Could this be some kind of Internet connection issue? I'm incredibly confused.
If you haven't already, download the binary package from here:
ftp://ftp.minix3.org/pub/minix/packages/3.3.0/i386/editors/
Change "i386" to your correct architecture, if different.
As you're probably already familiar, this page tells you how to install binary packages for Minix:
http://wiki.minix3.org/en/UsersGuide/InstallingBinaryPackages
As far as your "pkgin" errors, here are two possible solutions:
http://osdir.com/ml/minix3/2011-03/msg00244.html
How to install vim into Minix3?
I asked on the Minix 3 Google Groups Forums and they solved my problem. If anyone else has trouble, I'm pasting a response by Lionel:
Switch to http downloads by editing "/usr/pkg/etc/pkgin/repositories.conf" and comment out the line:
ftp://ftp.minix3.org/pub/minix/packages/$osrelease/$arch/All
and add the following:
http://www.minix3.org/pkgsrc/packages/$osrelease/$arch/All
Then do shutdown, boot, pkgin update and then install your desired packages.