Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not extract proto file #25

Open
fhartavi opened this issue Mar 3, 2022 · 1 comment
Open

Can not extract proto file #25

fhartavi opened this issue Mar 3, 2022 · 1 comment

Comments

@fhartavi
Copy link

fhartavi commented Mar 3, 2022

File "gui.py", line 462, in run
for name, contents in self.extractor'func':
File "c:\pbkt\pbtk\extractors\jar_extract.py", line 51, in handle_jar
with JarWrapper(path) as jar:
File "c:\pbkt\pbtk\utils\java_wrapper.py", line 25, in init
self.handle_file(fname)
File "c:\pbkt\pbtk\utils\java_wrapper.py", line 43, in handle_file
self.handle_file(self.name + '/' + cls)
File "c:\pbkt\pbtk\utils\java_wrapper.py", line 35, in handle_file
jar.extractall(self.name)
File "c:\users\user\appdata\local\programs\python\python37\lib\zipfile.py", line 1636, in extractall
self._extract_member(zipinfo, path, pwd)
File "c:\users\user\appdata\local\programs\python\python37\lib\zipfile.py", line 1690, in _extract_member
open(targetpath, "wb") as target:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\user\AppData\Local\Temp\tmprh1yw3mr\prn.class'

@Drygord
Copy link

Drygord commented Oct 21, 2023

C:\Users\legen\REPOS\pbtk-master>gui.py
C:\Users\legen\REPOS\pbtk-master\gui.py:31: DeprecationWarning: sipPyTypeDict() is deprecated, the extension module should use sipPyTypeDictRef() instead
class PBTKGUI(QApplication):
C:\Users\legen\REPOS\pbtk-master\gui.py:449: DeprecationWarning: sipPyTypeDict() is deprecated, the extension module should use sipPyTypeDictRef() instead
class Worker(QThread):
Traceback (most recent call last):
File "C:\Users\legen\REPOS\pbtk-master\gui.py", line 462, in run
for name, contents in self.extractor'func':
File "C:\Users\legen\REPOS\pbtk-master\extractors\jar_extract.py", line 51, in handle_jar
with JarWrapper(path) as jar:
File "C:\Users\legen\REPOS\pbtk-master\utils\java_wrapper.py", line 25, in init
self.handle_file(fname)
File "C:\Users\legen\REPOS\pbtk-master\utils\java_wrapper.py", line 43, in handle_file
self.handle_file(self.name + '/' + cls)
File "C:\Users\legen\REPOS\pbtk-master\utils\java_wrapper.py", line 35, in handle_file
jar.extractall(self.name)
File "C:\Users\legen\AppData\Local\Programs\Python\Python39\lib\zipfile.py", line 1633, in extractall
self._extract_member(zipinfo, path, pwd)
File "C:\Users\legen\AppData\Local\Programs\Python\Python39\lib\zipfile.py", line 1687, in _extract_member
open(targetpath, "wb") as target:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\legen\AppData\Local\Temp\tmpkrkni0gr\p\prn.class'

Almost identical error here. Is it just not waiting long enough for the temp file to be created?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants