Uninstalled Python3.x, Reinstalled and now won't run files - python-3.x

I had Python3.5.1. I accidentally downloaded it in like 3 spots a while back, and had some issues with Pip install, so i figured I`d uninstall them all then download it again. So, since there was only 1 Launcher and 1 Python3.x in programs + files, I had to manually delete the files of the other two. (Oops?) Now that Python3.x has been reinstalled, none of my old .py files work. They give me errors, or don't open. Also, I have to manually choose the way to open (not just double click runs it), and all platforms just run it in a py.exe, so i can't see errors. I think this image has something to do with it: When I double click the .py to run it
Any ideas? Thanks :)

Related

I am not allowed to run a python executable on other pcs

I was doing a game in tkinter, then I make it executable with PyInstaller and sent it to my friends so they can run it and tell me how it feels.
It seems that they could download the file, but can't open it because windows forbade them telling that it's not secure and not letting them choose to assume the risk or something.
They tried to run as administrator and still nothing changed.
What should I do or what I should add to my code so that windows can open it without problem and why windows opens other executable files without saying that(current error that my executable gets)?
compress it as a .zip file and then it will most probably work
or install NSIS and create a windows installer for it.
I finally figured out what I had to done
When the dialog appeared u need to click more info and then it will display a Run Anyway button

Anaconda Prompt(Anaconda3) does not recognize files in a directory

I took to heart the message that support for anaconda2 was dropped. I installed anaconda3 and used 2to3 to convert my *.py codes. Everything seemed to work as expected. I have several 2 line bat codes that cd to a particular directory and then call python to execute a particular *.py code in that directory. By loading Anaconda Prompt(Anaconda3) and invoking the bat file I could run pythons in that directory as expected.
Then, a couple of days ago, I made such a run and got an error message saying the *.py file could not be found. I immediately looked in the directory and the python file was there as expected. I then did a dir command in Anaconda Prompt(Anaconda3) and found that almost no files in the directory were listed. This was happening on my windows 10 laptop.
On my desktop, everything continues to work as expected. Are there any suggestions as to what could cause such a problem and how to fix it.
Thanks,
Mack Elrod
Responding to the request for additional information, I have a bin directory that is in path. In bin\MackData.bat is
c:
cd %USERPROFILE%\Documents\Medev\MackData
copy sugarhist.png sugarhist.old.png
python MackData.py
When I open Anaconda Prompt(Anaconda3) and enter MackData I get
(base) C:\Users\Mack>MackData
(base) C:\Users\Mack>c:
(base) C:\Users\Mack>cd C:\Users\Mack\Documents\Medev\MackData
(base) C:\Users\Mack\Documents\Medev\MackData>copy sugarhist.png sugarhist.old.png
1 file(s) copied.
(base) C:\Users\Mack\Documents\Medev\MackData>python MackData.py
python: can't open file 'MackData.py': [Errno 2] No such file or directory
(base) C:\Users\Mack\Documents\Medev\MackData>
But MackData.py is a python file in the directory MackData.
This code worked on this laptop until a few days ago and continues to work on my desktop computer. I can, of course, publish MackData.py but that seems irrelevant. The point is that Anaconda can't find it.
Thanks,
Mack
I must submit a sincere apology to this community. I have determined my problem and Anaconda is not responsible in any way. I thank all of you for you concerns and comments.
For any who might be interested I will give a brief outline of what happened. First, I installed Anaconda3. Several days later my directory, MackData, was moved to a new location. I conjecture that happened by me inadvertently letting my hand drag on the touch pad. Then, not knowing the location had changed I updated my laptop from my desktop. My update program not finding MackData where expected recreated it and put only the most recently changed files from the desktop into the new MackData. New but in the correct location. Then of course running my script in the Anaconda3 prompt failed. Doing a dir in the Anaconda3 prompt showed only a few files were there. I then went to Windows File Explore and looked at MackData and saw all of the expected files. I used the quick access feature which unknown to me pointed to the old directory in its new location.
That is not intended to be an excuse but only as an explanation. Again, I do apologize to the community.
Mack Elrod
I'm pretty sure newer anaconda launchers users different environment paths, and not even windows ones.
I suggest either checking the environment path within the anaconda launcher and configurations or, a better solution in my opinion, run these scrips using the regular python engine, without using anaconda (simpler, more determinant and works within your standard environment)

Disappearing package

I am trying to install the Local History package in Sublime 3. I am behind a proxy and so far have not been able to get package control to work so I am installing the package by pulling the repo into my packages directory.
When I installed it the first time I had Sublime Text 3 open and was surprised to see that the Local History commands appeared with out a restart. However, they did not seem to work so I restarted Sublime Text. Package gone.
I have reinstalled it, and stopped and started Sublime multiple times and for whatever reason everytime Sublime starts it removes the entire Local History package from my packages directory.
I have several packages installed in Sublime Text 3 and they all work without issue. This is the first time I have encountered this issue. Any ideas what may be going on?
Go to Preferences -> Settings-User and check if Local History is listed under ignored_packages. If that's the case the package fails to load. Normally deleting Packages/User/Package Control.cache directory solves the problem.

Newly installed Sublime Text 3 package commands do not show up in the command pallette

I've installed a couple of Sublime Text 3 packages recently and have noticed that some of the commands that should be available via the package do not show in the command palette, though other commands for the same package do.
Specifically, I installed the package PHPCompanion and all of the commands show in the pallette but insert_php_constructor_property:
Or the package PHP Getters and Setters, none of the commands are available.
I'm actually not even sure where to start as far as troubleshooting this. Most of the links I've found so far say "uninstall the package and reinstall it" (which I've done) and "make sure the packages aren't in your Ignore Packages preference properties" (which I've confirmed).
Is there something else I can do to figure out why the commands are not available?
I figured out how to fix the issue (though I still don't know what the issue was).
I deleted the Sublime Text app and installed a new version from the sublime home page. After launching the new version the commands started showing up.
Note that I only deleted the app itself, I did not delete the Application Support or Preference files. This means all of my previously installed packages, themes, and even session were all still in place.
Hopefully this helps anyone else that runs into the same issue.

Package Control in Sublime3 not working?

Note: I´ve searched for sublime here at the forum first, in order to post a question, because I wasn´t sure if this question was adequate for this specific forum and wanted to compare it with other posts. If it shouldn´t be here, please tell me so, and I´ll gladly close it here and open it in any other stackoverflow´s forum. Thanks.
I´ve just installed sublime3. After that I´ve installed package control.
But even when I try and install some packages using package control not all packages get installed, even when I get the "successfully installed" message at the bottom of the window.
To install a new package I go to preferences/package control/install package, and after getting the "successfully installed message" I go to /list packages and it´s not there.
I realised that maybe that´s because some packages are not compatible with sublime 3 (even there it shouldn´t be the successfully installed message there).
So, I´ve tried the latest sublime3 version of emmet, but it seems that´s not working (I´ve tried some shortcuts without any success). So I´ve watched Chris Coyer screencast to check out if I´ve missed something, but it still won´t work.
I´ve tried installing it manually: I´ve went to C:\Program Files\Sublime Text 3\Packages (I´ve installed the x64 package, but for some reason it´s not installed into \Program Files (x86)).
And then I copy/paste the unzipped folders of /emmet-sublime-master and /PyV8 (I´ve tried naming the folder just emmet).
And still, it won´t work. This kinda happened to me with a lot of packages, I´ve installes several of them, and when I go to preferences/package control/list packages, I get only 3 of them.
I came across this issue as well. This thread (https://github.com/wbond/package_control/issues/874) directed me to delete the entry for Package Control under "Ignored Packages" in my User Settings File. Once that was deleted, I restarted, and it worked as expected.
In SublimeText go to Preferences -> Settings. In the opened file Preferences.sublime-settings remove Package Control from ignored_packages list (see below). Save the file and restart Sublime.
{
"font_size": 11,
"ignored_packages":
[
"Vintage",
"Package Control" <---- REMOVE
]
}
For me, Package Control was already removed from ignored_packages, so that didn’t help. But the Sublime Text console held messages which indicated the problem. (Press Ctrl+` to open the console.)
PermissionError: [Errno 13] Permission denied: '/home/myuser/.config/sublime-text-3/Cache/Package Control/merged-ca-bundle.crt'
And changing ownership on the Package Control directory allowed me to use Package Control again:
chown -R myuser:myuser '/home/myuser/.config/sublime-text-3/Cache/Package Control/'
For me, after try to remove and reinstall the Sublime and verified the ignored_packages, I installed python and restart the sublime. So it worked.
In Terminal:
sudo apt install python python3
I am using Ubuntu 20.04.

Resources