Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
I'm pretty new to Python and I'm trying to read a CSV file with Pandas. However I get the following error:
C:\Python\python.exe "C:/Users/Niels Hoogeveen/PycharmProjects/HelloWorld/HelloWorld.py"
C:\Python\python.exe: can't open file 'C:/Users/Niels Hoogeveen/PycharmProjects/HelloWorld/HelloWorld.py': [Errno 2] No such file or directory
I tried the absolute path, but I get the same error time and time again.
See the screenshot below.
What do I need to do?
screenshot of my code and error
Your file is called test.py instead of HelloWorld.py
By the way, it's possible that '/' must be replaced by '\'
Your Python file's name is not HelloWorld.py, it is test.py. :) Just change the name in the PyCharm terminal and it should start to work.
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 17 days ago.
Improve this question
When I try to pickle a dataframe, I get an error:
df.to_pickle(r"C:\Users\TomCruise\workspace")
> [Errno 13] Permission denied: 'C:\\Users\\TomCruise\\workspace'
The folder called "workspace" is my current workspace. If I try df.to_excel("file name.xlsx") a file is correctly stored in the folder "workspace" with path C:\Users\TomCruise\Workspace.
Why does to_pickle return an error stating it does not have the permission to access the folder in the path, when to_excel works perfectly fine?
Try add the file extention
df.to_pickle(r"C:\Users\TomCruise\workspace\filename.pkl")
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
https://github.com/AZHenley/teenytinycompiler.git
Can you get this to run I got it from this website:
http://web.eecs.utk.edu/~azh/blog/teenytinycompiler1.html
I followed this tutorial and it failed to load the source file.
I am new to python.
this is a screenshot of when I ran the python project
You never pass in the source file. The command you have now only starts the TeenyTiny compiler. You can pass in the source file as follows.
"C:/Users/Ackeem/AppData/Local/Programs/Python/Python39/python.exe" "C:/Users/Ackeem/Desktop/teenyTIny Compiler/teenytinycompiler/part2/teenytiny.py" "C:/Users/Ackeem/Desktop/teenyTIny Compiler/teenytinycompiler/part2/hello.tiny"
Your code did run but there were no parameters passed to it.
sys.argv is the object that holds parameters being passed.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
It's saying there's a syntax error (seems simple enough) but I've double-checked the video (and my brain). I don't see why it would be saying that.
Been following this tutorial and taking notes to a T (if I need to include more code let me know).
I defined "run_test" and am entering the parameters in question. Help?
You have extra opening parenthesis before ‘str(len(...))’
There should be a closing brackets for str in print statement ')' , add this and your program will work
If i am not wrong, you haven't defined the list of questions yet. If you have defined your list of questions it is probably a typing error in your code. If there is the full code under the tutorial you are doing then i would compare my code to the code from the tutorial.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have tried looking this up, but for some reason I cannot find anything about it. How do I run a script by giving the particular file directory in start()?
This works (when Test is in the same folder as the main script):
self.process.start("python3 Test.py")
This does NOT work:
self.process.start("python3 /my/path/Test.py")
Try this:
self.process.start("python3 ../my/path/Test.py") # added two periods before "/m"
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
I'm new in Python. I can not understood the error .I followed a tutorial to write the code.But it's not working
code is available in this link
http://pythonprogramming.net/scraping-parsing-rss-feed/
From the Python 2 documentation:
The urllib2 module has been split across several modules in Python 3 named urllib.request and urllib.error.
The page you link to is using Python 2. If you want to use Python 3, you will probably have to change things to make it work.