after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def getUser(self, username, **kwargs) -> dict: """Gets the full exposed user object :param username: The username of the user. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make request...
def getUser(self, username, **kwargs) -> dict: """Gets the full exposed user object :param username: The username of the user. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make request...
https://github.com/davidteather/TikTok-Api/issues/338
Invalid Response Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 162, in getData return r.json() File "/home/user/.local/lib/python3.8/site-packages/requests/models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/pytho...
json.decoder.JSONDecodeError
def trending(self, count=30, minCursor=0, maxCursor=0, **kwargs) -> dict: """ Gets trending TikToks """ ( region, language, proxy, maxCount, ) = self.__process_kwargs__(kwargs) response = [] first = True while len(response) < count: if count < ma...
def trending(self, count=30, minCursor=0, maxCursor=0, **kwargs) -> dict: """ Gets trending TikToks """ ( region, language, proxy, maxCount, ) = self.__process_kwargs__(kwargs) response = [] first = True while len(response) < count: if count < ma...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def discover_type(self, search_term, prefix, count=28, **kwargs) -> list: """Returns a list of whatever the prefix type you pass in :param search_term: The string to search by. :param prefix: The type of post to search by user/music/challenge. :param count: The number of posts to return. :param pro...
def discover_type(self, search_term, prefix, count=28, **kwargs) -> list: """Returns a list of whatever the prefix type you pass in :param search_term: The string to search by. :param prefix: The type of post to search by user/music/challenge. :param count: The number of posts to return. :param pro...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def userPosts( self, userID, secUID, count=30, minCursor=0, maxCursor=0, **kwargs ) -> dict: """Returns a dictionary listing TikToks given a user's ID and secUID :param userID: The userID of the user, which TikTok assigns. :param secUID: The secUID of the user, which TikTok assigns. :param count: T...
def userPosts( self, userID, secUID, count=30, minCursor=0, maxCursor=0, **kwargs ) -> dict: """Returns a dictionary listing TikToks given a user's ID and secUID :param userID: The userID of the user, which TikTok assigns. :param secUID: The secUID of the user, which TikTok assigns. :param count: T...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def byUsername(self, username, count=30, **kwargs) -> dict: """Returns a dictionary listing TikToks given a user's username. :param username: The username of the user. :param count: The number of posts to return. Note: seems to only support up to ~2,000 :param language: The 2 letter c...
def byUsername(self, username, count=30, **kwargs) -> dict: """Returns a dictionary listing TikToks given a user's username. :param username: The username of the user. :param count: The number of posts to return. Note: seems to only support up to ~2,000 :param language: The 2 letter c...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def userPage( self, userID, secUID, page_size=30, minCursor=0, maxCursor=0, **kwargs ) -> dict: """Returns a dictionary listing of one page of TikToks given a user's ID and secUID :param userID: The userID of the user, which TikTok assigns. :param secUID: The secUID of the user, which TikTok assigns. ...
def userPage( self, userID, secUID, page_size=30, minCursor=0, maxCursor=0, **kwargs ) -> dict: """Returns a dictionary listing of one page of TikToks given a user's ID and secUID :param userID: The userID of the user, which TikTok assigns. :param secUID: The secUID of the user, which TikTok assigns. ...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def getUserPager(self, username, page_size=30, minCursor=0, maxCursor=0, **kwargs): """Returns a generator to page through a user's feed :param username: The username of the user. :param page_size: The number of posts to return in a page. :param minCursor: time stamp for the earliest TikTok to retrieve...
def getUserPager(self, username, page_size=30, minCursor=0, maxCursor=0, **kwargs): """Returns a generator to page through a user's feed :param username: The username of the user. :param page_size: The number of posts to return in a page. :param minCursor: time stamp for the earliest TikTok to retrieve...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def userLiked( self, userID, secUID, count=30, minCursor=0, maxCursor=0, **kwargs ) -> dict: """Returns a dictionary listing TikToks that a given a user has liked. Note: The user's likes must be public :param userID: The userID of the user, which TikTok assigns. :param secUID: The secUID of the ...
def userLiked( self, userID, secUID, count=30, minCursor=0, maxCursor=0, **kwargs ) -> dict: """Returns a dictionary listing TikToks that a given a user has liked. Note: The user's likes must be public :param userID: The userID of the user, which TikTok assigns. :param secUID: The secUID of the ...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def userLikedbyUsername(self, username, count=30, **kwargs) -> dict: """Returns a dictionary listing TikToks a user has liked by username. Note: The user's likes must be public :param username: The username of the user. :param count: The number of posts to return. Note: seems to on...
def userLikedbyUsername(self, username, count=30, **kwargs) -> dict: """Returns a dictionary listing TikToks a user has liked by username. Note: The user's likes must be public :param username: The username of the user. :param count: The number of posts to return. Note: seems to on...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def bySound(self, id, count=30, offset=0, **kwargs) -> dict: """Returns a dictionary listing TikToks with a specific sound. :param id: The sound id to search by. Note: Can be found in the URL of the sound specific page or with other methods. :param count: The number of posts to return. ...
def bySound(self, id, count=30, offset=0, **kwargs) -> dict: """Returns a dictionary listing TikToks with a specific sound. :param id: The sound id to search by. Note: Can be found in the URL of the sound specific page or with other methods. :param count: The number of posts to return. ...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def getMusicObject(self, id, **kwargs) -> dict: """Returns a music object for a specific sound id. :param id: The sound id to search by. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to ma...
def getMusicObject(self, id, **kwargs) -> dict: """Returns a music object for a specific sound id. :param id: The sound id to search by. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to ma...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def byHashtag(self, hashtag, count=30, offset=0, **kwargs) -> dict: """Returns a dictionary listing TikToks with a specific hashtag. :param hashtag: The hashtag to search by. :param count: The number of posts to return. Note: seems to only support up to ~2,000 :param language: The 2 l...
def byHashtag(self, hashtag, count=30, offset=0, **kwargs) -> dict: """Returns a dictionary listing TikToks with a specific hashtag. :param hashtag: The hashtag to search by. :param count: The number of posts to return. Note: seems to only support up to ~2,000 :param language: The 2 l...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def getHashtagObject(self, hashtag, **kwargs) -> dict: """Returns a hashtag object. :param hashtag: The hashtag to search by. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make requests...
def getHashtagObject(self, hashtag, **kwargs) -> dict: """Returns a hashtag object. :param hashtag: The hashtag to search by. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make requests...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def getHashtagDetails(self, hashtag, **kwargs) -> dict: """Returns a hashtag object. :param hashtag: The hashtag to search by. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make request...
def getHashtagDetails(self, hashtag, **kwargs) -> dict: """Returns a hashtag object. :param hashtag: The hashtag to search by. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make request...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def getRecommendedTikToksByVideoID( self, id, count=30, minCursor=0, maxCursor=0, **kwargs ) -> dict: """Returns a dictionary listing reccomended TikToks for a specific TikTok video. :param id: The id of the video to get suggestions for. :param language: The 2 letter code of the language to return. ...
def getRecommendedTikToksByVideoID( self, id, count=30, minCursor=0, maxCursor=0, **kwargs ) -> dict: """Returns a dictionary listing reccomended TikToks for a specific TikTok video. :param id: The id of the video to get suggestions for. :param language: The 2 letter code of the language to return. ...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def getTikTokById(self, id, **kwargs) -> dict: """Returns a dictionary of a specific TikTok. :param id: The id of the TikTok you want to get the object for. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP addr...
def getTikTokById(self, id, **kwargs) -> dict: """Returns a dictionary of a specific TikTok. :param id: The id of the TikTok you want to get the object for. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP addr...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def discoverHashtags(self, **kwargs) -> dict: """Discover page, consists challenges (hashtags) :param proxy: The IP address of a proxy server. """ ( region, language, proxy, maxCount, ) = self.__process_kwargs__(kwargs) query = {"noUser": 1, "userCount": 30, "sce...
def discoverHashtags(self, **kwargs) -> dict: """Discover page, consists challenges (hashtags) :param proxy: The IP address of a proxy server. """ ( region, language, proxy, maxCount, ) = self.__process_kwargs__(kwargs) query = {"noUser": 1, "userCount": 30, "sce...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def discoverMusic(self, **kwargs) -> dict: """Discover page, consists of music :param proxy: The IP address of a proxy server. """ ( region, language, proxy, maxCount, ) = self.__process_kwargs__(kwargs) query = {"noUser": 1, "userCount": 30, "scene": 0} api_...
def discoverMusic(self, **kwargs) -> dict: """Discover page, consists of music :param proxy: The IP address of a proxy server. """ ( region, language, proxy, maxCount, ) = self.__process_kwargs__(kwargs) query = {"noUser": 1, "userCount": 30, "scene": 0} api_...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def getUser(self, username, **kwargs) -> dict: """Gets the full exposed user object :param username: The username of the user. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make request...
def getUser(self, username, **kwargs) -> dict: """Gets the full exposed user object :param username: The username of the user. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make request...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def getSuggestedUsersbyID( self, userId="6745191554350760966", count=30, **kwargs ) -> list: """Returns suggested users given a different TikTok user. :param userId: The id of the user to get suggestions for. :param count: The amount of users to return. :param proxy: The IP address of a proxy to ma...
def getSuggestedUsersbyID( self, userId="6745191554350760966", count=30, **kwargs ) -> list: """Returns suggested users given a different TikTok user. :param userId: The id of the user to get suggestions for. :param count: The amount of users to return. :param proxy: The IP address of a proxy to ma...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def getSuggestedUsersbyIDCrawler( self, count=30, startingId="6745191554350760966", **kwargs ) -> list: """Crawls for listing of all user objects it can find. :param count: The amount of users to crawl for. :param startingId: The ID of a TikTok user to start at. :param language: The language parame...
def getSuggestedUsersbyIDCrawler( self, count=30, startingId="6745191554350760966", **kwargs ) -> list: """Crawls for listing of all user objects it can find. :param count: The amount of users to crawl for. :param startingId: The ID of a TikTok user to start at. :param language: The language parame...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def getSuggestedHashtagsbyID( self, count=30, userId="6745191554350760966", **kwargs ) -> list: """Returns suggested hashtags given a TikTok user. :param userId: The id of the user to get suggestions for. :param count: The amount of users to return. :param proxy: The IP address of a proxy to make r...
def getSuggestedHashtagsbyID( self, count=30, userId="6745191554350760966", **kwargs ) -> list: """Returns suggested hashtags given a TikTok user. :param userId: The id of the user to get suggestions for. :param count: The amount of users to return. :param proxy: The IP address of a proxy to make r...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def getSuggestedHashtagsbyIDCrawler( self, count=30, startingId="6745191554350760966", **kwargs ) -> list: """Crawls for as many hashtags as it can find. :param count: The amount of users to crawl for. :param startingId: The ID of a TikTok user to start at. :param language: The language parameter. ...
def getSuggestedHashtagsbyIDCrawler( self, count=30, startingId="6745191554350760966", **kwargs ) -> list: """Crawls for as many hashtags as it can find. :param count: The amount of users to crawl for. :param startingId: The ID of a TikTok user to start at. :param language: The language parameter. ...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def getSuggestedMusicbyID( self, count=30, userId="6745191554350760966", **kwargs ) -> list: """Returns suggested music given a TikTok user. :param userId: The id of the user to get suggestions for. :param count: The amount of users to return. :param proxy: The IP address of a proxy to make request...
def getSuggestedMusicbyID( self, count=30, userId="6745191554350760966", **kwargs ) -> list: """Returns suggested music given a TikTok user. :param userId: The id of the user to get suggestions for. :param count: The amount of users to return. :param proxy: The IP address of a proxy to make request...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def getSuggestedMusicIDCrawler( self, count=30, startingId="6745191554350760966", **kwargs ) -> list: """Crawls for hashtags. :param count: The amount of users to crawl for. :param startingId: The ID of a TikTok user to start at. :param language: The language parameter. :param proxy: The IP add...
def getSuggestedMusicIDCrawler( self, count=30, startingId="6745191554350760966", **kwargs ) -> list: """Crawls for hashtags. :param count: The amount of users to crawl for. :param startingId: The ID of a TikTok user to start at. :param language: The language parameter. :param proxy: The IP add...
https://github.com/davidteather/TikTok-Api/issues/319
# Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 373, in byUsername **kwargs, TypeError: userPosts() got multiple values for keyword argument 'proxy'
TypeError
def trending(self, count=30, language="en", region="US", proxy=None) -> dict: """ Gets trending TikToks """ response = [] maxCount = 50 maxCursor = 0 first = True while len(response) < count: if count < maxCount: realCount = count else: realCount ...
def trending(self, count=30, language="en", region="US", proxy=None) -> dict: """ Gets trending TikToks """ response = [] maxCount = 50 maxCursor = 0 first = True while len(response) < count: if count < maxCount: realCount = count else: realCount ...
https://github.com/davidteather/TikTok-Api/issues/251
api.byHashtag('love') {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36', 'accept-encoding': 'gzip, deflate, br', 'accept': 'application/json, text/plain, */*', 'Connection': 'keep-alive', 'authority': 'm.tiktok.com', 'method': 'GET', 'p...
json.decoder.JSONDecodeError
def userPosts( self, userID, secUID, count=30, language="en", region="US", proxy=None ) -> dict: """Returns a dictionary listing TikToks given a user's ID and secUID :param userID: The userID of the user, which TikTok assigns. :param secUID: The secUID of the user, which TikTok assigns. :param coun...
def userPosts( self, userID, secUID, count=30, language="en", region="US", proxy=None ) -> dict: """Returns a dictionary listing TikToks given a user's ID and secUID :param userID: The userID of the user, which TikTok assigns. :param secUID: The secUID of the user, which TikTok assigns. :param coun...
https://github.com/davidteather/TikTok-Api/issues/251
api.byHashtag('love') {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36', 'accept-encoding': 'gzip, deflate, br', 'accept': 'application/json, text/plain, */*', 'Connection': 'keep-alive', 'authority': 'm.tiktok.com', 'method': 'GET', 'p...
json.decoder.JSONDecodeError
def userLiked( self, userID, secUID, count=30, language="en", region="US", proxy=None ) -> dict: """Returns a dictionary listing TikToks that a given a user has liked. Note: The user's likes must be public :param userID: The userID of the user, which TikTok assigns. :param secUID: The secUID of ...
def userLiked( self, userID, secUID, count=30, language="en", region="US", proxy=None ) -> dict: """Returns a dictionary listing TikToks that a given a user has liked. Note: The user's likes must be public :param userID: The userID of the user, which TikTok assigns. :param secUID: The secUID of ...
https://github.com/davidteather/TikTok-Api/issues/251
api.byHashtag('love') {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36', 'accept-encoding': 'gzip, deflate, br', 'accept': 'application/json, text/plain, */*', 'Connection': 'keep-alive', 'authority': 'm.tiktok.com', 'method': 'GET', 'p...
json.decoder.JSONDecodeError
def __add_new_params__(self) -> str: query = { "aid": 1988, "app_name": "tiktok_web", "device_platform": "web", "Referer": "", "user_agent": self.__format_new_params__(self.userAgent), "cookie_enabled": "true", "screen_width": self.width, "screen_heigh...
def __add_new_params__(self) -> str: query = { "aid": 1988, "app_name": "tiktok_web", "device_platform": "web", "referer": "", "user_agent": self.__format_new_params__(self.userAgent), "cookie_enabled": "true", "screen_width": self.width, "screen_heigh...
https://github.com/davidteather/TikTok-Api/issues/251
api.byHashtag('love') {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36', 'accept-encoding': 'gzip, deflate, br', 'accept': 'application/json, text/plain, */*', 'Connection': 'keep-alive', 'authority': 'm.tiktok.com', 'method': 'GET', 'p...
json.decoder.JSONDecodeError
def setup_rbac(self) -> None: """ Setup the client application for the OneFuzz instance. By default, Service Principals do not have access to create client applications in AAD. """ if self.results["client_id"] and self.results["client_secret"]: logger.info("using existing client applica...
def setup_rbac(self) -> None: """ Setup the client application for the OneFuzz instance. By default, Service Principals do not have access to create client applications in AAD. """ if self.results["client_id"] and self.results["client_secret"]: logger.info("using existing client applica...
https://github.com/microsoft/onefuzz/issues/486
(onefuzz) user@Azure:~/onefuzz$ python deploy.py northeurope user_group <redacted>-onefuzz <redacted>@....com INFO:deploy:checking if RBAC already exists INFO:deploy:creating Application registration INFO:deploy:creating service principal Traceback (most recent call last): File "deploy.py", line 902, in <module> main()...
registration.GraphQueryError
def top(opts): if not ENABLED: raise Exception("Could not import tracemalloc") lines = opts.lines seconds = opts.seconds force_start = opts.force_start if opts.socket is None: socket = ipc.find_sockfile() else: socket = opts.socket client = ipc.Client(socket) clie...
def top(opts): if not ENABLED: raise Exception("Could not import tracemalloc") lines = opts.lines seconds = opts.seconds force_start = opts.force_start if opts.socket is None: socket = ipc.find_sockfile() else: socket = opts.socket client = ipc.Client(socket) clie...
https://github.com/qtile/qtile/issues/2032
$ qtile top --force-start $ qtile top Traceback (most recent call last): File "libqtile/scripts/main.py", line 46, in main options.func(options) File "qtile/libqtile/scripts/top.py", line 158, in top force_start=force_start) File "/usr/lib/python3.7/curses/__init__.py", line 102, in wrapper return func(stdscr, *args, *...
_curses.error
def restart(self): argv = [sys.executable] + sys.argv if "--no-spawn" not in argv: argv.append("--no-spawn") state_file = os.path.join(tempfile.gettempdir(), "qtile-state") try: with open(state_file, "wb") as f: pickle.dump(QtileState(self), f, protocol=0) except: # noqa...
def restart(self): argv = [sys.executable] + sys.argv if "--no-spawn" not in argv: argv.append("--no-spawn") buf = io.BytesIO() try: pickle.dump(QtileState(self), buf, protocol=0) except: # noqa: E722 logger.error("Unable to pickle qtile state") argv = [s for s in argv i...
https://github.com/qtile/qtile/issues/1888
2020-08-29 02:09:05,707 ERROR libqtile manager.py:process_key_event():L374 KB command error restart: Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/libqtile/command_interface.py", line 312, in call return SUCCESS, cmd(*args, **kwargs) File "/usr/lib/python3.8/site-packages/libqtile/core/manag...
UnicodeDecodeError
def cmd_get_state(self): """Get pickled state for restarting qtile""" buf = io.BytesIO() pickle.dump(QtileState(self), buf, protocol=0) state = buf.getvalue().decode(errors="backslashreplace") logger.debug("State = ") logger.debug("".join(state.split("\n"))) return state
def cmd_get_state(self): """Get pickled state for restarting qtile""" buf = io.BytesIO() pickle.dump(QtileState(self), buf, protocol=0) state = buf.getvalue().decode() logger.debug("State = ") logger.debug("".join(state.split("\n"))) return state
https://github.com/qtile/qtile/issues/1888
2020-08-29 02:09:05,707 ERROR libqtile manager.py:process_key_event():L374 KB command error restart: Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/libqtile/command_interface.py", line 312, in call return SUCCESS, cmd(*args, **kwargs) File "/usr/lib/python3.8/site-packages/libqtile/core/manag...
UnicodeDecodeError
def __init__(self, **config): base.InLoopPollText.__init__(self, **config) self.add_defaults(Backlight.defaults) self._future = None self.brightness_file = os.path.join( BACKLIGHT_DIR, self.backlight_name, self.brightness_file, ) self.max_brightness_file = os.path.join( ...
def __init__(self, **config): base.InLoopPollText.__init__(self, **config) self.add_defaults(Backlight.defaults) self.future = None self.brightness_file = os.path.join( BACKLIGHT_DIR, self.backlight_name, self.brightness_file, ) self.max_brightness_file = os.path.join( ...
https://github.com/qtile/qtile/issues/1866
Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/libqtile/confreader.py", line 92, in load config = __import__(name) # noqa: F811 File "/home/neworld/.config/qtile/config.py", line 363, in <module> widget.Backlight( File "/usr/lib/python3.8/site-packages/libqtile/utils.py", line 213, in class_...
RuntimeError
def _get_info(self): brightness = self._load_file(self.brightness_file) max_value = self._load_file(self.max_brightness_file) return brightness / max_value
def _get_info(self): brightness = self._load_file(self.brightness_file) info = { "brightness": brightness, "max": self.max_value, } return info
https://github.com/qtile/qtile/issues/1866
Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/libqtile/confreader.py", line 92, in load config = __import__(name) # noqa: F811 File "/home/neworld/.config/qtile/config.py", line 363, in <module> widget.Backlight( File "/usr/lib/python3.8/site-packages/libqtile/utils.py", line 213, in class_...
RuntimeError
def poll(self): try: percent = self._get_info() except RuntimeError as e: return "Error: {}".format(e) return self.format.format(percent=percent)
def poll(self): try: info = self._get_info() except RuntimeError as e: return "Error: {}".format(e) percent = info["brightness"] / info["max"] return self.format.format(percent=percent)
https://github.com/qtile/qtile/issues/1866
Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/libqtile/confreader.py", line 92, in load config = __import__(name) # noqa: F811 File "/home/neworld/.config/qtile/config.py", line 363, in <module> widget.Backlight( File "/usr/lib/python3.8/site-packages/libqtile/utils.py", line 213, in class_...
RuntimeError
def cmd_change_backlight(self, direction): if self._future and not self._future.done(): return new = now = self._get_info() * 100 if direction is ChangeDirection.DOWN: new = max(now - self.step, 0) elif direction is ChangeDirection.UP: new = min(now + self.step, 100) if new !...
def cmd_change_backlight(self, direction): if self.future and not self.future.done(): return info = self._get_info() if not info: new = now = self.max_value else: new = now = info["brightness"] if direction is ChangeDirection.DOWN: # down new = max(now - self.step, 0...
https://github.com/qtile/qtile/issues/1866
Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/libqtile/confreader.py", line 92, in load config = __import__(name) # noqa: F811 File "/home/neworld/.config/qtile/config.py", line 363, in <module> widget.Backlight( File "/usr/lib/python3.8/site-packages/libqtile/utils.py", line 213, in class_...
RuntimeError
def when(self, layout=None, when_floating=True): self._layout = layout self._when_floating = when_floating return self
def when(self, layout=None, when_floating=True): self._layout = layout self._when_floating = when_floating
https://github.com/qtile/qtile/issues/1629
libqtile xcore.py:_xpoll():L277 Got an exception in poll loop Traceback (most recent call last): File "/share/git/qtile/libqtile/backend/x11/xcore.py", line 246, in _xpoll ret = target(event) File "/share/git/qtile/libqtile/backend/x11/xcore.py", line 494, in handle_KeyPress self.qtile.process_key_event(keysym, event....
AttributeError
def _get_time(self): time.tzset() if six.PY3: now = datetime.now(timezone.utc).astimezone() else: now = datetime.now() return (now + self.DELTA).strftime(self.format)
def _get_time(self): time.tzset() now = datetime.now(utc).astimezone() return (now + self.DELTA).strftime(self.format)
https://github.com/qtile/qtile/issues/1258
Traceback (most recent call last): File "/nix/store/vws161bihzlcxbiq17h63wdcdg12vrsc-python2.7-trollius-2.2/lib/python2.7/site-packages/trollius/events.py", line 136, in _run self._callback(*self._args) File "/nix/store/mpi5ibr3xajzqqsaiyb885pywl269bg9-qtile-0.13.0/lib/python2.7/site-packages/libqtile/manager.py", line...
TypeError
def draw(self): self.drawer.clear(self.background or self.bar.background) offset = 0 for i, g in enumerate(self.groups): is_block = self.highlight_method == "block" is_line = self.highlight_method == "line" if not is_line: highlight_color = None bw = self.box_wi...
def draw(self): self.drawer.clear(self.background or self.bar.background) offset = 0 for i, g in enumerate(self.groups): is_block = self.highlight_method == "block" is_line = self.highlight_method == "line" if not is_line: highlight_color = None bw = self.box_wi...
https://github.com/qtile/qtile/issues/790
Traceback (most recent call last): File "/usr/lib64/python3.4/asyncio/events.py", line 120, in _run self._callback(*self._args) File "/usr/lib64/python3.4/site-packages/libqtile/manager.py", line 1156, in f func(*args) File "/usr/lib64/python3.4/site-packages/libqtile/bar.py", line 288, in _actual_draw i.draw() File "/...
UnboundLocalError
def framed(self, border_width, border_color, pad_x, pad_y, highlight_color=None): return TextFrame( self, border_width, border_color, pad_x, pad_y, highlight_color=highlight_color )
def framed( self, border_width, border_color, pad_x, pad_y, highlight_color=None, line_thickness=None, ): return TextFrame( self, border_width, border_color, pad_x, pad_y, highlight_color, line_thickness )
https://github.com/qtile/qtile/issues/790
Traceback (most recent call last): File "/usr/lib64/python3.4/asyncio/events.py", line 120, in _run self._callback(*self._args) File "/usr/lib64/python3.4/site-packages/libqtile/manager.py", line 1156, in f func(*args) File "/usr/lib64/python3.4/site-packages/libqtile/bar.py", line 288, in _actual_draw i.draw() File "/...
UnboundLocalError
def __init__( self, layout, border_width, border_color, pad_x, pad_y, highlight_color=None ): self.layout = layout self.border_width = border_width self.border_color = border_color self.drawer = self.layout.drawer self.highlight_color = highlight_color if isinstance(pad_x, collections.Itera...
def __init__( self, layout, border_width, border_color, pad_x, pad_y, highlight_color, line_thickness, ): self.layout = layout self.border_width = border_width self.border_color = border_color self.drawer = self.layout.drawer self.highlight_color = highlight_color ...
https://github.com/qtile/qtile/issues/790
Traceback (most recent call last): File "/usr/lib64/python3.4/asyncio/events.py", line 120, in _run self._callback(*self._args) File "/usr/lib64/python3.4/site-packages/libqtile/manager.py", line 1156, in f func(*args) File "/usr/lib64/python3.4/site-packages/libqtile/bar.py", line 288, in _actual_draw i.draw() File "/...
UnboundLocalError
def draw(self, x, y, rounded=True, fill=False, line=False, highlight=False): self.drawer.set_source_rgb(self.border_color) opts = [ x, y, self.layout.width + self.pad_left + self.pad_right, self.layout.height + self.pad_top + self.pad_bottom, self.border_width, ] ...
def draw(self, x, y, bar_height=None, rounded=True, fill=False, line=False): self.drawer.set_source_rgb(self.border_color) opts = [ x, y, self.layout.width + self.pad_left + self.pad_right, self.layout.height + self.pad_top + self.pad_bottom, self.border_width, ] ...
https://github.com/qtile/qtile/issues/790
Traceback (most recent call last): File "/usr/lib64/python3.4/asyncio/events.py", line 120, in _run self._callback(*self._args) File "/usr/lib64/python3.4/site-packages/libqtile/manager.py", line 1156, in f func(*args) File "/usr/lib64/python3.4/site-packages/libqtile/bar.py", line 288, in _actual_draw i.draw() File "/...
UnboundLocalError
def draw_fill(self, x, y, rounded=True): self.draw(x, y, rounded=rounded, fill=True)
def draw_fill(self, x, y, rounded=True): self.draw(x, y, rounded, fill=True)
https://github.com/qtile/qtile/issues/790
Traceback (most recent call last): File "/usr/lib64/python3.4/asyncio/events.py", line 120, in _run self._callback(*self._args) File "/usr/lib64/python3.4/site-packages/libqtile/manager.py", line 1156, in f func(*args) File "/usr/lib64/python3.4/site-packages/libqtile/bar.py", line 288, in _actual_draw i.draw() File "/...
UnboundLocalError
def draw_line(self, x, y, highlighted): self.draw(x, y, line=True, highlight=highlighted)
def draw_line(self, x, y, bar_height, rounded=False): self.draw(x, y, bar_height, rounded, line=True)
https://github.com/qtile/qtile/issues/790
Traceback (most recent call last): File "/usr/lib64/python3.4/asyncio/events.py", line 120, in _run self._callback(*self._args) File "/usr/lib64/python3.4/site-packages/libqtile/manager.py", line 1156, in f func(*args) File "/usr/lib64/python3.4/site-packages/libqtile/bar.py", line 288, in _actual_draw i.draw() File "/...
UnboundLocalError
def drawbox( self, offset, text, bordercolor, textcolor, width=None, rounded=False, block=False, line=False, highlighted=False, ): self.layout.text = text self.layout.font_family = self.font self.layout.font_size = self.fontsize self.layout.colour = textcolor ...
def drawbox( self, offset, text, bordercolor, textcolor, highlight_color, line_thickness, rounded=False, block=False, width=None, line=False, ): self.layout.text = text self.layout.font_family = self.font self.layout.font_size = self.fontsize self.layout.colou...
https://github.com/qtile/qtile/issues/790
Traceback (most recent call last): File "/usr/lib64/python3.4/asyncio/events.py", line 120, in _run self._callback(*self._args) File "/usr/lib64/python3.4/site-packages/libqtile/manager.py", line 1156, in f func(*args) File "/usr/lib64/python3.4/site-packages/libqtile/bar.py", line 288, in _actual_draw i.draw() File "/...
UnboundLocalError
def draw(self): self.drawer.clear(self.background or self.bar.background) offset = 0 for i, g in enumerate(self.groups): to_highlight = False is_block = self.highlight_method == "block" is_line = self.highlight_method == "line" bw = self.box_width([g]) if self.grou...
def draw(self): self.drawer.clear(self.background or self.bar.background) offset = 0 for i, g in enumerate(self.groups): is_block = self.highlight_method == "block" is_line = self.highlight_method == "line" if not is_line: highlight_color = None bw = self.box_wi...
https://github.com/qtile/qtile/issues/790
Traceback (most recent call last): File "/usr/lib64/python3.4/asyncio/events.py", line 120, in _run self._callback(*self._args) File "/usr/lib64/python3.4/site-packages/libqtile/manager.py", line 1156, in f func(*args) File "/usr/lib64/python3.4/site-packages/libqtile/bar.py", line 288, in _actual_draw i.draw() File "/...
UnboundLocalError
def drawbox( self, offset, text, bordercolor, textcolor, width=None, rounded=False, block=False, icon=None, ): self.drawtext(text, textcolor, width) icon_padding = (self.icon_size + 4) if icon else 0 padding_x = [self.padding_x + icon_padding, self.padding_x] framed...
def drawbox( self, offset, text, bordercolor, textcolor, rounded=False, block=False, width=None, icon=None, ): self.drawtext(text, textcolor, width) icon_padding = (self.icon_size + 4) if icon else 0 padding_x = [self.padding_x + icon_padding, self.padding_x] framed...
https://github.com/qtile/qtile/issues/790
Traceback (most recent call last): File "/usr/lib64/python3.4/asyncio/events.py", line 120, in _run self._callback(*self._args) File "/usr/lib64/python3.4/site-packages/libqtile/manager.py", line 1156, in f func(*args) File "/usr/lib64/python3.4/site-packages/libqtile/bar.py", line 288, in _actual_draw i.draw() File "/...
UnboundLocalError
def draw(self): self.drawer.clear(self.background or self.bar.background) offset = 0 for w in self.bar.screen.group.windows: state = "" if w is None: pass elif w.maximized: state = "[] " elif w.minimized: state = "_ " elif w.floati...
def draw(self): self.drawer.clear(self.background or self.bar.background) offset = 0 for w in self.bar.screen.group.windows: state = "" if w is None: pass elif w.maximized: state = "[] " elif w.minimized: state = "_ " elif w.floati...
https://github.com/qtile/qtile/issues/790
Traceback (most recent call last): File "/usr/lib64/python3.4/asyncio/events.py", line 120, in _run self._callback(*self._args) File "/usr/lib64/python3.4/site-packages/libqtile/manager.py", line 1156, in f func(*args) File "/usr/lib64/python3.4/site-packages/libqtile/bar.py", line 288, in _actual_draw i.draw() File "/...
UnboundLocalError
def alloc_color(self, color): """ Flexible color allocation. """ try: return self.conn.conn.core.AllocNamedColor(self.cid, len(color), color).reply() except xcffib.xproto.NameError: def x8to16(i): return 0xFFFF * (i & 0xFF) // 0xFF r = x8to16(int(color[-6] + col...
def alloc_color(self, color): """ Flexible color allocation. """ if color.startswith("#"): if len(color) != 7: raise ValueError("Invalid color: %s" % color) def x8to16(i): return 0xFFFF * (i & 0xFF) // 0xFF r = x8to16(int(color[1] + color[2], 16)) ...
https://github.com/qtile/qtile/issues/394
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/libqtile/manager.py", line 585, in _xpoll r = h(e) File "/usr/lib/python2.7/dist-packages/libqtile/manager.py", line 892, in handle_UnmapNotify self.unmanage(e.window) File "/usr/lib/python2.7/dist-packages/libqtile/manager.py", line 406, in unma...
xcb.xproto.NameError
def _receive(self): c = self.subclient ret = [] try: ret.append(self._receive_one(c)) except Empty: pass while c.connection is not None and c.connection.can_read(timeout=0): ret.append(self._receive_one(c)) return any(ret)
def _receive(self): c = self.subclient ret = [] try: ret.append(self._receive_one(c)) except Empty: pass if c.connection is not None: while c.connection.can_read(timeout=0): ret.append(self._receive_one(c)) return any(ret)
https://github.com/celery/kombu/issues/659
Traceback (most recent call last): File "/venv/lib/python3.4/site-packages/celery/worker/worker.py", line 203, in start self.blueprint.start(self) File "/venv/lib/python3.4/site-packages/celery/bootsteps.py", line 119, in start step.start(parent) File "/venv/lib/python3.4/site-packages/celery/bootsteps.py", line 370, i...
AttributeError
def _shrink_down(self, collect=True): class Noop: def __enter__(self): pass def __exit__(self, type, value, traceback): pass resource = self._resource # Items to the left are last recently used, so we remove those first. with getattr(resource, "mutex", Noop()): ...
def _shrink_down(self, collect=True): resource = self._resource # Items to the left are last recently used, so we remove those first. with resource.mutex: while len(resource.queue) > self.limit: R = resource.queue.popleft() if collect: self.collect_resource(R)...
https://github.com/celery/kombu/issues/741
Traceback (most recent call last): File "/home/fga/workspace/kombu_eventlet_bug/.virtualenv/lib/python3.4/site-packages/gunicorn/workers/async.py", line 56, in handle self.handle_request(listener_name, req, client, addr) File "/home/fga/workspace/kombu_eventlet_bug/.virtualenv/lib/python3.4/site-packages/gunicorn/worke...
AttributeError
def __lt__(self, other): """Implement the less-than operand.""" if hasattr(other, "alphabet"): if not Alphabet._check_type_compatible([self.alphabet, other.alphabet]): warnings.warn( "Incompatible alphabets {0!r} and {1!r}".format( self.alphabet, other.alp...
def __lt__(self, other): """Implement the less-than operand.""" if hasattr(other, "alphabet"): if not Alphabet._check_type_compatible([self.alphabet, other.alphabet]): warnings.warn( "Incompatible alphabets {0!r} and {1!r}".format( self.alphabet, other.alp...
https://github.com/biopython/biopython/issues/1750
from Bio.Seq import Seq 'A' > Seq('A') False Seq('A') > 'A' Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: '>' not supported between instances of 'Seq' and 'str'
TypeError
def __le__(self, other): """Implement the less-than or equal operand.""" if hasattr(other, "alphabet"): if not Alphabet._check_type_compatible([self.alphabet, other.alphabet]): warnings.warn( "Incompatible alphabets {0!r} and {1!r}".format( self.alphabet, ...
def __le__(self, other): """Implement the less-than or equal operand.""" if hasattr(other, "alphabet"): if not Alphabet._check_type_compatible([self.alphabet, other.alphabet]): warnings.warn( "Incompatible alphabets {0!r} and {1!r}".format( self.alphabet, ...
https://github.com/biopython/biopython/issues/1750
from Bio.Seq import Seq 'A' > Seq('A') False Seq('A') > 'A' Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: '>' not supported between instances of 'Seq' and 'str'
TypeError
def __lt__(self, other): """Implement the less-than operand.""" if hasattr(other, "alphabet"): if not Alphabet._check_type_compatible([self.alphabet, other.alphabet]): warnings.warn( "Incompatible alphabets {0!r} and {1!r}".format( self.alphabet, other.alp...
def __lt__(self, other): """Implement the less-than operand.""" if hasattr(other, "alphabet"): if not Alphabet._check_type_compatible([self.alphabet, other.alphabet]): warnings.warn( "Incompatible alphabets {0!r} and {1!r}".format( self.alphabet, other.alp...
https://github.com/biopython/biopython/issues/1750
from Bio.Seq import Seq 'A' > Seq('A') False Seq('A') > 'A' Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: '>' not supported between instances of 'Seq' and 'str'
TypeError
def __le__(self, other): """Implement the less-than or equal operand.""" if hasattr(other, "alphabet"): if not Alphabet._check_type_compatible([self.alphabet, other.alphabet]): warnings.warn( "Incompatible alphabets {0!r} and {1!r}".format( self.alphabet, ...
def __le__(self, other): """Implement the less-than or equal operand.""" if hasattr(other, "alphabet"): if not Alphabet._check_type_compatible([self.alphabet, other.alphabet]): warnings.warn( "Incompatible alphabets {0!r} and {1!r}".format( self.alphabet, ...
https://github.com/biopython/biopython/issues/1750
from Bio.Seq import Seq 'A' > Seq('A') False Seq('A') > 'A' Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: '>' not supported between instances of 'Seq' and 'str'
TypeError
def admin_upgrade(): """Display any available upgrades and option to upgrade""" if not utils_general.user_has_permission("edit_settings"): return redirect(url_for("routes_general.home")) misc = Misc.query.first() if not internet( host=misc.net_test_ip, port=misc.net_test_port, timeout=m...
def admin_upgrade(): """Display any available upgrades and option to upgrade""" if not utils_general.user_has_permission("edit_settings"): return redirect(url_for("routes_general.home")) misc = Misc.query.first() if not internet( host=misc.net_test_ip, port=misc.net_test_port, timeout=m...
https://github.com/kizniche/Mycodo/issues/869
Traceback (most recent call last): File "/home/pi/Mycodo/env/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/home/pi/Mycodo/env/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/p...
jinja2.exceptions.UndefinedError
def read_last_influxdb(device_id, measure_type, duration_sec=None): """ Query Influxdb for the last entry. example: read_last_influxdb('00000001', 'temperature') :return: list of time and value :rtype: list :param device_id: What device_id tag to query in the Influxdb database...
def read_last_influxdb(device_id, measure_type, duration_sec=None): """ Query Influxdb for the last entry. example: read_last_influxdb('00000001', 'temperature') :return: list of time and value :rtype: list :param device_id: What device_id tag to query in the Influxdb database...
https://github.com/kizniche/Mycodo/issues/405
2018-02-13 04:49:13,135 - mycodo.math_3 - ERROR - Run Error: HTTPConnectionPool(host='localhost', port=8086): Max retries exceeded with url: /query?db=mycodo_db&amp;q=SELECT+value+FROM+temperature+WHERE+device_id%3D%2773103a85-ca36-4f55-9443-8b18f13792fa%27+AND+time+%3E+now%28%29+-+60s (Caused by NewConnectionError('<u...
ConnectionRefusedError
def sensor_add(form_add_sensor): action = "{action} {controller}".format( action=gettext("Add"), controller=gettext("Sensor") ) error = [] if form_add_sensor.validate(): for _ in range(0, form_add_sensor.numberSensors.data): new_sensor = Sensor() new_sensor.devic...
def sensor_add(form_add_sensor): action = "{action} {controller}".format( action=gettext("Add"), controller=gettext("Sensor") ) error = [] if form_add_sensor.validate(): for _ in range(0, form_add_sensor.numberSensors.data): new_sensor = Sensor() new_sensor.devic...
https://github.com/kizniche/Mycodo/issues/304
Error 500: Internal Server Error Something bad happened but it's probably not your fault. Letting the developers know about these issues is crucial to supporting Mycodo. Please submit a new issue on GitHub with the following error traceback (copy the entire traceback): Error (Full Traceback): Traceback (most recent ...
UndefinedError
def get_measurement(self): """Gets the pwm""" try: pi = pigpio.pi() read_pwm = ReadPWM(pi, self.pin, self.weighting) except Exception: return try: frequency = read_pwm.frequency() pulse_width = read_pwm.pulse_width() duty_cycle = read_pwm.duty_cycle() ...
def get_measurement(self): """Gets the pwm""" pi = pigpio.pi() try: read_pwm = ReadPWM(pi, self.pin, self.weighting) frequency = read_pwm.frequency() pulse_width = read_pwm.pulse_width() duty_cycle = read_pwm.duty_cycle() return frequency, int(pulse_width + 0.5), duty...
https://github.com/kizniche/Mycodo/issues/304
Error 500: Internal Server Error Something bad happened but it's probably not your fault. Letting the developers know about these issues is crucial to supporting Mycodo. Please submit a new issue on GitHub with the following error traceback (copy the entire traceback): Error (Full Traceback): Traceback (most recent ...
UndefinedError
def get_measurement(self): """Gets the rpm""" try: pi = pigpio.pi() read_rpm = ReadRPM(pi, self.pin, self.weighting, self.rpm_pulses_per_rev) except Exception: return 0 try: rpm = read_rpm.RPM() if rpm: return int(rpm + 0.5) except Exception: ...
def get_measurement(self): """Gets the rpm""" pi = pigpio.pi() try: read_rpm = ReadRPM(pi, self.pin, self.weighting, self.rpm_pulses_per_rev) rpm = read_rpm.RPM() if rpm: return int(rpm + 0.5) finally: p.cancel() pi.stop() return None
https://github.com/kizniche/Mycodo/issues/304
Error 500: Internal Server Error Something bad happened but it's probably not your fault. Letting the developers know about these issues is crucial to supporting Mycodo. Please submit a new issue on GitHub with the following error traceback (copy the entire traceback): Error (Full Traceback): Traceback (most recent ...
UndefinedError
def upgrade(): with op.batch_alter_table("sensor") as batch_op: batch_op.add_column(sa.Column("cmd_command", sa.TEXT)) batch_op.add_column(sa.Column("cmd_measurement", sa.TEXT)) batch_op.add_column(sa.Column("cmd_measurement_units", sa.TEXT)) with op.batch_alter_table("pid") as batch_op...
def upgrade(): with op.batch_alter_table("sensor") as batch_op: batch_op.add_column(sa.Column("cmd_command", sa.TEXT)) batch_op.add_column(sa.Column("cmd_measurement", sa.TEXT)) batch_op.add_column(sa.Column("cmd_measurement_units", sa.TEXT))
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def downgrade(): with op.batch_alter_table("sensor") as batch_op: batch_op.drop_column("cmd_command") batch_op.drop_column("cmd_measurement") batch_op.drop_column("cmd_measurement_units") with op.batch_alter_table("pid") as batch_op: batch_op.add_column( sa.Column("s...
def downgrade(): with op.batch_alter_table("sensor") as batch_op: batch_op.drop_column("cmd_command") batch_op.drop_column("cmd_measurement") batch_op.drop_column("cmd_measurement_units")
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def __init__(self, ready, lcd_id): threading.Thread.__init__(self) self.logger = logging.getLogger("mycodo.lcd_{id}".format(id=lcd_id)) self.running = False self.thread_startup_timer = timeit.default_timer() self.thread_shutdown_timer = 0 self.ready = ready self.flash_lcd_on = False se...
def __init__(self, ready, lcd_id): threading.Thread.__init__(self) self.logger = logging.getLogger("mycodo.lcd_{id}".format(id=lcd_id)) self.running = False self.thread_startup_timer = timeit.default_timer() self.thread_shutdown_timer = 0 self.ready = ready self.flash_lcd_on = False se...
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def create_lcd_line(self, last_measurement_success, i): try: if last_measurement_success: # Determine if the LCD output will have a value unit measurement = "" if self.lcd_line[i]["measurement"] == "setpoint": pid = db_retrieve_table_daemon(PID, unique_id=...
def create_lcd_line(self, last_measurement_success, i): try: if last_measurement_success: # Determine if the LCD output will have a value unit measurement = "" if self.lcd_line[i]["measurement"] == "setpoint": pid = db_retrieve_table_daemon(PID, unique_id=...
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def initialize_values(self): """Set PID parameters""" pid = db_retrieve_table_daemon(PID, device_id=self.pid_id) self.is_activated = pid.is_activated self.is_held = pid.is_held self.is_paused = pid.is_paused self.pid_type = pid.pid_type self.method_id = pid.method_id self.direction = pid...
def initialize_values(self): """Set PID parameters""" pid = db_retrieve_table_daemon(PID, device_id=self.pid_id) self.is_activated = pid.is_activated self.is_held = pid.is_held self.is_paused = pid.is_paused self.pid_type = pid.pid_type self.measurement = pid.measurement self.method_id =...
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def pid_mod(form_mod_pid_base, form_mod_pid_pwm, form_mod_pid_relay): action = "{action} {controller}".format( action=gettext("Modify"), controller=gettext("PID") ) error = [] if not form_mod_pid_base.validate(): flash_form_errors(form_mod_pid_base) try: sensor_unique_id = ...
def pid_mod(form_mod_pid_base, form_mod_pid_pwm, form_mod_pid_relay): action = "{action} {controller}".format( action=gettext("Modify"), controller=gettext("PID") ) error = [] if not form_mod_pid_base.validate(): flash_form_errors(form_mod_pid_base) try: sensor = Sensor.que...
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def has_required_pid_values(pid_id): pid = PID.query.filter(PID.id == pid_id).first() error = False if not pid.measurement: flash(gettext("A valid Measurement is required"), "error") error = True sensor_unique_id = pid.measurement.split(",")[0] sensor = Sensor.query.filter(Sensor.uni...
def has_required_pid_values(pid_id): pid = PID.query.filter(PID.id == pid_id).first() error = False # TODO: Add more settings-checks before allowing controller to be activated if not pid.sensor_id: flash(gettext("A valid sensor is required"), "error") error = True if not pid.measurem...
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def pid_activate(pid_id): if has_required_pid_values(pid_id): return redirect(url_for("page_routes.page_pid")) action = "{action} {controller}".format( action=gettext("Actuate"), controller=gettext("PID") ) error = [] # Check if associated sensor is activated pid = PID.query.fi...
def pid_activate(pid_id): if has_required_pid_values(pid_id): return redirect(url_for("page_routes.page_pid")) action = "{action} {controller}".format( action=gettext("Actuate"), controller=gettext("PID") ) error = [] # Check if associated sensor is activated pid = PID.query.fi...
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def sensor_add(form_add_sensor): action = "{action} {controller}".format( action=gettext("Add"), controller=gettext("Sensor") ) error = [] if form_add_sensor.validate(): for _ in range(0, form_add_sensor.numberSensors.data): new_sensor = Sensor() new_sensor.devic...
def sensor_add(form_add_sensor): action = "{action} {controller}".format( action=gettext("Add"), controller=gettext("Sensor") ) error = [] if form_add_sensor.validate(): for _ in range(0, form_add_sensor.numberSensors.data): new_sensor = Sensor() new_sensor.devic...
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def sensor_deactivate_associated_controllers(sensor_id): sensor_unique_id = Sensor.query.filter(Sensor.id == sensor_id).first().unique_id pid = PID.query.filter(PID.is_activated == True).all() for each_pid in pid: if sensor_unique_id in each_pid.measurement: controller_activate_deactivat...
def sensor_deactivate_associated_controllers(sensor_id): pid = ( PID.query.filter(PID.sensor_id == sensor_id).filter(PID.is_activated == True) ).all() if pid: for each_pid in pid: controller_activate_deactivate("deactivate", "PID", each_pid.id) lcd = LCD.query.filter(LCD.is_a...
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def page_graph(): """ Generate custom graphs to display sensor data retrieved from influxdb. """ # Create form objects form_add_graph = flaskforms.GraphAdd() form_add_gauge = flaskforms.GaugeAdd() form_mod_graph = flaskforms.GraphMod() form_mod_gauge = flaskforms.GaugeMod() form_del_...
def page_graph(): """ Generate custom graphs to display sensor data retrieved from influxdb. """ # Create form objects form_add_graph = flaskforms.GraphAdd() form_add_gauge = flaskforms.GaugeAdd() form_mod_graph = flaskforms.GraphMod() form_mod_gauge = flaskforms.GaugeMod() form_del_...
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def page_lcd(): """Display LCD output settings""" lcd = LCD.query.all() pid = PID.query.all() relay = Relay.query.all() sensor = Sensor.query.all() display_order = csv_to_list_of_int(DisplayOrder.query.first().lcd) form_add_lcd = flaskforms.LCDAdd() form_mod_lcd = flaskforms.LCDMod() ...
def page_lcd(): """Display LCD output settings""" lcd = LCD.query.all() pid = PID.query.all() relay = Relay.query.all() sensor = Sensor.query.all() display_order = csv_to_list_of_int(DisplayOrder.query.first().lcd) form_add_lcd = flaskforms.LCDAdd() form_mod_lcd = flaskforms.LCDMod() ...
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def page_pid(): """Display PID settings""" method = Method.query.all() pids = PID.query.all() relay = Relay.query.all() sensor = Sensor.query.all() sensor_choices = flaskutils.choices_sensors(sensor) display_order = csv_to_list_of_int(DisplayOrder.query.first().pid) form_add_pid = fla...
def page_pid(): """Display PID settings""" pids = PID.query.all() relay = Relay.query.all() sensor = Sensor.query.all() display_order = csv_to_list_of_int(DisplayOrder.query.first().pid) form_add_pid = flaskforms.PIDAdd() form_mod_pid_base = flaskforms.PIDModBase() form_mod_pid_relay =...
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def get_measurement(self): """Determine if the return value of the command is a number""" out, _, _ = cmd_output(self.command) if str_is_float(out): return float(out) else: return None
def get_measurement(self): """Determine if the return value of the command is a number""" out, err, status = cmd_output(self.command) if str_is_float(out): return float(out) else: return None
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def __init__(self, address, bus): super(TSL2591Sensor, self).__init__() self.logger = logging.getLogger( "mycodo.sensors.tsl2591_{bus}_{add}".format(bus=bus, add=address) ) self.i2c_address = address self.i2c_bus = bus self._lux = 0.0 self.tsl = tsl2591.Tsl2591(i2c_bus=self.i2c_bus, ...
def __init__(self, address, bus): super(TSL2591Sensor, self).__init__() self.logger = logging.getLogger( "mycodo.sensors.tsl2591_{bus}_{add}".format(bus=bus, add=address) ) self.i2c_address = address self.i2c_bus = bus self._lux = 0.0
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def get_measurement(self): """Gets the TSL2591's lux""" full, ir = ( self.tsl.get_full_luminosity() ) # read raw values (full spectrum and ir spectrum) lux = self.tsl.calculate_lux(full, ir) # convert raw values to lux return lux
def get_measurement(self): """Gets the TSL2591's lux""" tsl = tsl2591.Tsl2591(i2c_bus=self.i2c_bus, sensor_address=self.i2c_address) full, ir = ( tsl.get_full_luminosity() ) # read raw values (full spectrum and ir spectrum) lux = tsl.calculate_lux(full, ir) # convert raw values to lux ...
https://github.com/kizniche/Mycodo/issues/254
2017-06-07 11:03:18,941 - mycodo.sensors.raspi - ERROR - RaspberryPiCPUTemp.get_measurement() method raised IOError: [Errno 24] Too many open files: '/sys/class/thermal/thermal_zone0/temp' 2017-06-07 11:03:20,138 - mycodo.pid_1 - ERROR - Run Error: (sqlite3.OperationalError) unable to open database file ========= Remo...
IOError
def read(self): data, bad_format = None, False try: data = json.loads(self.file.read_text()) logging.debug("got {} from %s".format(self.msg), *self.msg_args) return data except ValueError: bad_format = True except Exception: # noqa pass if bad_format: ...
def read(self): data, bad_format = None, False try: data = json.loads(self.file.read_text()) logging.debug("got {} from %s".format(self.msg), *self.msg_args) return data except ValueError: bad_format = True except Exception: # noqa pass if bad_format: ...
https://github.com/pypa/virtualenv/issues/1938
Traceback (most recent call last): File "C:\Users\runneradmin\.virtualenvs\pipenv-6Kr0DpZ2\lib\site-packages\virtualenv\seed\embed\via_app_data\via_app_data.py", line 94, in _get do_periodic_update=self.periodic_update, File "C:\Users\runneradmin\.virtualenvs\pipenv-6Kr0DpZ2\lib\site-packages\virtualenv\seed\wheels\acq...
PermissionError
def generate_draft_news(): root = Path(__file__).parents[1] new = subprocess.check_output( [sys.executable, "-m", "towncrier", "--draft", "--version", "NEXT"], cwd=root, universal_newlines=True, ) (root / "docs" / "_draft.rst").write_text( "" if "No significant changes" i...
def generate_draft_news(): root = Path(__file__).parents[1] exe = Path(sys.executable) towncrier = exe.with_name("towncrier{}".format(exe.suffix)) new = subprocess.check_output( [str(towncrier), "--draft", "--version", "NEXT"], cwd=root, universal_newlines=True, ) (root /...
https://github.com/pypa/virtualenv/issues/1847
$ sphinx-build docs out Running Sphinx v2.4.4 Configuration error: There is a programmable error in your configuration file: Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/sphinx/config.py", line 348, in eval_config_file execfile_(filename, namespace) File "/usr/lib/python3.8/site-packages/...
FileNotFoundError
def run(): """print debug data about the virtual environment""" try: from collections import OrderedDict except ImportError: # pragma: no cover # this is possible if the standard library cannot be accessed # noinspection PyPep8Naming OrderedDict = dict # pragma: no cover ...
def run(): """print debug data about the virtual environment""" try: from collections import OrderedDict except ImportError: # pragma: no cover # this is possible if the standard library cannot be accessed # noinspection PyPep8Naming OrderedDict = dict # pragma: no cover ...
https://github.com/pypa/virtualenv/issues/1810
-bash-4.2# virtualenv --version Traceback (most recent call last): File "/usr/bin/virtualenv", line 5, in <module> from virtualenv.__main__ import run_with_catch File "/usr/lib/python2.7/site-packages/virtualenv/__init__.py", line 3, in <module> from .run import cli_run File "/usr/lib/python2.7/site-packages/virtualenv...
AttributeError
def __init__(self): def u(v): return v.decode("utf-8") if isinstance(v, bytes) else v def abs_path(v): return ( None if v is None else os.path.abspath(v) ) # unroll relative elements from path (e.g. ..) # qualifies the python self.platform = u(sys.platform) sel...
def __init__(self): def u(v): return v.decode("utf-8") if isinstance(v, bytes) else v def abs_path(v): return ( None if v is None else os.path.abspath(v) ) # unroll relative elements from path (e.g. ..) # qualifies the python self.platform = u(sys.platform) sel...
https://github.com/pypa/virtualenv/issues/1810
-bash-4.2# virtualenv --version Traceback (most recent call last): File "/usr/bin/virtualenv", line 5, in <module> from virtualenv.__main__ import run_with_catch File "/usr/lib/python2.7/site-packages/virtualenv/__init__.py", line 3, in <module> from .run import cli_run File "/usr/lib/python2.7/site-packages/virtualenv...
AttributeError
def find_spec(self, fullname, path, target=None): if fullname in _DISTUTILS_PATCH and self.fullname is None: with self.lock: self.fullname = fullname try: spec = find_spec(fullname, path) if spec is not None: # https://www.python.or...
def find_spec(self, fullname, path, target=None): if fullname in _DISTUTILS_PATCH and self.fullname is None: with self.lock: self.fullname = fullname try: spec = find_spec(fullname, path) if spec is not None: # https://www.python.or...
https://github.com/pypa/virtualenv/issues/1715
import setuptools Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 656, in _load_unlocked File "<frozen importlib....
AttributeError
def _run_parser(self, class_n, key, name): test_name = {"creator": "can_create", "activators": "supports"} func_name = test_name.get(key) try: if func_name is not None: prev = getattr(class_n, func_name) def a(*args, **kwargs): prev(*args, **kwargs) ...
def _run_parser(self, class_n, key, name): test_name = {"creator": "can_create", "activators": "supports"} func_name = test_name.get(key) try: if func_name is not None: prev = getattr(class_n, func_name) def a(*args, **kwargs): prev(*args, **kwargs) ...
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def a(*args, **kwargs): prev(*args, **kwargs) if key == "activators": return True elif key == "creator": if name == "venv": from virtualenv.create.via_global_ref.venv import ViaGlobalRefMeta meta = ViaGlobalRefMeta() meta.symlink_error = None ...
def a(*args, **kwargs): prev(*args, **kwargs) if key == "activators": return True elif key == "creator": if name == "venv": from virtualenv.create.via_global_ref.venv import Meta return Meta(True, True) from virtualenv.create.via_global_ref.builtin.via_global...
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def run(args=None, options=None): start = datetime.now() from virtualenv.error import ProcessCallFailed from virtualenv.run import cli_run if args is None: args = sys.argv[1:] try: session = cli_run(args, options) logging.warning(LogSession(session, start)) except Proces...
def run(args=None, options=None): start = datetime.now() from virtualenv.error import ProcessCallFailed from virtualenv.run import cli_run if args is None: args = sys.argv[1:] try: session = cli_run(args, options) logging.warning(LogSession(session, start)) except Proces...
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def __init__(self, src, must_symlink, must_copy): self.must_symlink = must_symlink self.must_copy = must_copy self.src = src try: self.exists = src.exists() except OSError: self.exists = False self._can_read = None if self.exists else False self._can_copy = None if self.exist...
def __init__(self, src, must_symlink, must_copy): self.must_symlink = must_symlink self.must_copy = must_copy self.src = src self.exists = src.exists() self._can_read = None if self.exists else False self._can_copy = None if self.exists else False self._can_symlink = None if self.exists else...
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def run(self, creator, symlinks): bin_dir = self.dest(creator, self.src).parent dest = bin_dir / self.base method = self.method(symlinks) method(self.src, dest) if not symlinks: make_exe(dest) for extra in self.aliases: link_file = bin_dir / extra if link_file.exists(): ...
def run(self, creator, symlinks): bin_dir = self.dest(creator, self.src).parent dest = bin_dir / self.base method = self.method(symlinks) method(self.src, dest) make_exe(dest) for extra in self.aliases: link_file = bin_dir / extra if link_file.exists(): link_file.unli...
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def __repr__(self): return "{}(src={}, alias={})".format( self.__class__.__name__, self.src, self.aliases )
def __repr__(self): return "{}(src={})".format(self.__class__.__name__, self.src)
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def can_create(cls, interpreter): """By default all built-in methods assume that if we can describe it we can create it""" # first we must be able to describe it if cls.can_describe(interpreter): meta = cls.setup_meta(interpreter) if meta is not None and meta: for src in cls.sour...
def can_create(cls, interpreter): """By default all built-in methods assume that if we can describe it we can create it""" # first we must be able to describe it if cls.can_describe(interpreter): sources = [] can_copy = True can_symlink = fs_supports_symlink() for src in cls....
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def can_create(cls, interpreter): if interpreter.has_venv: meta = ViaGlobalRefMeta() if interpreter.platform == "win32" and interpreter.version_info.major == 3: meta = handle_store_python(meta, interpreter) return meta return None
def can_create(cls, interpreter): if interpreter.has_venv: return Meta(can_symlink=fs_supports_symlink(), can_copy=True) return None
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def propose_interpreters(spec, app_data): # 1. if it's a path and exists if spec.path is not None: try: os.lstat( spec.path ) # Windows Store Python does not work with os.path.exists, but does for os.lstat except OSError: if spec.is_abs: ...
def propose_interpreters(spec, app_data): # 1. if it's an absolute path and exists, use that if spec.is_abs and os.path.exists(spec.path): yield PythonInfo.from_exe(spec.path, app_data), True # 2. try with the current yield PythonInfo.current_system(app_data), True # 3. otherwise fallback ...
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def _get_via_file_cache(cls, py_info_cache, app_data, resolved_path, exe): key = sha256( str(resolved_path).encode("utf-8") if PY3 else str(resolved_path) ).hexdigest() py_info = None resolved_path_text = ensure_text(str(resolved_path)) try: resolved_path_modified_timestamp = resolve...
def _get_via_file_cache(cls, py_info_cache, app_data, resolved_path, exe): key = sha256( str(resolved_path).encode("utf-8") if PY3 else str(resolved_path) ).hexdigest() py_info = None resolved_path_text = ensure_text(str(resolved_path)) resolved_path_modified_timestamp = resolved_path.stat()...
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def _find_possible_folders(self, inside_folder): candidate_folder = OrderedDict() executables = OrderedDict() executables[os.path.realpath(self.executable)] = None executables[self.executable] = None executables[os.path.realpath(self.original_executable)] = None executables[self.original_executa...
def _find_possible_folders(self, inside_folder): candidate_folder = OrderedDict() executables = OrderedDict() executables[os.path.realpath(self.executable)] = None executables[self.executable] = None executables[os.path.realpath(self.original_executable)] = None executables[self.original_executa...
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def from_string_spec(cls, string_spec): impl, major, minor, micro, arch, path = None, None, None, None, None, None if os.path.isabs(string_spec): path = string_spec else: ok = False match = re.match(PATTERN, string_spec) if match: def _int_or_none(val): ...
def from_string_spec(cls, string_spec): impl, major, minor, micro, arch, path = None, None, None, None, None, None if os.path.isabs(string_spec): path = string_spec else: ok = False match = re.match(PATTERN, string_spec) if match: def _int_or_none(val): ...
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def generate_names(self): if self.implementation is None: return impls = OrderedDict() if self.implementation: # first consider implementation as it is impls[self.implementation] = False if fs_is_case_sensitive(): # for case sensitive file systems consider lower a...
def generate_names(self): impls = OrderedDict() if self.implementation: # first consider implementation as it is impls[self.implementation] = False if fs_is_case_sensitive(): # for case sensitive file systems consider lower and upper case versions too # trivia: Ma...
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def __init__(self, interpreter, parser): creators, self.key_to_meta, self.describe, self.builtin_key = self.for_interpreter( interpreter ) super(CreatorSelector, self).__init__(interpreter, parser, "creator", creators)
def __init__(self, interpreter, parser): creators, self.key_to_meta, self.describe, self.builtin_key = self.for_interpreter( interpreter ) if not creators: raise RuntimeError("No virtualenv implementation for {}".format(interpreter)) super(CreatorSelector, self).__init__(interpreter, par...
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def for_interpreter(cls, interpreter): key_to_class, key_to_meta, builtin_key, describe = OrderedDict(), {}, None, None errored = defaultdict(list) for key, creator_class in cls.options("virtualenv.create").items(): if key == "builtin": raise RuntimeError("builtin creator is a reserved n...
def for_interpreter(cls, interpreter): key_to_class, key_to_meta, builtin_key, describe = OrderedDict(), {}, None, None for key, creator_class in cls.options("virtualenv.create").items(): if key == "builtin": raise RuntimeError("builtin creator is a reserved name") meta = creator_cla...
https://github.com/pypa/virtualenv/issues/1709
(venv) C:\Users\IEUser\astpretty>virtualenv v -vvv --with-traceback 390 setup logging to NOTSET [DEBUG report:43] 468 could not create app data folder C:\Users\IEUser\AppData\Local\pypa\virtualenv due to FileNotFoundError(2, 'The system cannot find the path specified') [INFO app_data:54] 577 created temporary app data ...
OSError
def find_spec(self, fullname, path, target=None): if fullname in _DISTUTILS_PATCH and self.fullname is None: with self.lock: self.fullname = fullname try: spec = find_spec(fullname, path) if spec is not None: # https://www.python.or...
def find_spec(self, fullname, path, target=None): if fullname in _DISTUTILS_PATCH and self.fullname is None: with self.lock: self.fullname = fullname try: spec = find_spec(fullname, path) if spec is not None: old = spec.loader.exec_...
https://github.com/pypa/virtualenv/issues/1690
Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 888, in _find_spec AttributeError: 'PymonkeyImportHook' object has no attribute 'find_spec' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/pymonkey/testing/pkg1/patchingmod_...
AttributeError
def _resolve_to_system(cls, target): start_executable = target.executable prefixes = OrderedDict() while target.system_executable is None: prefix = target.real_prefix or target.base_prefix or target.prefix if prefix in prefixes: if len(prefixes) == 1: # if we're l...
def _resolve_to_system(cls, target): start_executable = target.executable prefixes = OrderedDict() while target.system_executable is None: prefix = target.real_prefix or target.base_prefix or target.prefix if prefix in prefixes: for at, (p, t) in enumerate(prefixes.items(), start...
https://github.com/pypa/virtualenv/issues/1632
66 setup logging to NOTSET [DEBUG report:43] 74 find interpreter for spec PythonSpec(path=/Users/carson.gee/.virtualenvs/test-pytest/bin/python3.7) [INFO builtin:43] 74 discover system for PythonInfo(spec=CPython3.7.6.final.0-64, exe=/Users/carson.gee/.virtualenvs/test-pytest/bin/python3.7, platform=darwin, version='3....
RuntimeError
def create(self): dirs = self.ensure_directories() for directory in list(dirs): if any( i for i in dirs if i is not directory and directory.parts == i.parts[: len(directory.parts)] ): dirs.remove(directory) for directory in sorted(dirs): ...
def create(self): dirs = self.ensure_directories() for directory in list(dirs): if any( i for i in dirs if i is not directory and directory.parts == i.parts[: len(directory.parts)] ): dirs.remove(directory) for directory in sorted(dirs): ...
https://github.com/pypa/virtualenv/issues/1635
~ % source venv/bin/activate source: no such file or directory: venv/bin/activate ~ % source venv/usr/local/opt/python@3.6.8/bin/activate (venv) ~ % pip list Traceback (most recent call last): File "/Users/csalch/venv/usr/local/opt/python@3.6.8/bin/pip", line 5, in <module> from pip._internal.cli.main import main Modul...
ModuleNotFoundError