can't run customtkinter with .exe - python

when I try to convert my python file into .exe using auto-py-to-exe an error occure:
Traceback (most recent call last):
File "Jumper.py", line 5,
in File "C:\Users\Clowny\output\Jumper\customtkinter_init_.py", line 10, in
from .appearance_mode_tracker import AppearanceModeTrackerù
File "C:\Users\Clowny\output\Jumper\customtkinter\appearance_mode_tracker.py", line 3, in
from distutils.version import StrictVersion as Version
ModuleNotFoundError: No module named 'distutils'
I already used the documentation steps but it still doesn't working.
can anyone help me?

Related

How do I fix an error that does not allow Spyder to start?

Traceback (most recent call last):
File "C:\Users\Tony\anaconda3\Scripts\spyder-script.py", line 6, in
from spyder.app.start import main
File "C:\Users\Tony\anaconda3\lib\site-packages\spyder\app\start.py", line 21, in
import ctypes
ModuleNotFoundError: No module named 'ctypes'
I recently updated both python and Spyder to their newest versions. I tried to open Spyder, but came across this error where it cannot launch Spyder.

Culebra tester error: No module named culebratester_client.api.default_api

When I am running python gfxinfo2.py com.android.systemui from this link
I am getting the following message Traceback (most recent call last):
File "gfxinfo2.py", line 13, in from com.dtmilano.android.viewclient import ViewClient File "D:\Softwares\AndroidViewClient-master\AndroidViewClient-master\src\com\dtmilano\android\viewclient.py", line 25, in from culebratester_client import WindowHierarchyChild, WindowHierarchy File "D:\Softwares\AndroidViewClient-master\AndroidViewClient-master\src\com\dtmilano\android\culebratester_client__init__.py", line 18, in from culebratester_client.api.default_api import DefaultApi ImportError: No module named culebratester_client.api.default_api
I am a newbie and don't know much about android and how it works. I need to understand how this works. Kindly help me out. What am I doing wrong over here?
You have to install culebratester-client
pip install culebratester-client

Issue running python script via PyCharm but not Anaconda Prompt

When I run a script in Anaconda Prompt, it works fine.
When I try to run it via PyCharm, I get this error related to the import of pandas.
C:\ProgramData\Anaconda3\python.exe C:/Users/MYUSERNAME/PycharmProjects/CARA/DocumentAccessCheck.py
Traceback (most recent call last):
File "C:/Users/MYUSERNAME/PycharmProjects/CARA/DocumentAccessCheck.py", line 2, in <module>
import pandas as pd
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\__init__.py", line 19, in <module>
"Missing required dependencies {0}".format(missing_dependencies))
ImportError: Missing required dependencies ['numpy']
Process finished with exit code 1
If I try to import numpy and run it via PyCharm I get:
C:\ProgramData\Anaconda3\python.exe C:/Users/MYUSERNAME/PycharmProjects/CARA/DocumentAccessCheck.py
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\core\__init__.py", line 16, in <module>
from . import multiarray
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/MYUSERNAME/PycharmProjects/CARA/DocumentAccessCheck.py", line 2, in <module>
import numpy as np
File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\__init__.py", line 142, in <module>
from . import add_newdocs
File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
from .type_check import *
File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\core\__init__.py", line 26, in <module>
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
Original error was: DLL load failed: The specified module could not be found.
Process finished with exit code 1
Running the same script in Anaconda prompt...no problem
My run configuration in PyCharm uses the Anaconda python distribution?
It should be noted that I am not using envirnoments, just the base Anaconda installation. More worryingly I dont see ANY Conda options in the project settings in PyCharm which a lot of tutorials seem to allude to.
Seems like a problem with the path for your scripts. Are you sure You have included your scripts in the PATH variable? If so are you sure your libraries are downloading/installing in that path?

ImportError: cannot import name main

I recently rearranged some folders around and a python file I used to run is no longer working. When I try to run the file I get:
Traceback (most recent call last):
File "twitter_stream.py", line 9, in <module>
from tweepy import Stream
ImportError: No module named tweepy
I don't understand why I no longer have tweepy installed because I just had it When I do a simple 'pip3 install tweepy' I get:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/pip3", line
7, in <module>
from pip import main
ImportError: cannot import name main
I'm not sure what happened here. Any help would be greatly appreciated

Import error with ruamel.yaml in PyInstaller

I am using a function from the ruamel package.
from ruamel.yaml.scalarstring import PreservedScalarString
But when I built final EXE by PyInstaller, I get this error during the starting application.
Traceback (most recent call last): File "", line 8, in
File
"c:\users\user\appdata\local\temp\pip-build-eo75my\pyInstaller\PyInstaller\loader\pyi_importers.py",
line 270, in load_module File
"./build/win32\app\out00-PYZ.pyz\src.utils.utils", line 14, in
ImportError: No module named ruamel.yaml.scalarstring
I have tried both PyInstaller 2.1
What is the problem?
It was fixed by upgrading to PyInstaller 3.0 version

Categories

Resources