PyCharm error message - python

What is the significance of this error message:
I just updated PyCharm and I don't know the significance of this error.
I understand that .xml is a markdown file (?), but without the .Rmd extension I'm not sure I can open it in RStudio to see when / by who it was created. It could have been a file created in the context of a Coursera course. A bit of research tells me that the .idea directory is a folder that python creates with every project (?).

Did you change anything in your project folder recently? Does the folder contain a .git subfolder?
Try going to the project folder root and issue this command:
git init

Related

Question regarding package management in PyCharm IDE

I have been using PyCharm since I began learning Python because of its amazing UI that helped me learn a great deal about the language. As I progress into more advanced projects, I am beginning to prefer using a text editor / command line combo so that I can build my own venv's and have better access to source control. My question is, how does PyCharm manage custom local packages that I created so that I can import them wherever I want in the directory? For instance a project that I have built exclusively in PyCharm that runs will raise numerous import errors when trying to run that same project in VS code, or even a command line shell (yes I did have the PyCharm created venv activated before running on both attempts). For further examples, here is the project structure I am confused about:
RootDirectory
package_1_folder
__init__.py
pckg_1_class.py
program_using_pckg_1_folder
class_using_pckg1class.py
venv
The above structure has no issues being imported and used in PyCharm, however VS code / Sublime when used with command prompt / gitbash will raise either an ImportError or a ModuleNotFound error. I have even gone as far as adding the desired packages to my laptops windows PATH, using sys.path.append (I know this is not good practice I was only trying to get it to work), and even modified the .pylintrc file with the project path with no success. Any help explaining why these errors are happening would be greatly appreciated :)
NOTE:
I have been able to use the packages in VS code as long as the program importing the module is located at the root directory level, but not in its own folder in the root directory. Again, this statement WILL work in PyCharm, I just want to know how PyCharm is able to achieve this.
After numerous attempts to locate how the system was keeping tack of module within the IDE, I found that my answer was not visible from the IDE. I found a .idea folder in my root directory that contains a few .xml documents that manage the directory including where to read modules from.

svn: E155007: '/home/k/python/myproject_env/django-myproject/myproject' is not a working copy

I have been building django project and I want to use Subversion for version control on Ubuntu.
As you know, I need to keep most of the projects in the repository, however, some files and directories should only stay locally and not be tracked.
So I went to my project directory and typed the following command.
svn propedit svn:ignore myproject
But exception has occurred like this.
svn: E155007: '/home/k/python/myproject_env/django-myproject/myproject' is not a working copy
The path is ture that my app is located at /home/k/python/myproject_env/django-myproject/myproject
The guide says that when I type the command above, this will open a temporary file in the editor, where I need to put the following file and directory patterns for Subversion to ignore. But it doesn't work.
I already found the solution, but there is no answer anywhere.
I would like to know the solution. Thanks for your time.

Test Works in PyCharm Community and Fails in Professional

I switched to PyCharm Professional in hopes of using the code coverage tool, but it seems to have broken my test configuration. I have a project with a project folder, config folder and test folder like so:
\project
\my_python_app
\test
\config\config.yml
In Pycharm Community, I was able to set the test path to the \test folder and the working directory to \project, which allowed me to access the config file. But when I switched to pro, it broke and said
ImportError: Start directory is not importable: '/home/project/test'
I need the working directory set to '\project' in order to access the config file. Any ideas on why this would be happening or suggested workarounds?
Pycharms importing behaviour can be quite annoying, I had similar problems in the past. I could resolve then using the "Source Folder" setting in the project structure tabs. E.g. set the whole project folder (and maybe test) as "Source".

Directory not found in Pycharm when running code

I get an error by running my code in pycharm. I get this message :
C:\Python27\python.exe: can't open file
'C:/Users/Melinda/PycharmProjects/untitled/classParticipant.py':
[Errno 2] No such file or directory
Process finished with exit code 2
I understand that I don't have the Folder named untitled, because I have renamed it afterwards as Lab4.enter image description here
You've borked your project by renaming the directory yourself rather than renaming the project from within the IDE.
You need to close and delete the project (do not delete the files when it asks). If you feel unsure about this copy your files to a backup location first. Then reopen the project using "Open" from the file menu.
I wouldn't go that far to delete the project, have a go at going to
Settings -> Project -> Project Structure
and then removing and re-adding the project root.

How to restore Pycharm Project in windows

I am having this extremely weird issue with restoring a pycharm project in pycharm 5 on windows. Originally all I wanted to do is make it so the project does not appear at the start selection, but ultimately that command has translated into something else.
So far I have checked my recycle bin and used recuva but it's no where to be found. Is there some type of default in the pycharm that disables this behavior and if it possible to get my projects back?
If you've cleared your recent projects you'll need to locate the folder where you saved your project.
Pycharm stores the individual project config files in a .idea directory in the project root, then further files for the general app config in Windows are stored in;
<User home>\.PyCharmXX\config that contains user-specific settings.
<User home>\.PyCharmXX\system that stores PyCharm data caches.
To open your project again, you'll need to point Pycharm's 'open project' dialog to the directory containing the .idea folder, so if you can't remember where you saved the project, I'd suggest running a search for .idea, remembering that it will likely be a hidden folder.
See the docs on the application data

Categories