"Cannot use absolute pathname" Error - python

im trying to install a python library for some software I just downloaded, and I'm getting this error when I run the library install from the command line. The error occures when it hits this point
INFO 2015-02-14 13:47:20, 467 Main Thread _7ZipController.unzip.13 running:C:\users\desktop\BBOS\tools\7-Zip\7za.exe x -y -oC:\user\desktop\BBOS\New Folderr\Lib\Site-package C:\user\Desktop\BBOS\New Folder\Lib\Site-Packages\pymysql.7z
I'm not real familiar with python, so forgive me if this isn't enough information. If you need more info, i can try and provide as much as possible!
EDIT:
the software im trying to install is called "baseball on a stick" its a software package that extracts files from MLB.com and then places them into a MySQL database. This error occurs when I try and install the "installPythonLibs.py" file that comes with the software. If you need to know more about the software, you can google "Baseball on a stick" and it should be one of the first links to SourceForge. There is a video on there as well that shows exactly what i'm trying to do, but for some reason it doesn't work when I try and do it. Hopefully this is enough extra information. here is the link to the software and video https://sourceforge.net/projects/baseballonastic/
Thanks in advance

The reason for your error is that you have a path component with a space in its name.
C:\user\Desktop\BBOS\New Folder\Lib\Site-Packages\pymysql.7z
^^^^^^^^^^
The bigger problem is that this is not how you install Python packages; you just need to run:
pip install pymysql
From a command prompt (ie, from cmd.exe).

Related

code execution cannot complete as python38.dll not found

i have no idea what i have done to cause this but when running C:>python .... (image 1) i get this error (image two)
i've tried repairing the install and running a full scan for any viruses and it's all going normal but then i still get this error
image 1:
image 2:
i'd just like to thank anyone who may be able to help in advance too!
When you type py command Python 3.9.2 is launched. However, when you type python the error message shows that python38.dll wasn't found which is a different version. It seems like you had different versions of Python and maybe some uninstallation process went wrong.
Are you able to check what do you have on PATH? The issue might be there. You can also try to uninstall all Python-related apps and install a fresh Python 3.9

unable to completely download nltk package in python. stops at omw

I am unable to complete the nltk package download. It always stops at the items omw (Open Multilingual Wordnet). These are the only two remaining ones. I have looked at other help items (i.e. install ntlk supporting packages or error installing Nltk) but the problem persists. It returns the error code 11001, i.e. wrong server location. But the server index http://ntlk.org/nltk_data/ worked for all other items. I am a bit lost here.
Print scree of error message can be found here
I use python 3.5 and have the latest nltk file (downloaded and unzipped it last night)
Many thanks!
Are you connecting to the internet with a proxy server? If so, try this:
nltk.set_proxy('http://proxy.example.com:3128', ('USERNAME', 'PASSWORD'))
nltk.download()
Alternatively, try this:
Open a terminal window (Use the “Run...” option on the Start menu). Go to the directory where Python is installed, for example C:\Program Files\Python 3.5\
type:
python -m nltk.downloader all
If all that fails, you should try downloading the data manually from here: http://www.nltk.org/nltk_data/ and then put your data in the C:\nltk_data directory.

pyrouge: 'pyrouge_set_rouge_path' is not recognized as an internal or external command

I have Windows 7 and use Python 2.7. I recently installed ROUGE (Recall-Oriented Understudy for Gisting Evaluation) in order to evaluate summaries that I have.
Unfortunately, my summaries are in .txt format, and wouldn't work with ROUGE. I therefore, installed pyrouge from pypi.
In the same website above, they have installation steps. I followed the first step, which was to use pip install. The next step says:
"Assuming a working ROUGE-1.5.5. installation, tell pyrouge the ROUGE path with this command:
pyrouge_set_rouge_path /absolute/path/to/ROUGE-1.5.5/directory"
I try that line in the command prompt:
pyrouge_set_rouge_path C:\rouge
Yet I keep getting this error:
'pyrouge_set_rouge_path' is not recognized as an internal or external command, operable program or batch file.
Any help in this matter is greatly appreciated.
Thanks
Try this:
set pyrouge_set_rouge_path=C:\rouge
Although it is an old questions, there are probably still people looking for the answer.
"Assuming a working ROUGE-1.5.5. installation" does not correspond to your pyrouge installation. It references to the following. (Maybe you got that right immediately, I did not)
https://github.com/andersjo/pyrouge/tree/master/tools/ROUGE-1.5.5
pyrouge_set_rouge_path is a script, not a variable you have to set.
The script is located at Python_PATH\Scripts.
Hence try something like:
python Python_PATH\Scripts\pyrouge_set_rouge_path C:\rouge

Using msi.py to install Python3.4

So I downloaded source for Python3.4 and used VisualStudio 2010 to build a Python executable for my Windows7 machine. Ultimately, I want to use this to embed Python support in my application.
The first time I tried to execute my app, PyInitialise ends up aborting, and presents the error message:
"Py_Initialize: unable to load the file system codec"
So now I'm thinking, D'oh, you never installed your Python build after building it. After much googling, I find myself running msi.py. When I do, I see:
File "msi.py", line 934
raise ValueError, "Could not find "+srcdir+"/../"+pat
^
SyntaxError: invalid syntax
This looks to me like I'm trying to run pre-Python3.X code. But I'm so sure this MSI tool came with my Python3.4 source distribution. That said, I've been staring at this for so long things are starting to blend to a blur.
Any clues about where to look or what to try next?
Should I be worrying about MSI? Is there some other answer to my codec problem?

Difficulty installing and using Mercurial Chart extension

Hi I'm having trouble installing and using the Mercurial ChartExtension
When I installed it as per instructions
First you need to install the extension; type this in your shell:
python ./setup.py install
Blockquote
I then modified my mercurial.ini file as follows
[extensions]
chart=/path/to/chart.py
Blockquote
Then tried running Hg Chart command and got the following error
Can anyone help me get this extension working. I know there's the Hg ActivityExtension as well, but i have not had much luck with that either Problem installing Mercurial Activity extension
A layman's guide to what steps i need to follow would be of immense help
Based on the changelog, the Chart extension has not been updated since late 2008. It would probably work if you tried using it with a version of Mercurial released around that same time (Mercurial v1.1.2 was released on Dec. 30, 2008).
The latest version of Mercurial is now v1.9.2. The API has changed (probably quite a bit) since v1.1.2. If the extension has not been modified to keep up with the changes to the API, then it will fail in ways similar to the error you found. In this case, the number of arguments for the walkchangerevs method has changed.
Updating the extension could be a large task...there is no way to know without inspecting the code. You could try to contact the author (#Ry4an) and ask for help. You could also try to modify the extension yourself.

Categories