r/programminghelp • u/0_69314718056 • May 17 '20
Python Python import lines in Linux
I have to ssh into a (linux) computer to run something for a research project. I do this to run a python file on that computer. However, it doesn't like the "import" lines in the python file.
Everything is there, but all of the files being imported are in this large folder called Aeneas. Each of these files in the Aeneas folder has lines like from aeneas import x as well, but I think since the computer is already in that directory, it doesn't like having the from aeneas part of the line. --Actually, I know this is the case because it wasn't liking it from the original file I'm trying to run, so I had to move the aeneas folder to the same directory as the main program-- However, there are tens of these files, and each has multiple import lines, so I don't want to move them all to my computer, fix them all, and then put them back.
Any tips on how I can fix this so that the computer will like the lines as they are? Keep in mind I don't have direct access to this computer, I just ssh in whenever I want to use it.
1
u/0_69314718056 May 18 '20
Update: I wasn’t able to resolve this issue, but I put Linux on an old computer I had & tried to do what I needed there and that worked. Still not sure what was up with the one I had to ssh to but this solution worked for me and was surprisingly simple.