When I compile my python program as a 'one file' with the VPython 7 library, I get the following error in the command line box at run time. Not sure what to add to my spec file or code to collect file when program is frozen.
FileNotFoundError: [Errno 2] No such file or directory: 'C\Users\Name\AppData\Local\Temp\_MEI106402\vpython\vpython_libraries\glow.min.js'
I tried adding file to spec file but no luck.
a.datas += [ ('glow.min.js', 'C:\Users\Name\AppData\Local\Programs\Python\Python37\Lib\site-packages\vpython\vpython_libraries\glow.min.js', 'Data')]
Related
I have null-ls setup with nvim and have a mypy diagnostic in my sources that I run on save
null_ls.builtins.diagnostics.mypy.with({
method = null_ls.methods.DIAGNOSTICS_ON_SAVE}),
But as soon as I do, for example, nvim main.py, I get this error
[null-ls] failed to run generator: ...t/null-ls.nvim/lua/null-ls/helpers/generat
or_factory.lua:218: error in generator output: mypy: can't read file '/Users/me/main.py': No such file or directory
The error disappears if I save the file and go back inside it.
Is the diagnostic running as soon as I open the file, even though I have it on save?
btw, I don't get this error at all with black or flake8 which I also have configured in sources.
I am trying to execute a python script from within R, with the following command:
system("python ~/speedtest-cli/speedtest-cli --simple")
The error I get is:
python: can't open file '/home/speedtest-cli/speedtest-cli': [Errno 2] No such file or directory
The same command works just fine on the terminal. Am I using the command wrong? Any help is appreciated.
I am using interactive broker api - ibpy. I have generated an executable using pyinstaller as well as cx_freeze.
The executable gets created in both the cases but while executing it gives the same error that it could not find the file ib\ext\AnyWrapper.py.
File "lib\site-packages\ib\opt\message.py", line 153, in <module>
File "lib\site-packages\ib\opt\message.py", line 31, in __ init__
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\admin\\AppData\\Local\\Temp\\_MEI27882\\ib\\ext\\AnyWrapper.py'
In the above example, the temp folder gets deleted, but while using cx_freeze it could see that the file ib\ext\AnyWrapper.pyc existed.
Could this be some error in ib\opt\message.py itself while looking for AnyWrapper? Should it be looking for AnyWrapper and not AnyWrapper.py?
Is it a bug with IBPY or is it something else?
I'm writing a simple application to create a Documentum folder structure from a directory structure on disk. When I run the application through SpringSource Tool Suite, it works fine. When I package it as a jar, with all dependencies, and run it, I receive the following error:
java.lang.NullPointerException
at com.documentum.fc.common.impl.preferences.PreferencesManager.locateMainPersistentStore(PreferencesManager.java:372)
at com.documentum.fc.common.impl.preferences.PreferencesManager.readPersistentProperties(PreferencesManager.java:333)
at com.documentum.fc.common.impl.preferences.PreferencesManager.<init>(PreferencesManager.java:41)
at com.documentum.fc.common.DfPreferences.initialize(DfPreferences.java:64)
at com.documentum.fc.common.DfPreferences.getInstance(DfPreferences.java:43)
at com.documentum.fc.client.DfSimpleDbor.getDefaultDbor(DfSimpleDbor.java:78)
at com.documentum.fc.client.DfSimpleDbor.<init>(DfSimpleDbor.java:66)
at com.documentum.fc.client.DfClient$ClientImpl.<init>(DfClient.java:344)
at com.documentum.fc.client.DfClient.<clinit>(DfClient.java:754)
Here is the line in my code where this error occurs:
IDfClient client = DfClient.getLocalClient();
The jar includes the dfc.properties file, which I specify on the command line using
-Ddfc.properties.file=dfc.properties.dev
For the record, the full command line looks like this (slightly anonymized):
java -Ddfc.properties.file=dfc.properties.dev -jar MyTest-jar-with-dependencies.jar baseDirectory baseDocumentumFolder
Thanks much for your time!
I am asked to build a qt based solution file using msbuild.I tried with a below command and i am ending up in getting a error.I could able to build a wix project with same command shown below.
C:\Windows\Microsoft.NET\Framework\v4.0.30319>MSBuild "C:\path\to\my solution file\my.sln" /t:Build /p:Configuration=Release /p:Platform=Win32
With these, i am getting a error saying,
C:\Program Files\MSBuild\Microsoft.CppCommon.targets(155,5):
error MSB6006: "cmd.exe" exited with code 3. [c:\my\path to\project file\my.vcxproj]
The paths of various files in my.vcxproj are not read by the system when Moc'ing.I get the below error
InitializeBuildStatus:
Touching "Win32\Release\my.unsuccessfulbuild".
CustomBuild:
Moc'ing "dialog.h"...
The system cannot find the file path specified
Moc'ing "Centralwidget.h"...
The system cannot find the file path specified
and so on....
I have tried to build using qmake too,but not succeeded.Looking forward for the good suggestion for which method to use to build a qt based solution file.Thanks in advance
Build a Qt solution file using MSBuild,
def buildsolution(self,solutionpath):
if not os.path.isfile(self.msbuild):
raise Exception('MSBuild.exe not found. path=' + self.msbuild)
arg1 = '/t:Rebuild'
arg2 = '/p:Configuration=Release'
arg3 = '/p:Platform=Win32'
proc = subprocess.Popen(([self.msbuild,solutionpath,arg1,arg2,arg3]), shell=True,
stdout=subprocess.PIPE)
while True:
line = proc.stdout.readline()
wx.Yield()
if not line: break
proc.wait()
Where self.msbuild=r'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe' and
solutionpath=r'path to\qt solution file\my.sln'