my pyinstaller executable is not opening on other computers besides mine - python-3.x

The last few days, I created a site, using wix, to use as a portfolio. I left all my projects there. My sister, helping me try It, downloaded one of them, but she could not open it
The first problem was solved pretty fast. My computer uses linux, and her's uses Windows, so I just had to use a windows computer to run pyinstaller on my project. It worked
Now, I managed to create the windows executable. I tested on my windows computer, and it worked. However, my computer HAS python, while her's dont. I think the error might be my venv (virtual environment). Maybe the python interpreter she is supposed to use to run the program is in the wrong directory?
Image of what you get, after downloading my project "FastGrid":
https://i.stack.imgur.com/PS77Y.png
(sorry for using external images, It's the only way I can make a good description the situation)
The only difference between her directory and mine is that her python files have a notepad icon. However, the extension is ".py", so I don't see how that is a problem. Unless somehow her pc is opening that with notepad, without using the python interpreter, and not executing the code properly.
Also, when I tried on my computer, my antivirus thought the file was a virus, and said It would take 80 minutos to verify It. I trusted the file and tried to open It, only to get a "You might not have permission to open the file" error. I refreshed the directory and It opened sucessfullt. The same happened to my sister (without the opening part, of course). She had this error, but later, when I tried again, It simply didn't run. No errors.
Again, I think the directory "venv" may be in the wrong spot, and that's why she can't open the executable, since the project may not be able to read the files. But, if that's the case, I don't know how I should modify that.
Also, here is my site, if you think that can be helpful. You can find my projects in the "blog" part
https://lvalencacomputacao.wixsite.com/website
Thanks in advance. If I wasn't clear, please, feel free to ask your doubts on comments. I'll do my best to make the post better
Edit: The image is the project for windows, but opened in ubuntu, that's why there is a ".exe" there.

does all of your computer have python, it could probably beacuse you are using a virtual enviorment, and need to activate it before entering the the exe. the command : .\venv\Scripts\activate to activate te asets in your python project, what was the difrent from your sister computer and all of the computer, i could help you

Everyone, the problem is solved. My sister's pc is probably the one at fault, here, since the program worked in every computer I tried besides her's.
Thanks

Related

linux live kit not working on ubuntu 20.04 access denied when making new directory

Does anyone know how to get Linux live kit to work on Ubuntu 20.04? I found a website that showed me how, but when I tried to build it, the file would not show up. I tried rebooting but it did nothing. I know that Tmp empties on reboot, but when I try to make a directory like /build it says access denied.
Does anyone know how to get a bootable ISO using Linux live kit on Ubuntu 20.04?
I know how to use systemback and other tools. Also when I asked on askubuntu they did not answer my question. I am trying to make a working linux distro.
I tried to put it in /srv but it did not work. also when i tried to put it in /tmp. It would not show up in /tmp. One issue I had was also making a new directory like /bluespace. Can anyone please help. Maby even go through the steps. Thanks! This distro is for education. It comes with website blocking its own search engine and so much more. P.s I am only in highschool. I am done customizing it but I need the file with linux live kit. I tried every option and it wont work. I tried pinguy, but it only makes a backup. I want linux live kit to work but it wont.

How do I run code without the PyCharm IDE

Now that I am done with my project that was developed using PyCharm in a virtual environment, I need to distribute the code to my work machine; however, I am not certain on how to do this. Do I need to create a build of sorts so the code an run independently of the PyCharm IDE? Can someone please point me to the correct documentation on this crucial next step?
This really depends on what and how you're using the code for. If you just want to run it on your computer and it's a single file, you can open the command line/terminal and type python3 your_file_name and it will run the file (where your_file_name is the path to your .py file from whatever directory you're in). I assume you have python installed on your work machine, but if not, go here:
https://www.python.org/downloads/
If you have a more complex project or you want to deploy your code on a website or a server, these are probably good places to start.
https://www.jetbrains.com/help/pycharm/deploying-applications.html
https://docs.python.org/3.0/howto/webservers.html
EDIT: Added this as another useful link:
https://docs.python-guide.org/dev/virtualenvs/

Pyinstaller creates Trojan Virus when converting files

I had a perfectly normal file. I downloaded pyinstaller, created a .exe with it, and wanted to share it. I uploaded it to dropbox, filehopper and one more (cant remember which) each time i tried to share it. Every single time, when i download the file to check if it works, my computer says trojan virus detected and quarantines the file. How do I fix/whats wrong??? TIA
This is not trouble with python or .exe - this is antivirus policy. If you want to distribute your app/program you need certificate. Or you can tell your clients to disable AV (very bad solution - your reputation and trust may be trashed). Best way is to redistribute python programs is as-is with .py or (if there is need for compiling) in source format - let the clients do rest of work - open source. If you need closed source app - you buy certificate.

Issue with case sensitivity on windows

The problem is: We developing JAVA code and some of us works in linux and me in windows. As I cloned our repo then it turned out that in the same directory we have a directory in upper case and another one with lower case. Linux it is not a problem of course but in windows yes. It comes from our 3pp code so no renaming allowed. Due to this the repo messed up and files seems to be modified constantly. Do anyone know a solution for such problem?
Thanks
You will have to rename at least one of them consistently. Git allows a decent renaming, so no problems from this side.
I would talk to the 3pp developer about in which hell he wants to burn for naming two directories like this, only distinguishable by case.
I once tried enabling the case-sensitivity in Windows, try this guide:
http://technet.microsoft.com/en-us/library/cc725747.aspx

InstallShield: Uninstalling program not removing all folders

I am using Installshield 2010. I made a basic MSI setup, and I am having a problem with uninstalling.
Uninstalling does not remove all folders.
After a complete install, I then uninstall only to find that there is still a path leftover.
For example, C:\ProgramFiles\CompanyName\Account\User_1234.xml
still remains, while everything else is gone.
The User_1234.xml file is generated by the application, and this file is not normally in the install process. So it makes sense why this file may have some problems getting rid of it (installer side).
At the same time, I would think that it would be removed due to the fact that it is within the CompanyName folder.
Is there any way to specify to get rid of everything inside and including the CompanyName folder?
Thanks for any ideas.
You have a couple problems and I'll address the obvious one first. Yes, Windows Installer default behavior is to not delete user data. This could be files not installed by the installer or files that were modified since the installer modified them. To get the installer to remove them, you must author the RemoveFiles table to teach it which files to remove.
Remove Files Table (Windows Installer)
Now I'll address the less obvious problem. You shouldn't expect your application to be able to write to ProgramFiles at runtime. I don't know what your software does but you should seriously consider this aspect of your application design.

Resources